Skip to content

Commit

Permalink
Tiny performance adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbolns committed Nov 5, 2024
1 parent f447676 commit aa04c8d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,26 @@ const locale: keyof Multi = defaultLang;
</head>
<body>
<main>
<div class="absolute top-1/2 -translate-y-1/2 w-full text-center text-white">
<div
class="absolute top-1/2 -translate-y-1/2 w-full text-center text-white"
>
<h1 id="glitch" class="enter m-0 p-0 typewriter hidden">Welcome</h1>
<p class="enter m-0 p-0 typewriter hidden">{site.description[locale]}</p>
<p class="enter m-0 p-0 typewriter hidden">
{site.description[locale]}
</p>

<ul class="flex items-center justify-center list-none m-0 p-0">
{
Object.entries(languages).map(([lang, label]) => (
<a href={sanitizeRoutes(`/${lang}/`)}>
<li class="flex text-center m-1 enter">
<li class="flex text-center m-1 enter" aria-label={label}>
<a href={sanitizeRoutes(`/${lang}/`)}>
<img
src={`/icons/${lang}.svg`}
alt={`${label}.`}
class="w-8 h-8 hover:animate-roll"
/>
</li>
</a>
</a>
</li>
))
}
</ul>
Expand Down

0 comments on commit aa04c8d

Please sign in to comment.