Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
burningtree committed Feb 6, 2024
1 parent 494c546 commit 7e8a415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WeekNews.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<div class="flex w-full p-4 sm:p-6 {current ? "bg-blue-950" : "bg-white/10"}">
<div class="grid gap-2 sm:gap-6 sm:flex items-center">
<h1 class="text-2xl">Week {week}/{year}</h1>
<h1 class="text-2xl"><a href={data.published} class="{!data.published ? 'no-underline' : ''}">Week {week}/{year}</a></h1>
<div class="text-xl {current ? "text-white/50" : ""}">{format(weekStart, "MMM d")} - {format(weekEnd, "MMM d, yyyy")}</div>
{#if current}
<div class="text-white">🚧 Current week</div>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import WeekNews from '../components/WeekNews.svelte';
---

<BaseLayout>
<div class="mb-8">
<iframe src="https://paragraph.xyz/@privacynews/embed?minimal=true" width="480" height="45" style="border:1px solid #EEE; background:white;" frameborder="0" scrolling="no"></iframe>
</div>
<WeekNews year="2024" week="06" current={true} client:load />
<WeekNews year="2024" week="05" client:load />
</BaseLayout>

0 comments on commit 7e8a415

Please sign in to comment.