omg i made a mess again
This commit is contained in:
parent
7676c86c28
commit
1fdee24049
10 changed files with 791 additions and 72 deletions
798
package-lock.json
generated
798
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,18 +10,23 @@
|
|||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/vite": "^4.1.7",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.25.0",
|
||||
"@tailwindcss/postcss": "^4.1.7",
|
||||
"@types/react": "^19.1.2",
|
||||
"@types/react-dom": "^19.1.2",
|
||||
"@vitejs/plugin-react": "^4.4.1",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"eslint": "^9.25.0",
|
||||
"eslint-plugin-react-hooks": "^5.2.0",
|
||||
"eslint-plugin-react-refresh": "^0.4.19",
|
||||
"globals": "^16.0.0",
|
||||
"postcss": "^8.5.3",
|
||||
"tailwindcss": "^4.1.7",
|
||||
"vite": "^6.3.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
6
postcss.config.js
Normal file
6
postcss.config.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import tailwindcss from '@tailwindcss/postcss';
|
||||
import autoprefixer from 'autoprefixer';
|
||||
|
||||
export default {
|
||||
plugins: [tailwindcss, autoprefixer],
|
||||
};
|
||||
20
src/App.jsx
20
src/App.jsx
|
|
@ -1,9 +1,19 @@
|
|||
function App() {
|
||||
import AppHeader from "./components/AppHeader";
|
||||
import AppSubHeader from "./components/AppSubHeader";
|
||||
|
||||
const App = () => {
|
||||
return (
|
||||
<>
|
||||
<p>Hi!</p>
|
||||
<div className="flex">
|
||||
<div>
|
||||
<AppHeader />
|
||||
</div>
|
||||
<div>
|
||||
<AppSubHeader />
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default App
|
||||
export default App;
|
||||
|
|
|
|||
5
src/components/AppHeader.jsx
Normal file
5
src/components/AppHeader.jsx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
const Header = () => {
|
||||
return <h1 className="text-3xl font-bold">Kuotata</h1>;
|
||||
};
|
||||
|
||||
export default Header;
|
||||
10
src/components/AppSubHeader.jsx
Normal file
10
src/components/AppSubHeader.jsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
const Subheader = () => {
|
||||
return (
|
||||
<>
|
||||
<h3>¿Jaqueca con tu préstamo?</h3>
|
||||
<h3>Calcula, compara y decide</h3>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export default Subheader;
|
||||
1
src/index.css
Normal file
1
src/index.css
Normal file
|
|
@ -0,0 +1 @@
|
|||
@import "tailwindcss";
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App.jsx'
|
||||
|
||||
import './index.css';
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<App />
|
||||
)
|
||||
|
|
|
|||
7
tailwind.config.js
Normal file
7
tailwind.config.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export default {
|
||||
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
|
||||
theme: {
|
||||
extend: {},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
})
|
||||
plugins: [react(), tailwindcss()],
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue