This commit is contained in:
tree🌴 2024-02-12 12:20:45 +01:00
parent 968a171408
commit 4e550b869f
3 changed files with 9 additions and 6 deletions

View file

@ -8,9 +8,9 @@ const current = false;
--- ---
<div class=`mb-8 border ${!issue.published ? "border-dashed border-blue-950" : "border-white/20"}`> <div class=`mb-8 border border-white/20`>
<div class=`flex w-full p-4 sm:p-6 ${!issue.published ? "bg-blue-950" : "bg-white/10"}`> <div class=`flex w-full p-4 sm:p-6 bg-white/10`>
<div class="grid gap-2 sm:gap-6 sm:flex items-center"> <div class="grid gap-2 sm:gap-6 sm:flex items-center">
<h1 class="text-2xl"><a href=`/issue/${issue.week}`>Week {issue.week.split('-').join('/')}</a></h1> <h1 class="text-2xl"><a href=`/issue/${issue.week}`>Week {issue.week.split('-').join('/')}</a></h1>
<div class=`text-xl ${current ? "text-white/50" : ""}`>{format(issue.period[0], "MMM d")} - {format(issue.period[1], "MMM d, yyyy")}</div> <div class=`text-xl ${current ? "text-white/50" : ""}`>{format(issue.period[0], "MMM d")} - {format(issue.period[1], "MMM d, yyyy")}</div>
@ -19,8 +19,11 @@ const current = false;
} }
</div> </div>
<div class="grow"></div> <div class="grow"></div>
<div class=""> <div class="flex gap-4 items-center">
<a href=`https://github.com/web3privacy/news/edit/main/data/${year}/week${week}.md`>Edit</a> {issue.published &&
<a href={issue.published}>Paragraph</a>
}
<a href=`https://github.com/web3privacy/news/edit/main/data/${year}/week${week}.md`>{issue.published ? 'Source' : 'Edit'}</a>
</div> </div>
</div> </div>

View file

@ -18,7 +18,7 @@ import '../styles/base.css';
<h1 class="text-lg sm:text-2xl md:text-3xl lg:text-4xl font-bold">Week in the Privacy News</h1> <h1 class="text-lg sm:text-2xl md:text-3xl lg:text-4xl font-bold">Week in the Privacy News</h1>
</div> </div>
<div class="grow"></div> <div class="grow"></div>
<div class="flex gap-3 mt-4 md:mt-0"> <div class="flex gap-3 mt-4 md:mt-0 items-center">
<a href="https://paragraph.xyz/@privacynews/subscribe">Subscribe now!</a> <a href="https://paragraph.xyz/@privacynews/subscribe">Subscribe now!</a>
</div> </div>
</div> </div>

View file

@ -7,7 +7,7 @@ import issues from '../issues.json';
--- ---
<BaseLayout> <BaseLayout>
{issues.map((issue) => ( {issues.filter(i => i.newsHtml !== "").map((issue) => (
<WeekNews {issue} /> <WeekNews {issue} />
))} ))}
</BaseLayout> </BaseLayout>