feat/design-index-page #2
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 27 KiB |
41
src/App.css
41
src/App.css
|
@ -1,42 +1 @@
|
||||||
#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;
|
|
||||||
}
|
|
||||||
|
|
37
src/App.tsx
37
src/App.tsx
|
@ -8,26 +8,23 @@ function App() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>
|
<header className="bg-gray-100 border-b-2">
|
||||||
<a href="https://vite.dev" target="_blank">
|
<nav className="mx-auto flex max-w-7xl items-center justify-between p-3 lg:px-8" aria-label="Global">
|
||||||
<img src={viteLogo} className="logo" alt="Vite logo" />
|
<div className="flex lg:flex-1">
|
||||||
</a>
|
<a href="#" className="-m-1.5 p-1.5">
|
||||||
<a href="https://react.dev" target="_blank">
|
<span className="sr-only">Your Company</span>
|
||||||
<img src={reactLogo} className="logo react" alt="React logo" />
|
<img className="h-12 w-auto" src="./brunsviga_icon.svg" alt=""/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<h1>Vite + React</h1>
|
<div className="hidden lg:flex lg:gap-x-12">
|
||||||
<div className="card">
|
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Brunsviga RK 13</a>
|
||||||
<button onClick={() => setCount((count) => count + 1)}>
|
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Thesis</a>
|
||||||
count is {count}
|
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Source</a>
|
||||||
</button>
|
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Credits</a>
|
||||||
<p>
|
</div>
|
||||||
Edit <code>src/App.tsx</code> and save to test HMR
|
<div className="hidden lg:flex lg:flex-1 lg:justify-end"/>
|
||||||
</p>
|
</nav>
|
||||||
</div>
|
</header>
|
||||||
<p className="read-the-docs">
|
|
||||||
Click on the Vite and React logos to learn more
|
|
||||||
</p>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue