omg i made a mess again

This commit is contained in:
Pablo Martin 2025-05-21 00:52:41 +02:00
parent 7676c86c28
commit 1fdee24049
10 changed files with 791 additions and 72 deletions

798
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -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
View file

@ -0,0 +1,6 @@
import tailwindcss from '@tailwindcss/postcss';
import autoprefixer from 'autoprefixer';
export default {
plugins: [tailwindcss, autoprefixer],
};

View file

@ -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;

View file

@ -0,0 +1,5 @@
const Header = () => {
return <h1 className="text-3xl font-bold">Kuotata</h1>;
};
export default Header;

View 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
View file

@ -0,0 +1 @@
@import "tailwindcss";

View file

@ -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
View file

@ -0,0 +1,7 @@
export default {
content: ["./index.html", "./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {},
},
plugins: [],
};

View file

@ -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()],
});