Skip to content

Commit

Permalink
app
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiacolucci committed Jul 18, 2024
1 parent 4a2e316 commit f54b417
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 66 deletions.
50 changes: 8 additions & 42 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,8 @@
#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;
}
.container{
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
overflow: hidden;
background: yellow;
}
27 changes: 3 additions & 24 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
<div className='container'>

</div>
)
}

Expand Down

0 comments on commit f54b417

Please sign in to comment.