Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
6185f46
feat: carry the hero's look through the rest of the site
dhananjay-123 Oct 20, 2026
29a364f
fix: centre the contribution ring on people's portraits
dhananjay-123 Oct 20, 2026
1833372
feat: glow the people fields on scroll and rename the contributors se…
dhananjay-123 Oct 20, 2026
8641021
fix: space people so their contribution rings never overlap
dhananjay-123 Oct 20, 2026
67e3b1c
fix: highlight headings line by line and colour the footer icons
dhananjay-123 Oct 20, 2026
6bb182e
fix: fit the footer under the header and hide portrait rings until hover
dhananjay-123 Oct 20, 2026
742db2d
fix: tighten the space above the footer and simplify the join steps
dhananjay-123 Oct 20, 2026
b613eb0
fix: write section titles in with ink instead of a highlight sweep
dhananjay-123 Oct 20, 2026
c084a7a
fix: drop the branch chips above section titles
dhananjay-123 Oct 20, 2026
f0d9fb3
fix: remove the scroll to explore link from the hero
dhananjay-123 Oct 20, 2026
aa7ebac
fix: keep portrait rings the same size on phones
dhananjay-123 Oct 20, 2026
cd3491b
docs: before and after screenshots for the PR
dhananjay-123 Oct 20, 2026
99e5569
docs: drop PR screenshots from the tree
dhananjay-123 Oct 20, 2026
118ce8d
Merge main into feat/site-redesign
dhananjay-123 Oct 21, 2026
399b06b
fix: plainer section headings and copy below the hero
dhananjay-123 Oct 21, 2026
03e804b
feat: draw the principles on a compass and the way in as a route
dhananjay-123 Oct 21, 2026
9e32c42
refactor: drop the hint lines under the domain drawings
dhananjay-123 Oct 21, 2026
088eba2
docs: after screenshots for the PR
dhananjay-123 Oct 21, 2026
7f0a43e
docs: drop PR screenshots from the tree
dhananjay-123 Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/admin/(dashboard)/github/contributors-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function ContributorsForm({ settings }: { settings: Tables<'github_settin
<form className="admin-form" action={formAction} noValidate>
<FormMessage state={state} />
<Checkbox name="showContributors" label="Show contributors on the site" hint="Everyone who has committed to the repositories above, most commits first." state={state} defaultChecked={settings?.show_contributors ?? true} />
<TextField name="heading" label="Heading" required maxLength={80} state={state} defaultValue={settings?.contributors_heading ?? 'Built in the open.'} />
<TextField name="heading" label="Heading" required maxLength={80} state={state} defaultValue={settings?.contributors_heading ?? 'Contributors'} />
<TextField name="maxContributors" label="How many to show" type="number" min={1} max={100} inputMode="numeric" required state={state} defaultValue={settings?.max_contributors ?? 24} />
<TextArea name="intro" label="Introduction" maxLength={300} rows={2} hint="Optional. One sentence beside the heading." className="admin-field-wide" state={state} defaultValue={settings?.contributors_intro} />
<TextArea
Expand Down
2 changes: 1 addition & 1 deletion src/app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { StatusPage } from '@/components/status-page';
export default function ErrorPage({ reset }: { error: Error & { digest?: string }; reset: () => void }) {
return (
<StatusPage code="500" title="Something broke." detail="The page could not be loaded. It is usually temporary.">
<button className="text-action" onClick={reset}>Try again</button>
<button className="pill-button" onClick={reset}>Try again</button>
</StatusPage>
);
}
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import '@/styles/github.css';
import '@/styles/layout.css';
import '@/styles/join.css';
import '@/styles/hero.css';
import '@/styles/open-source.css';
import { themeInitScript } from '@/lib/theme';

export const metadata: Metadata = {
Expand Down
2 changes: 1 addition & 1 deletion src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const metadata: Metadata = {
export default function NotFound() {
return (
<StatusPage code="404" title="Off the map." detail="That page does not exist, or it has moved.">
<Link className="text-action" href="/">Back to the society</Link>
<Link className="pill-button" href="/">Back to the society</Link>
</StatusPage>
);
}
24 changes: 8 additions & 16 deletions src/components/site/about.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
'use client';

import type { Domain } from '@/lib/content/types';
import { Domains } from './domains';
import { Eyebrow } from './eyebrow';
import { SpotlightCard } from './spotlight-card';

const principles = [
{ label: '01 / NO BIAS', title: 'Your work speaks.', detail: 'What you make and share matters more than your background.' },
{ label: '02 / TRANSPARENCY', title: 'Build out loud.', detail: 'Open discussion and direct feedback shape our direction.' },
{ label: '03 / NO PRESSURE', title: 'Move with curiosity.', detail: 'Contribute at your own pace. You don’t need a title to help.' },
];
import { Principles } from './principles';
import { SectionHead } from './section-head';

export function About({ domains }: { domains: Domain[] }) {
return (
<section className="about-section" id="about" aria-labelledby="about-title">
<div className="about-head"><div><Eyebrow>01 / THE SOCIETY</Eyebrow><h2 id="about-title">Curiosity is the<br /><em>only prerequisite.</em></h2></div><p>The Enigma Society is a community-first tech space at ABV-IIITM Gwalior. We grow through open discussions, peer learning, and building together across domains.</p></div>
<div className="principle-grid">
{principles.map((principle) => (
<SpotlightCard key={principle.label}><span>{principle.label}</span><h3>{principle.title}</h3><p>{principle.detail}</p></SpotlightCard>
))}
</div>
<SectionHead
id="about-title"
title="About TES"
lede="The Enigma Society is a community-first tech space at ABV-IIITM Gwalior. We grow through open discussions, peer learning, and building together across domains."
/>
<Principles />
{domains.length > 0 && <Domains domains={domains} />}
</section>
);
Expand Down
58 changes: 43 additions & 15 deletions src/components/site/build-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,61 @@
'use client';

import { ArrowUpRight, GitFork } from 'lucide-react';
import type { CSSProperties } from 'react';
import { BookMarked, Scale } from 'lucide-react';
import type { ContributorsSection, Repository, SiteLinks } from '@/lib/content/types';
import { Eyebrow } from './eyebrow';
import { Contributors, Projects, RepoStatsRow, repositoryUrl } from './github-sections';
import { SpotlightCard } from './spotlight-card';
import { Contributors, Language, Projects, RepoStatsRow, repositoryUrl } from './github-sections';

type Props = { links: SiteLinks; repositories: Repository[]; contributors: ContributorsSection | null };

// The card's original copy, for a featured repository without its own.
const DEFAULT_HEADLINE = 'Make the web';
const DEFAULT_EMPHASIS = 'a little better.';

/** A feature branch leaving main and merging back, with commits travelling along it. */
function BranchArt() {
return (
<svg className="branch-art" viewBox="0 0 240 360" aria-hidden="true">
<path className="branch-main" d="M70 0V360" />
<path className="branch-feature" d="M70 70C70 110 170 100 170 140V220C170 260 70 250 70 290" />
<path className="branch-flow" d="M70 70C70 110 170 100 170 140V220C170 260 70 250 70 290" />
<circle className="branch-commit" cx="70" cy="40" r="7" style={{ '--n': 0 } as CSSProperties} />
<circle className="branch-commit is-feature" cx="170" cy="150" r="7" style={{ '--n': 1 } as CSSProperties} />
<circle className="branch-commit is-feature" cx="170" cy="210" r="7" style={{ '--n': 2 } as CSSProperties} />
<circle className="branch-commit" cx="70" cy="180" r="7" style={{ '--n': 3 } as CSSProperties} />
<circle className="branch-merge" cx="70" cy="290" r="11" />
<path className="branch-merge-mark" d="m65 290.5 3.5 3.5 7-7.5" />
</svg>
);
}

export function BuildPanel({ links, repositories, contributors }: Props) {
const featured = repositories.find((repository) => repository.isFeatured) ?? null;
const projects = repositories.filter((repository) => repository !== featured);
const tags = featured ? [featured.title, featured.language, featured.license].filter(Boolean) : [];
const [owner, name] = (featured?.fullName ?? 'TESIIITM/TES-Website').split('/');
return (
<div className="build-panel">
<div className="feature-grid">
<SpotlightCard className="feature-card">
<div className="feature-heading"><Eyebrow>FEATURED / OPEN REPOSITORY</Eyebrow><span className="source-insignia"><GitFork size={17} strokeWidth={1.5} /> TES / OPEN SOURCE</span></div>
<h3>{featured?.headline ?? DEFAULT_HEADLINE}<br /><em>{featured?.headlineEmphasis ?? DEFAULT_EMPHASIS}</em></h3>
<article className="repo-card">
<div className="repo-card-main">
<div className="repo-head">
<BookMarked size={18} aria-hidden="true" />
<a href={featured ? repositoryUrl(featured) : links.repository} target="_blank" rel="noopener noreferrer">{owner} / <strong>{name}</strong></a>
<span className="repo-chip">Public</span>
<span className="repo-chip is-featured">Featured</span>
</div>
<h3>{featured?.headline ?? DEFAULT_HEADLINE} {featured?.headlineEmphasis ?? DEFAULT_EMPHASIS}</h3>
{featured?.description && <p>{featured.description}</p>}
{tags.length > 0 && <div className="feature-tags">{tags.map((tag) => <span key={tag}>{tag}</span>)}</div>}
{(featured?.language || featured?.license) && (
<div className="repo-meta">
{featured.language && <Language name={featured.language} />}
{featured.license && <span><Scale size={14} aria-hidden="true" /> {featured.license} license</span>}
</div>
)}
{featured?.stats && <RepoStatsRow stats={featured.stats} />}
<div className="feature-links"><a href={featured ? repositoryUrl(featured) : links.repository} target="_blank" rel="noopener noreferrer">Explore repository <ArrowUpRight size={17} /></a><a href={links.contributionGuide} target="_blank" rel="noopener noreferrer">Contribution guide <ArrowUpRight size={17} /></a></div>
</SpotlightCard>
</div>
<div className="repo-actions">
<a className="pill-button pill-primary" href={featured ? repositoryUrl(featured) : links.repository} target="_blank" rel="noopener noreferrer">Explore repository</a>
<a className="pill-button" href={links.contributionGuide} target="_blank" rel="noopener noreferrer">Contribution guide</a>
</div>
</div>
<BranchArt />
</article>
{projects.length > 0 && <Projects repositories={projects} />}
{contributors && contributors.people.length > 0 && <Contributors section={contributors} />}
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/components/site/command-palette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function buildActions(links: SiteLinks, featuredEvent: string | null): Action[]
? { label: `See ${featuredEvent.replace(/\.$/, '')}`, detail: 'Current announcement and official links', group: 'DISCOVER', target: 'gather' }
: { label: 'See events', detail: 'Announcements from the society', group: 'DISCOVER', target: 'gather' },
{ label: 'Meet the society', detail: 'Principles and the domains we work in', group: 'DISCOVER', target: 'about' },
{ label: 'Meet the people', detail: 'Faculty, students, and the next step', group: 'DISCOVER', target: 'people' },
{ label: 'Meet the people', detail: 'Faculty coordinators and the student team', group: 'DISCOVER', target: 'people' },
{ label: 'Make your first contribution', detail: 'The way in, from first pull request to joining', group: 'DISCOVER', target: 'join' },
{ label: 'Open GitHub', detail: 'TESIIITM on GitHub', group: 'ELSEWHERE', target: links.github, external: true },
{ label: 'Read on Medium', detail: 'The society publication', group: 'ELSEWHERE', target: links.medium, external: true },
];
Expand Down
Loading
Loading