Skip to content

Commit 5374526

Browse files
authored
Merge pull request #65 from Krish-2118/development
Development
2 parents b594c0c + bdce7e0 commit 5374526

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

‎src/app/globals.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;o
215215
.hero-kicker{--ls:.42em;gap:.55em;font-size:clamp(11px,1.05vw,16px);letter-spacing:var(--ls)}
216216
/* Second kicker line: a little smaller and lighter, so NIT ROURKELA leads. --ls is in em, so the centring pad shrinks with it. */
217217
.hero-kicker-sub{font-size:.88em;font-weight:700;opacity:.78}
218+
/* Third kicker line: PRESENTS, smaller and quieter again, a hand-off from the kicker to the title. */
219+
.hero-kicker-presents{font-size:max(.78em,8px);font-weight:500;opacity:.66}
218220
.hero-title{margin:clamp(10px,2vh,22px) 0 clamp(8px,1.4vh,16px);font-size:clamp(36px,12.4vw,224px)}
219221
.hero-sub{--ls:.32em;gap:18px;font-size:clamp(12px,1.35vw,21px);letter-spacing:var(--ls)}
220222
.hero-sub-rule{width:clamp(24px,4vw,64px);flex:none}

‎src/app/opengraph-image.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export const size = OG_SIZE;
99
export const contentType = 'image/png';
1010

1111
export default function OpengraphImage() {
12-
return ogCard({ kicker: 'NIT ROURKELA', kickerSub: 'STUDENT ACTIVITY CENTRE PRESENTS', title: 'INNOVISION', subtitle: '2026 · THE CELESTIAL ODYSSEY' });
12+
return ogCard({ kicker: 'NIT ROURKELA', kickerSub: 'STUDENT ACTIVITY CENTRE', kickerTail: 'PRESENTS', title: 'INNOVISION', subtitle: '2026 · THE CELESTIAL ODYSSEY' });
1313
}

‎src/components/innovision/HomeView.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,13 @@ export default function HomeView({ v }: { v: V }) {
5555
</div>
5656
<div className="hero-copy" style={{ display: "flex", flexDirection: "column", alignItems: "center", textAlign: "center", pointerEvents: "none" }}>
5757
{/* Wide screens: display contents, so copy and buttons share one centred column. Stacked screens: a box the size of the disc.
58-
The page's one heading is the whole visible line-up: NIT ROURKELA / STUDENT ACTIVITY CENTRE PRESENTS / INNOVISION / 2026 · THE CELESTIAL ODYSSEY.
58+
The page's one heading is the whole visible line-up: NIT ROURKELA / STUDENT ACTIVITY CENTRE / PRESENTS / INNOVISION / 2026 · THE CELESTIAL ODYSSEY.
5959
Its parts are spans (phrasing content); the spaces between them are not rendered between flex items but keep the words apart in the text. */}
6060
<h1 aria-label="NIT Rourkela Student Activity Centre presents Innovision 2026: The Celestial Odyssey" className="hero-copy-disc" style={{ margin: "0", fontSize: "inherit", fontWeight: "inherit" }}>
6161
<span data-h-kicker="" className="hero-kicker" style={{ display: "flex", flexDirection: "column", alignItems: "center", color: "#ECE8DF", fontFamily: "var(--font-sans)", fontWeight: "700", whiteSpace: "nowrap" }}>
6262
<span className="hero-track">NIT ROURKELA</span>{" "}
63-
<span className="hero-track hero-kicker-sub">STUDENT ACTIVITY CENTRE PRESENTS</span>
63+
<span className="hero-track hero-kicker-sub">STUDENT ACTIVITY CENTRE</span>{" "}
64+
<span className="hero-track hero-kicker-presents">PRESENTS</span>
6465
</span>{" "}
6566
<span className="hero-title" style={{ display: "flex", fontFamily: "var(--font-display)", fontWeight: "400", lineHeight: ".95", letterSpacing: ".01em", color: "#fff", mixBlendMode: "difference", whiteSpace: "nowrap" }}>
6667
{v.heroChars.map((c, cI) => (

‎src/components/innovision/Loader.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export default function Loader({ v }: { v: V }) {
6464
<div data-l-fade="" style={{ overflow: "hidden" }}>
6565
<div data-l-line="" style={{ fontSize: "12px", fontWeight: "500", letterSpacing: ".34em" }}>
6666
NIT ROURKELA
67-
<span style={{ display: "block", marginTop: "6px", fontSize: "min(11px, 3.2vw)", fontWeight: "700", letterSpacing: ".24em", opacity: ".75" }}>STUDENT ACTIVITY CENTRE PRESENTS</span>
67+
<span style={{ display: "block", marginTop: "6px", fontSize: "min(11px, 3.2vw)", fontWeight: "700", letterSpacing: ".24em", opacity: ".75" }}>STUDENT ACTIVITY CENTRE</span>
68+
<span style={{ display: "block", marginTop: "5px", fontSize: "max(8px, min(9px, 2.6vw))", fontWeight: "500", letterSpacing: ".24em", opacity: ".6" }}>PRESENTS</span>
6869
</div>
6970
</div>
7071
<div data-l-fade="" style={{ overflow: "hidden" }}>

‎src/lib/og-card.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ export const OG_SIZE = { width: OG_IMAGE.width, height: OG_IMAGE.height };
1515

1616
/**
1717
* @param kicker small caps line above the title, e.g. 'NIT ROURKELA'.
18-
* @param kickerSub optional smaller second kicker line, e.g. 'STUDENT ACTIVITY CENTRE PRESENTS'.
18+
* @param kickerSub optional smaller second kicker line, e.g. 'STUDENT ACTIVITY CENTRE'.
19+
* @param kickerTail optional smallest third kicker line, e.g. 'PRESENTS'.
1920
* @param title the big serif line; anything longer than INNOVISION is set smaller and may wrap onto two lines.
2021
* @param subtitle the gold line under the title.
2122
*/
22-
export async function ogCard({ kicker, kickerSub, title, subtitle }: { kicker: string; kickerSub?: string; title: string; subtitle: string }) {
23+
export async function ogCard({ kicker, kickerSub, kickerTail, title, subtitle }: { kicker: string; kickerSub?: string; kickerTail?: string; title: string; subtitle: string }) {
2324
const [serif, starfield, logo] = await Promise.all([
2425
readFile(join(process.cwd(), 'src/assets/fonts/DMSerifDisplay-Regular.ttf')),
2526
readFile(join(process.cwd(), 'public/assets/starfield.svg')),
@@ -44,6 +45,7 @@ export async function ogCard({ kicker, kickerSub, title, subtitle }: { kicker: s
4445
<img src={`data:image/png;base64,${logo.toString('base64')}`} alt="" width={84} height={84} style={{ marginBottom: 18 }} />
4546
<div style={{ color: BONE, fontSize: 20, letterSpacing: 6, fontWeight: 700 }}>{kicker}</div>
4647
{kickerSub && <div style={{ color: BONE, opacity: 0.78, fontSize: 17, letterSpacing: 4, fontWeight: 700, marginTop: 8 }}>{kickerSub}</div>}
48+
{kickerTail && <div style={{ color: BONE, opacity: 0.66, fontSize: 14, letterSpacing: 4, fontWeight: 500, marginTop: 7 }}>{kickerTail}</div>}
4749
<div
4850
style={{
4951
display: 'flex', justifyContent: 'center', maxWidth: 470, textAlign: 'center', color: '#fff', fontFamily: 'DM Serif Display',

0 commit comments

Comments
 (0)