Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />

<link rel="icon" href="/favicon.ico" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preload" href="https://fonts.googleapis.com" />
<link rel="preload" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&display=swap"
rel="stylesheet"
Expand Down
21 changes: 16 additions & 5 deletions src/lib/components/year-section.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
style="--grid-animation-delay: calc({position} * 0.15s)"
>
<div
class="absolute -top-2 left-0 z-0 font-mono text-[124px] font-bold leading-none opacity-5 lg:-top-4 lg:text-[240px]"
aria-hidden={true}
>
{year}
</div>
class="decorative-year"
role="presentation"
style="--year: '{year}'"
aria-hidden="true"
></div>
<h2 class="mt-0!">{year}</h2>
<div class="relative mb-8 grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
{#each entries as [day, problem](day)}
Expand All @@ -31,3 +31,14 @@
</div>
</section>

<style>
@reference "tailwindcss";

.decorative-year {
@apply absolute -top-2 left-0 z-0 font-mono text-[124px] font-bold leading-none opacity-5 lg:-top-4 lg:text-[240px];

&::before{
content: var(--year);
}
}
</style>
1 change: 1 addition & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
rel="external"
target="_blank"
>
<span class="sr-only">GitHub repo</span>
<GithubIcon class="size-4" strokeWidth={2} />
</a>
</nav>
Expand Down
2 changes: 2 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /