feat: initialize libertas-frontend project with Vite and React
- Add ESLint configuration for TypeScript and React. - Create index.html as the entry point for the application. - Set up package.json with scripts for development, build, linting, and preview. - Include Vite logo SVG in the public directory. - Add App.css for styling the application. - Implement main App component in App.tsx with basic functionality. - Add React logo SVG to assets. - Create global styles in index.css. - Set up main entry point in main.tsx. - Configure TypeScript with tsconfig files for app and node environments. - Create Vite configuration file for React integration.
This commit is contained in:
42
libertas-frontend/src/App.css
Normal file
42
libertas-frontend/src/App.css
Normal file
@@ -0,0 +1,42 @@
|
||||
#root {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.react:hover {
|
||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||
}
|
||||
|
||||
@keyframes logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
a:nth-of-type(2) .logo {
|
||||
animation: logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
padding: 2em;
|
||||
}
|
||||
|
||||
.read-the-docs {
|
||||
color: #888;
|
||||
}
|
||||
Reference in New Issue
Block a user