mirror of
https://github.com/web3privacy/news.git
synced 2024-10-15 18:06:26 +02:00
update
This commit is contained in:
parent
968a171408
commit
4e550b869f
3 changed files with 9 additions and 6 deletions
|
@ -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">
|
||||
<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>
|
||||
|
@ -19,8 +19,11 @@ const current = false;
|
|||
}
|
||||
</div>
|
||||
<div class="grow"></div>
|
||||
<div class="">
|
||||
<a href=`https://github.com/web3privacy/news/edit/main/data/${year}/week${week}.md`>Edit</a>
|
||||
<div class="flex gap-4 items-center">
|
||||
{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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@ import issues from '../issues.json';
|
|||
---
|
||||
|
||||
<BaseLayout>
|
||||
{issues.map((issue) => (
|
||||
{issues.filter(i => i.newsHtml !== "").map((issue) => (
|
||||
<WeekNews {issue} />
|
||||
))}
|
||||
</BaseLayout>
|
Loading…
Reference in a new issue