|
| 1 | +import LangSwitch from '../components/LangSwitch'; |
| 2 | +import SideToc from '../components/SideToc'; |
| 3 | +import Link from 'next/link'; |
| 4 | +import { getDict } from '../lib/i18n'; |
| 5 | + |
| 6 | +export default function HomePageEN() { |
| 7 | + const t = getDict('en'); |
| 8 | + return ( |
| 9 | + <main> |
| 10 | + <header className="site-header"> |
| 11 | + <div className="container header-inner"> |
| 12 | + <div className="brand"><Link href="/">{t.brand}</Link></div> |
| 13 | + <div style={{ display: 'flex', gap: '16px', alignItems: 'center' }}> |
| 14 | + <nav className="nav"> |
| 15 | + <a href="#home">{t.nav.home}</a> |
| 16 | + <a href="#publications">{t.nav.publications}</a> |
| 17 | + <a href="#research">{t.nav.research}</a> |
| 18 | + <a href="#courses">{t.nav.courses}</a> |
| 19 | + </nav> |
| 20 | + <LangSwitch /> |
| 21 | + </div> |
| 22 | + </div> |
| 23 | + </header> |
| 24 | + |
| 25 | + <section id="home" className="hero"> |
| 26 | + <div className="container"> |
| 27 | + <h1 className="title">{t.hero.title}</h1> |
| 28 | + <p className="subtitle">{t.hero.subtitle}</p> |
| 29 | + <div className="hero-actions"> |
| 30 | + <a className="btn btn-primary" href="#about">{t.hero.ctaLearn}</a> |
| 31 | + <a className="btn btn-outline" href={`mailto:${t.contact.email}`}>{t.hero.ctaEmail}</a> |
| 32 | + </div> |
| 33 | + <div className="profile-card"> |
| 34 | + <h2>{t.profile.name}</h2> |
| 35 | + <div className="lines"> |
| 36 | + {t.profile.lines.map((line: string, idx: number) => (<div key={idx}>{line}</div>))} |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </section> |
| 41 | + |
| 42 | + <section id="publications" className="section"> |
| 43 | + <div className="container"> |
| 44 | + <h2 className="section-title">{t.publications.title}</h2> |
| 45 | + <ul className="list"> |
| 46 | + {t.publications.list.map((p: any, idx: number) => ( |
| 47 | + <li key={idx}> |
| 48 | + {p.href ? (<a href={p.href} target="_blank" rel="noopener noreferrer">{p.text}</a>) : p.text} |
| 49 | + </li> |
| 50 | + ))} |
| 51 | + </ul> |
| 52 | + </div> |
| 53 | + </section> |
| 54 | + |
| 55 | + <section id="about" className="section"> |
| 56 | + <div className="container"> |
| 57 | + <h2 className="section-title">{t.about.title}</h2> |
| 58 | + <p>{t.about.p1}</p> |
| 59 | + <p>{t.about.p2}</p> |
| 60 | + </div> |
| 61 | + </section> |
| 62 | + |
| 63 | + <section id="courses" className="section"> |
| 64 | + <div className="container"> |
| 65 | + <h2 className="section-title">{t.courses.title}</h2> |
| 66 | + <ul className="list"> |
| 67 | + {t.courses.list.map((item, idx) => ( |
| 68 | + <li key={idx}> |
| 69 | + {item.href ? ( |
| 70 | + <a href={item.href} target="_blank" rel="noopener noreferrer">{item.text}</a> |
| 71 | + ) : ( |
| 72 | + item.text |
| 73 | + )} |
| 74 | + </li> |
| 75 | + ))} |
| 76 | + </ul> |
| 77 | + </div> |
| 78 | + </section> |
| 79 | + |
| 80 | + <section id="research" className="section"> |
| 81 | + <div className="container"> |
| 82 | + <h2 className="section-title">{t.research.title}</h2> |
| 83 | + <ul className="list"> |
| 84 | + {t.research.bullets.map((b, idx) => (<li key={idx}>{b}</li>))} |
| 85 | + </ul> |
| 86 | + <p> |
| 87 | + {t.research.notePrefix} <a className="link-strong" href={`mailto:${t.contact.email}`}>{t.research.contactCta}</a>{t.research.noteSuffix} |
| 88 | + </p> |
| 89 | + </div> |
| 90 | + </section> |
| 91 | + |
| 92 | + <section id="expectations" className="section"> |
| 93 | + <div className="container"> |
| 94 | + <h2 className="section-title">{t.expectations.title}</h2> |
| 95 | + <ul className="list"> |
| 96 | + {t.expectations.list.map((b, idx) => (<li key={idx}>{b}</li>))} |
| 97 | + </ul> |
| 98 | + </div> |
| 99 | + </section> |
| 100 | + |
| 101 | + <section id="insights" className="section"> |
| 102 | + <div className="container"> |
| 103 | + <h2 className="section-title">{t.insights.title}</h2> |
| 104 | + <blockquote className="quote"> |
| 105 | + <p> |
| 106 | + {t.insights.quoteLines[0]}<br /> |
| 107 | + {t.insights.quoteLines[1]} |
| 108 | + </p> |
| 109 | + </blockquote> |
| 110 | + </div> |
| 111 | + </section> |
| 112 | + |
| 113 | + <section id="students" className="section"> |
| 114 | + <div className="container"> |
| 115 | + <h2 className="section-title">{t.students.title}</h2> |
| 116 | + <div className="table-wrap"> |
| 117 | + <table className="table"> |
| 118 | + <thead> |
| 119 | + <tr> |
| 120 | + {t.students.columns.map((c, idx) => (<th key={idx}>{c}</th>))} |
| 121 | + </tr> |
| 122 | + </thead> |
| 123 | + <tbody> |
| 124 | + {t.students.rows.map((r, idx) => ( |
| 125 | + <tr key={idx}> |
| 126 | + {r.map((cell, cidx) => (<td key={cidx}>{cell}</td>))} |
| 127 | + </tr> |
| 128 | + ))} |
| 129 | + </tbody> |
| 130 | + </table> |
| 131 | + </div> |
| 132 | + </div> |
| 133 | + </section> |
| 134 | + |
| 135 | + <section id="alumni" className="section"> |
| 136 | + <div className="container"> |
| 137 | + <h2 className="section-title">{t.alumni.title}</h2> |
| 138 | + <div className="table-wrap"> |
| 139 | + <table className="table"> |
| 140 | + <thead> |
| 141 | + <tr> |
| 142 | + {t.alumni.columns.map((c, idx) => (<th key={idx}>{c}</th>))} |
| 143 | + </tr> |
| 144 | + </thead> |
| 145 | + <tbody> |
| 146 | + {t.alumni.rows.map((r, idx) => ( |
| 147 | + <tr key={idx}> |
| 148 | + {r.map((cell, cidx) => (<td key={cidx}>{cell}</td>))} |
| 149 | + </tr> |
| 150 | + ))} |
| 151 | + </tbody> |
| 152 | + </table> |
| 153 | + </div> |
| 154 | + </div> |
| 155 | + </section> |
| 156 | + |
| 157 | + <section id="contact" className="section"> |
| 158 | + <div className="container"> |
| 159 | + <h2 className="section-title">{t.contact.title}</h2> |
| 160 | + <p> |
| 161 | + <strong>{t.contact.emailLabel}</strong>: <a className="link-strong" href={`mailto:${t.contact.email}`}>{t.contact.email}</a> |
| 162 | + </p> |
| 163 | + </div> |
| 164 | + </section> |
| 165 | + |
| 166 | + <footer className="site-footer"> |
| 167 | + <div className="container"> |
| 168 | + <p>{t.footer.replace('{year}', String(new Date().getFullYear()))}</p> |
| 169 | + </div> |
| 170 | + </footer> |
| 171 | + |
| 172 | + <SideToc items={[ |
| 173 | + { id: 'home', label: t.nav.home }, |
| 174 | + { id: 'publications', label: t.nav.publications }, |
| 175 | + { id: 'research', label: t.nav.research }, |
| 176 | + { id: 'courses', label: t.nav.courses } |
| 177 | + ]} /> |
| 178 | + </main> |
| 179 | + ); |
| 180 | +} |
| 181 | + |
| 182 | + |
0 commit comments