Skip to content

Commit 02c9981

Browse files
committed
Add a TokioConf CFP announcement at the top of the website
1 parent 0959de9 commit 02c9981

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

components/announcement.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { FC } from "react";
2+
3+
const Announcement: FC = () => (
4+
<div className="tk-announcement">
5+
<div className="tk-announcement-content">
6+
<a href="/blog/2025-09-26-announcing-tokio-conf-cfp">
7+
The TokioConf 2026 Call For Talk Proposals is now open
8+
</a>
9+
</div>
10+
</div>
11+
);
12+
13+
export default Announcement;

components/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { FC, ReactNode } from "react";
22

33
import Head from "next/head";
44
import Navigation from "./nav";
5+
import Announcement from "./announcement";
56
import { Roboto } from "next/font/google";
67

78
const roboto = Roboto({
@@ -35,6 +36,7 @@ const Layout: FC<Props> = ({ title, blog, children }) => (
3536
<link rel="alternate" type="application/rss+xml" href="/blog/index.xml" />
3637
</Head>
3738
<main className={roboto.className}>
39+
<Announcement />
3840
<Navigation blog={blog} />
3941
{children}
4042
</main>

styles/styles.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,27 @@ a:active {
101101
overscroll-behavior-y: none;
102102
}
103103

104+
.tk-announcement {
105+
width: 100%;
106+
background-color: $magenta;
107+
padding: 0.75rem 1rem;
108+
text-align: center;
109+
110+
.tk-announcement-content {
111+
a {
112+
color: white;
113+
font-weight: 500;
114+
text-decoration: none;
115+
display: block;
116+
117+
&:hover {
118+
color: white;
119+
text-decoration: underline;
120+
}
121+
}
122+
}
123+
}
124+
104125
.content {
105126
h1,
106127
h2,

0 commit comments

Comments
 (0)