refactor(tailwindcss): added header to app.tsx
Gitea Vite Build Action / Vite-Build (push) Failing after 30s
Details
Gitea Vite Build Action / Vite-Build (push) Failing after 30s
Details
This commit is contained in:
parent
ca910bba0c
commit
6317ad2802
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 (
|
||||
<>
|
||||
<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" />
|
||||
</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>
|
||||
<p className="read-the-docs">
|
||||
Click on the Vite and React logos to learn more
|
||||
</p>
|
||||
<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>
|
||||
<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>
|
||||
<div className="hidden lg:flex lg:flex-1 lg:justify-end"/>
|
||||
</nav>
|
||||
</header>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue