feat/design-index-page #2

Merged
servostar merged 3 commits from feat/design-index-page into main 2024-10-24 19:29:35 +00:00
3 changed files with 99 additions and 61 deletions
Showing only changes of commit 6317ad2802 - Show all commits

82
public/brunsviga_icon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 27 KiB

View File

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

View File

@ -8,26 +8,23 @@ function App() {
return (
<>
<div>
<a href="https://vite.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" />
<header className="bg-gray-100 border-b-2">
<nav className="mx-auto flex max-w-7xl items-center justify-between p-3 lg:px-8" aria-label="Global">
<div className="flex lg:flex-1">
<a href="#" className="-m-1.5 p-1.5">
<span className="sr-only">Your Company</span>
<img className="h-12 w-auto" src="./brunsviga_icon.svg" alt=""/>
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
<div className="hidden lg:flex lg:gap-x-12">
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Brunsviga RK 13</a>
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Thesis</a>
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Source</a>
<a href="#" className="text-sm font-semibold leading-6 text-gray-900">Credits</a>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<div className="hidden lg:flex lg:flex-1 lg:justify-end"/>
</nav>
</header>
</>
)
}