announcement bar

This commit is contained in:
Karol Wypchlo 2021-09-28 00:00:07 +02:00
parent bb6751008c
commit a868130231
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
1 changed files with 4 additions and 8 deletions

View File

@ -26,23 +26,19 @@ const NewsHeader = () => {
if (!latestNews) return null; // no news
// hardcoded news for now
const CURRENT_NEWS_URL =
"https://blog.sia.tech/mysky-your-home-on-the-global-operating-system-of-the-future-5a288f89825c";
const CURRENT_NEWS_TXT = "MySky: Your Home on the Global Operating System of the Future";
const title = latestNews.node.frontmatter.title;
const link = { to: latestNews.node.fields.slug };
return (
<div className="bg-palette-500 px-8 p-3">
<div className="max-w-layout mx-auto">
<div className="flex justify-between">
<Link
// to={latestNews.node.fields.slug}
href={CURRENT_NEWS_URL}
{...link}
className="text-palette-300 font-content leading-8 flex items-center overflow-hidden text-base hover:text-primary transition-colors duration-200"
>
<ArrowRight className="mr-2 flex-shrink-0 fill-current text-primary" />
{/* <span className="truncate">{latestNews.node.frontmatter.title}</span> */}
<span className="truncate">{CURRENT_NEWS_TXT}</span>
<span className="truncate">{title}</span>
</Link>
<div className="ml-auto items-center pl-8 hidden desktop:block">