Pizza {props.name}
-Ingredientes: {props.ingredients.join(", ")}
-- ${props.price.toLocaleString("es-CL")} -
-diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..64e2ef2
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,7 @@
+[*]
+end_of_line = lf
+charset = utf-8
+
+[*.{js,jsx}]
+indent_style = space
+indent_size = 2
diff --git a/eslint.config.js b/eslint.config.js
index 4fa125d..0c01cbb 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,13 +1,13 @@
-import js from '@eslint/js'
-import globals from 'globals'
-import reactHooks from 'eslint-plugin-react-hooks'
-import reactRefresh from 'eslint-plugin-react-refresh'
-import { defineConfig, globalIgnores } from 'eslint/config'
+import js from "@eslint/js";
+import { defineConfig, globalIgnores } from "eslint/config";
+import reactHooks from "eslint-plugin-react-hooks";
+import reactRefresh from "eslint-plugin-react-refresh";
+import globals from "globals";
export default defineConfig([
- globalIgnores(['dist']),
+ globalIgnores(["dist"]),
{
- files: ['**/*.{js,jsx}'],
+ files: ["**/*.{js,jsx}"],
extends: [
js.configs.recommended,
reactHooks.configs.flat.recommended,
@@ -17,13 +17,13 @@ export default defineConfig([
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
- ecmaVersion: 'latest',
+ ecmaVersion: "latest",
ecmaFeatures: { jsx: true },
- sourceType: 'module',
+ sourceType: "module",
},
},
rules: {
- 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
+ "no-unused-vars": ["error", { varsIgnorePattern: "^[A-Z_]" }],
},
},
-])
+]);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index e55aa14..88e39db 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -27,9 +27,9 @@ importers:
'@unocss/reset':
specifier: ^66.6.7
version: 66.6.7
- '@vitejs/plugin-react':
- specifier: ^6.0.1
- version: 6.0.1(vite@8.0.2(jiti@2.6.1))
+ '@vitejs/plugin-react-swc':
+ specifier: ^4.3.0
+ version: 4.3.0(vite@8.0.2(jiti@2.6.1))
eslint:
specifier: ^9.39.4
version: 9.39.4(jiti@2.6.1)
@@ -449,6 +449,99 @@ packages:
'@rolldown/pluginutils@1.0.0-rc.7':
resolution: {integrity: sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==}
+ '@swc/core-darwin-arm64@1.15.24':
+ resolution: {integrity: sha512-uM5ZGfFXjtvtJ+fe448PVBEbn/CSxS3UAyLj3O9xOqKIWy3S6hPTXSPbszxkSsGDYKi+YFhzAsR4r/eXLxEQ0g==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@swc/core-darwin-x64@1.15.24':
+ resolution: {integrity: sha512-fMIb/Zfn929pw25VMBhV7Ji2Dl+lCWtUPNdYJQYOke+00E5fcQ9ynxtP8+qhUo/HZc+mYQb1gJxwHM9vty+lXg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@swc/core-linux-arm-gnueabihf@1.15.24':
+ resolution: {integrity: sha512-vOkjsyjjxnoYx3hMEWcGxQrMgnNrRm6WAegBXrN8foHtDAR+zpdhpGF5a4lj1bNPgXAvmysjui8cM1ov/Clkaw==}
+ engines: {node: '>=10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@swc/core-linux-arm64-gnu@1.15.24':
+ resolution: {integrity: sha512-h/oNu+upkXJ6Cicnq7YGVj9PkdfarLCdQa8l/FlHYvfv8CEiMaeeTnpLU7gSBH/rGxosM6Qkfa/J9mThGF9CLA==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@swc/core-linux-arm64-musl@1.15.24':
+ resolution: {integrity: sha512-ZpF/pRe1guk6sKzQI9D1jAORtjTdNlyeXn9GDz8ophof/w2WhojRblvSDJaGe7rJjcPN8AaOkhwdRUh7q8oYIg==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@swc/core-linux-ppc64-gnu@1.15.24':
+ resolution: {integrity: sha512-QZEsZfisHTSJlmyChgDFNmKPb3W6Lhbfo/O76HhIngfEdnQNmukS38/VSe1feho+xkV5A5hETyCbx3sALBZKAQ==}
+ engines: {node: '>=10'}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@swc/core-linux-s390x-gnu@1.15.24':
+ resolution: {integrity: sha512-DLdJKVsJgglqQrJBuoUYNmzm3leI7kUZhLbZGHv42onfKsGf6JDS3+bzCUQfte/XOqDjh/tmmn1DR/CF/tCJFw==}
+ engines: {node: '>=10'}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@swc/core-linux-x64-gnu@1.15.24':
+ resolution: {integrity: sha512-IpLYfposPA/XLxYOKpRfeccl1p5dDa3+okZDHHTchBkXEaVCnq5MADPmIWwIYj1tudt7hORsEHccG5no6IUQRw==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@swc/core-linux-x64-musl@1.15.24':
+ resolution: {integrity: sha512-JHy3fMSc0t/EPWgo74+OK5TGr51aElnzqfUPaiRf2qJ/BfX5CUCfMiWVBuhI7qmVMBnk1jTRnL/xZnOSHDPLYg==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@swc/core-win32-arm64-msvc@1.15.24':
+ resolution: {integrity: sha512-Txj+qUH1z2bUd1P3JvwByfjKFti3cptlAxhWgmunBUUxy/IW3CXLZ6l6Gk4liANadKkU71nIU1X30Z5vpMT3BA==}
+ engines: {node: '>=10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@swc/core-win32-ia32-msvc@1.15.24':
+ resolution: {integrity: sha512-15D/nl3XwrhFpMv+MADFOiVwv3FvH9j8c6Rf8EXBT3Q5LoMh8YnDnSgPYqw1JzPnksvsBX6QPXLiPqmcR/Z4qQ==}
+ engines: {node: '>=10'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@swc/core-win32-x64-msvc@1.15.24':
+ resolution: {integrity: sha512-PR0PlTlPra2JbaDphrOAzm6s0v9rA0F17YzB+XbWD95B4g2cWcZY9LAeTa4xll70VLw9Jr7xBrlohqlQmelMFQ==}
+ engines: {node: '>=10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@swc/core@1.15.24':
+ resolution: {integrity: sha512-5Hj8aNasue7yusUt8LGCUe/AjM7RMAce8ZoyDyiFwx7Al+GbYKL+yE7g4sJk8vEr1dKIkTRARkNIJENc4CjkBQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@swc/helpers': '>=0.5.17'
+ peerDependenciesMeta:
+ '@swc/helpers':
+ optional: true
+
+ '@swc/counter@0.1.3':
+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
+
+ '@swc/types@0.1.26':
+ resolution: {integrity: sha512-lyMwd7WGgG79RS7EERZV3T8wMdmPq3xwyg+1nmAM64kIhx5yl+juO2PYIHb7vTiPgPCj8LYjsNV2T5wiQHUEaw==}
+
'@tybys/wasm-util@0.10.1':
resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
@@ -538,18 +631,11 @@ packages:
peerDependencies:
vite: ^2.9.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0-0 || ^6.0.0-0 || ^7.0.0-0 || ^8.0.0-0
- '@vitejs/plugin-react@6.0.1':
- resolution: {integrity: sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==}
+ '@vitejs/plugin-react-swc@4.3.0':
+ resolution: {integrity: sha512-mOkXCII839dHyAt/gpoSlm28JIVDwhZ6tnG6wJxUy2bmOx7UaPjvOyIDf3SFv5s7Eo7HVaq6kRcu6YMEzt5Z7w==}
engines: {node: ^20.19.0 || >=22.12.0}
peerDependencies:
- '@rolldown/plugin-babel': ^0.1.7 || ^0.2.0
- babel-plugin-react-compiler: ^1.0.0
- vite: ^8.0.0
- peerDependenciesMeta:
- '@rolldown/plugin-babel':
- optional: true
- babel-plugin-react-compiler:
- optional: true
+ vite: ^4 || ^5 || ^6 || ^7 || ^8
acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
@@ -1578,6 +1664,66 @@ snapshots:
'@rolldown/pluginutils@1.0.0-rc.7': {}
+ '@swc/core-darwin-arm64@1.15.24':
+ optional: true
+
+ '@swc/core-darwin-x64@1.15.24':
+ optional: true
+
+ '@swc/core-linux-arm-gnueabihf@1.15.24':
+ optional: true
+
+ '@swc/core-linux-arm64-gnu@1.15.24':
+ optional: true
+
+ '@swc/core-linux-arm64-musl@1.15.24':
+ optional: true
+
+ '@swc/core-linux-ppc64-gnu@1.15.24':
+ optional: true
+
+ '@swc/core-linux-s390x-gnu@1.15.24':
+ optional: true
+
+ '@swc/core-linux-x64-gnu@1.15.24':
+ optional: true
+
+ '@swc/core-linux-x64-musl@1.15.24':
+ optional: true
+
+ '@swc/core-win32-arm64-msvc@1.15.24':
+ optional: true
+
+ '@swc/core-win32-ia32-msvc@1.15.24':
+ optional: true
+
+ '@swc/core-win32-x64-msvc@1.15.24':
+ optional: true
+
+ '@swc/core@1.15.24':
+ dependencies:
+ '@swc/counter': 0.1.3
+ '@swc/types': 0.1.26
+ optionalDependencies:
+ '@swc/core-darwin-arm64': 1.15.24
+ '@swc/core-darwin-x64': 1.15.24
+ '@swc/core-linux-arm-gnueabihf': 1.15.24
+ '@swc/core-linux-arm64-gnu': 1.15.24
+ '@swc/core-linux-arm64-musl': 1.15.24
+ '@swc/core-linux-ppc64-gnu': 1.15.24
+ '@swc/core-linux-s390x-gnu': 1.15.24
+ '@swc/core-linux-x64-gnu': 1.15.24
+ '@swc/core-linux-x64-musl': 1.15.24
+ '@swc/core-win32-arm64-msvc': 1.15.24
+ '@swc/core-win32-ia32-msvc': 1.15.24
+ '@swc/core-win32-x64-msvc': 1.15.24
+
+ '@swc/counter@0.1.3': {}
+
+ '@swc/types@0.1.26':
+ dependencies:
+ '@swc/counter': 0.1.3
+
'@tybys/wasm-util@0.10.1':
dependencies:
tslib: 2.8.1
@@ -1726,10 +1872,13 @@ snapshots:
unplugin-utils: 0.3.1
vite: 8.0.2(jiti@2.6.1)
- '@vitejs/plugin-react@6.0.1(vite@8.0.2(jiti@2.6.1))':
+ '@vitejs/plugin-react-swc@4.3.0(vite@8.0.2(jiti@2.6.1))':
dependencies:
'@rolldown/pluginutils': 1.0.0-rc.7
+ '@swc/core': 1.15.24
vite: 8.0.2(jiti@2.6.1)
+ transitivePeerDependencies:
+ - '@swc/helpers'
acorn-jsx@5.3.2(acorn@8.16.0):
dependencies:
diff --git a/src/App.css b/src/App.css
deleted file mode 100644
index 3d63902..0000000
--- a/src/App.css
+++ /dev/null
@@ -1,5 +0,0 @@
-footer {
- position: fixed;
- bottom: 0;
- width: 100%;
-}
diff --git a/src/App.jsx b/src/App.jsx
index 02536f4..cd29bdf 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,17 +1,18 @@
import { useState } from "react";
-import reactLogo from "./assets/react.svg";
-import viteLogo from "./assets/vite.svg";
import heroImg from "./assets/hero.png";
-import Navbar from "./Navbar";
-import "./App.css";
-import Home from "./Home";
+import Cart from "./Cart";
import Footer from "./Footer";
+import Home from "./Home";
+import Navbar from "./Navbar";
function App() {
return (
<>
{pizza.count}
+ +Mamma mia!
-¡La mejor pizza!
-Mamma mia!
+¡La mejor pizza!
+Ingredientes: {props.ingredients.join(", ")}
-- ${props.price.toLocaleString("es-CL")} -
-{props.desc}
+Ingredientes:
++ ${props.price.toLocaleString("es-CL")} +
+