Skip to content

Commit

Permalink
add banner
Browse files Browse the repository at this point in the history
Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips committed Sep 8, 2023
1 parent 217bf2a commit e7ae7ba
Show file tree
Hide file tree
Showing 4 changed files with 3,832 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/Banner.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default function Banner() {
return (
<div className="items-center justify-center gap-x-6 bg-white px-6 py-2.5 sm:px-3.5 sm:before:flex-1">
<p className="text-sm leading-6 text-black fit-content">
<a className="w-items" href="https://conf.techmids.io">
<strong className="font-semibold">TechMids Conf October 2023</strong>
<svg viewBox="0 0 2 2" className="mx-2 inline h-0.5 w-0.5 fill-current" aria-hidden="true">
<circle cx={1} cy={1} r={1} />
</svg>
Join us in Birmingham's ICC on 20th October 2023<span aria-hidden="true">&rarr;</span>
</a>
</p>
</div>
)
}
2 changes: 2 additions & 0 deletions src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Header } from '@/components/Header'

import '@/styles/tailwind.css'
import 'focus-visible'
import Banner from "@/components/Banner";

function usePrevious(value) {
let ref = useRef()
Expand All @@ -27,6 +28,7 @@ export default function App({ Component, pageProps, router }) {
</div>
</div>
<div className="relative">
<Banner />
<Header />
<main>
<Component previousPathname={previousPathname} {...pageProps} />
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { getAllArticles } from '@/lib/getAllArticles'
import { formatDate } from '@/lib/formatDate'
import { meetups } from "../../meetups";
import { config } from "../../config";
import Banner from "@/components/Banner";

function MailIcon(props) {
return (
Expand Down
Loading

0 comments on commit e7ae7ba

Please sign in to comment.