File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export const CONFERENCE = {
88 announcement :
99 'Hyderabad’s biggest Python conference is on the way! Get ready for an unforgettable experience and stay tuned for updates!' ,
1010 siteURL : 'http://2025.pyconfhyd.org' ,
11+ latestYearSiteURL : 'https://pyconfhyd.org' ,
1112 copyrightTitle : 'Copyright @ 2025 PyConf Hyderabad' ,
1213 conferenceDate : '22 Feb' ,
1314 conferenceVenue : 'T-Hub' ,
Original file line number Diff line number Diff line change 11import './globals.css' ;
2+ import { CONFERENCE } from '@/conference' ;
23import { metadata } from '@/metadata' ;
34import Header from '@/components/Header' ;
45import Footer from '@/components/Footer' ;
56import { ThemeToggle } from '@/components/ThemeToggle' ;
67import { ThemeProvider } from '@/components/ThemeContext' ;
8+ import InfoAlert from '@/components/InfoAlert' ;
9+ import Link from 'next/link' ;
10+ import { Span } from '@/components/Typography' ;
711export { metadata } ;
812
913export default function RootLayout ( { children } ) {
1014 return (
1115 < html lang = "en" className = "scroll-smooth" >
1216 < body className = "flex flex-col min-h-screen bg-background-light dark:bg-background-dark text-gray-900 dark:text-gray-100" >
1317 < ThemeProvider >
18+ < InfoAlert >
19+ < Span level = { 5 } >
20+ You are browsing the archive for the 2025 event. Check out the
21+ < Link href = { CONFERENCE . latestYearSiteURL } className = "px-1 underline" >
22+ latest edition
23+ </ Link >
24+ instead!
25+ </ Span >
26+ </ InfoAlert >
1427 < Header themeToggle = { < ThemeToggle /> } />
1528 < main className = "flex-grow" > { children } </ main >
1629 < Footer />
Original file line number Diff line number Diff line change 11export default function InfoAlert ( { children } ) {
22 return (
33 < div
4- className = "text-center p-4 rounded-lg text-blue-800 bg-blue-50 dark:bg-gray-800 dark:text-blue-400"
4+ className = "text-center p-2 rounded-lg text-blue-800 bg-blue-50 dark:bg-gray-800 dark:text-blue-400"
55 role = "alert"
66 >
77 { children }
You can’t perform that action at this time.
0 commit comments