Skip to content

Commit

Permalink
Added navbar button hover
Browse files Browse the repository at this point in the history
  • Loading branch information
Dialpuri committed Nov 26, 2023
1 parent 5ee317d commit 72c3c2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webserver/src/layouts/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ export default function NavBar({ setResetApp }: { setResetApp: Dispatch<SetState
<span
className="font-primary text-xl text-secondary sm:text-3xl">Validate your carbohydrates online with</span>
<span className="font-body text-4xl sm:text-6xl my-2 sm:my-1"><button id="title" title="Home"
className="bg-gray"
className="bg-gray hover:scale-105 transition-all"
onClick={() => { setResetApp(true) }}>Privateer</button></span>
<span className="font-primary text-l text-secondary sm:text-xl sm:my-4 my-2">The Swiss Army knife for carbohydrate structure validation, refinement and analysis</span>
</div>

<div className="flex">
<div className="h-12 w-12 mx-auto my-4 sm:w-12 sm:mt-12 sm:mr-6 flex items-center ">
<a href="/database">
<svg className="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512">
<svg className="w-6 h-6 text-gray-500 hover:scale-125 transition-all" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512">
<path d="M448 80v48c0 44.2-100.3 80-224 80S0 172.2 0 128V80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6V288c0 44.2-100.3 80-224 80S0 332.2 0 288V186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6V432c0 44.2-100.3 80-224 80S0 476.2 0 432V346.1z" /></svg>
</a>
</div>
<div className="h-12 w-12 mx-auto my-4 sm:w-12 sm:mt-12 sm:mr-6 flex items-center ">
<a href="/">
<svg className="w-8 h-8 text-gray-500" aria-hidden="true"
<svg className="w-8 h-8 text-gray-500 hover:scale-125 transition-all" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 16">
<path stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2"
d="M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2" />
Expand All @@ -32,7 +32,7 @@ export default function NavBar({ setResetApp }: { setResetApp: Dispatch<SetState
</div>
<div className="h-12 w-12 mx-auto my-4 sm:w-12 sm:mt-12 sm:mr-6 flex items-center ">
<a href={GENERAL_CITATION}>
<svg className="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512">
<svg className="w-6 h-6 text-gray-500 hover:scale-125 transition-all" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 384 512">
<path d="M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z" /></svg>
</a>
</div>
Expand Down

0 comments on commit 72c3c2b

Please sign in to comment.