Skip to content

Commit d2452db

Browse files
hasparussaihaj
andauthored
new conf design — speakers (#1996)
* Add Hans Grotesk as --font-sans * Clean up the font setup to make sure .font-sans works consistently * Add Commit Mono as --font-mono * Add new colors * Use relative rgb colors to support alpha * Use unwraped custom properties for colors to support older browsers * Add typography styles * Make the texts switch to different size starting from `lg` * Go back to switching on 768px * Add README.md to explain the new directory * Add Anchor component for internal and external links * Add clsx to classFunctions in Tailwind VSCode settings * Add Button component * Add `variant` prop * Fix Button colors * Tweak hover color * Set text color in dark mode * Add RegisterToday section * Tweak RegisterToday section spacing * Improve mobile styles * Improve paddings for medium screen sizes * Add a global focus style className * Improve medium screen size styles * Add Calendar and Pin from Pixelarticons * Move typography styles to a Tailwind plugin so they autocomplete * Extract the event links * Move RegisterToday to components dir * Fix typography-d1 size * Use next-theems from transitive dep (for now) (we need `dark:` prefix for Hero) * Draft Hero component * Move Pixelarticons to .tsx files * Make the Hero match designs * Redo the Hero stripes in CSS * Tweak focus outline * Use alternative gradients in dark mode * Animate mask bean on load to avoid blinking * Tweak styles for mobiles and large screen sizes * Remove todo comment * Clean up more comments * Add Navbar * Improve the backdrop layer * Make the gradient match Figma * Add What to Expect section * Improve gql-conf-container class * Style What to Expect section nicely * Remove the old Intro section * Add a two hacky classes to make the old part of website still readable * Make the gradient match Figma * Add top minds section * improve styles * Improve social buttons * Add more socials * Update styles * More responsive styles * Show [Become as speakser] if there is no /speakers page yet * Improve the contrast of secondary button in dark mode * Make Tanmai's photo as green as the others * Add GetYourTicket section * Improve GetYourTicket styles * Improve the stripes * Lower the opacity to make text readable * Fix borders * Update text * Make the padding and borders better * Add RegisterSection * Underline links * Add Sponsors section * Tweak styles * Use SVGR to load sponsor logos and fix the grid layout * Make it less transparent and get rid of border radius * Remove a redundant comment * Remove unused import * Fix a type name * Use a proper icon * Fix alignment * Add Call for Proposals section * make the dates table * Improve styles * Begin mobile version * Tweak styles * Add the stripes * Add missing keys * Add .typography-link utility * Add FrequentlyAskedQuestions section * Tweak spacing * Bump navbar opacities * Make the Navbar okay * Add background strips per section * Remove unused import * Make the navbar more mobile friendly * Make the navbar consistent color at the top * Supress hydration warning from next-themes * Make the FAQ work better on medium screens * Fix the CallForProposals on mobile * Take a random shot at fixing the stripes glitch * Fix the navbar root link * Make the logo link to / and the text to conf root * Remove the old Register section * Update old sections to new typography styles * Fix Tyk logo * Add shrink-0 to arrows * Update navbar icons to pixelarticons * Make CallForProposals better on tablet screens * Fix border colors * Tweak spacing * Tweak the top minds for medium screens * Tweak the heading width * Add GraphQLFoundationCard * Use proper trademark color * Tweak spacings * Improve mobile styles * Refactor the logo link out, restyle old footer * Add stripes to the footer * Add grid borders to the footer * Tweak the blur blob position * Unify paddings * Make the Stripes look more like the design * Remove old pnpm-workspace.yaml * Add a basic Marquee with Motion * Copy the content of the marquee way too many times * Make the decoration look like on the design * Add remaining marquee sections * Unify colors and block scroll in navbar * Switch to current sponsors * Restyle the Sponsorship perks section * Run Prettier on SVGs * Change dl to ul in WhatToExpectSection * Show previous edition speakers in the top minds section * Restyle Resources * Unify widths per @saihaj's suggestion Co-authored-by: Saihajpreet Singh <[email protected]> * Unify more widths per @saihaj's suggestion Co-authored-by: Saihajpreet Singh <[email protected]> * Tweak styles * Draft new Speakers and Schedule pages * Bring styles closer to the design * Improve styles * Improve schedule grid styles * Add [See the speakers] link * Add comboboxes to filters * Improve dark mode styles * Add variant=tertiary to Button * Reuse Hero component * Improve [Clear Filters] button * Fix the background color * Improve hover style * Improve the backlink * Actually improve the backlink * Bring styles closer to the design * Add SpeakerCard * Add a speaker name above the title * Fix the TS target (match Node version) * Remove (now redundant) @ts-ignore comments * Display socials in consistent order * Bring the schedule page closer to the design * Improve UI * Format * Stop showing socials on speaker cards * Improve styles * Remove [View full PDF] button * Improve the UI of session page * Add a footer to speakers page * Format * Upgrade `@headlessui/react` * Open the combobox as soon as it's focused * Add USE_2025 constant * Link to proper Sched on Schedule page * Add a footer to the schedule page * Improve styles * Fix type errors * Grab speaker tags * Display returning and first time speaker * Fix icon size * Shorten a tag that's way too long * wip * wip * wip * wip * wip * Tweak things * Progress * Improve how session description looks like * add force-cache to old data to help develop * Format links in bios * Remove a TODO comment * Improve padding * bring it closer to the design * style the speaker page * Format * Fix speaker card on mobiles * Tweak spacing * Update Prettier to try to fix the CI * Add React rules for ESLint back * Remove extra padding on very narrow screens * Run ESLint on CI * Tailwind class autosorting is inconsistent between runs tailwindlabs/prettier-plugin-tailwindcss#246 * Format * Fix type error * Improve error handling * Sync 2025 speakers * Hide [Add to calendar] for now * Fix schedule paddings, hide [first time speaker] (yes) and [add to calendar] (for now?) * Clean up empty tag * Add calendar link and fix long session cards * Fix text color * Fix type error * Sync schedule 2025 * Omit inactive sessions * Rotate speakers properly when syncing * Show only speakers that have an active session * Add aspect-square * Fix schedule styles and handle malformed event types * Fix it again * Tweak cards knowing 2025 data * Remove placeholder video * Always lowercase social service name * Tweak filters for new design * Tweak the copy in What to Expect section * Tweak tags for new data * Add new colors * Fix filters * Improve Filters * Fix filters for multiselects * Fix type error * Fix sticky navbar when listbox opens --------- Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent be06165 commit d2452db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+8390
-598
lines changed

.eslintrc.cjs

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ const MARKDOWN_EXT = "md,mdx"
55

66
module.exports = {
77
root: true,
8-
plugins: ["@graphql-eslint", "mdx", "@typescript-eslint", "tailwindcss"],
8+
plugins: [
9+
"@graphql-eslint",
10+
"mdx",
11+
"@typescript-eslint",
12+
"tailwindcss",
13+
"react",
14+
"@next/next",
15+
"react-hooks",
16+
],
917
overrides: [
1018
{
1119
files: [`**/*.{${CODE_EXT}}`],
@@ -14,8 +22,42 @@ module.exports = {
1422
"plugin:@typescript-eslint/recommended",
1523
"plugin:tailwindcss/recommended",
1624
"prettier",
25+
"plugin:@next/next/recommended",
26+
"plugin:react-hooks/recommended-legacy",
27+
"plugin:react/recommended",
1728
],
1829
rules: {
30+
"react/react-in-jsx-scope": "off", // TS checks this
31+
"react/prop-types": "off", // and this
32+
"no-undef": "off", // and this too
33+
// This is type checking for projects without `@types/react`. Disabled due to false positives.
34+
"react/no-unknown-property": "off",
35+
36+
"react/no-unescaped-entities": [
37+
"warn", // quotes and apostrophes are okay
38+
{
39+
forbid: [
40+
{
41+
char: "<",
42+
alternatives: ["&lt;"],
43+
},
44+
{
45+
char: ">",
46+
alternatives: ["&gt;"],
47+
},
48+
{
49+
char: "{",
50+
alternatives: ["&#123;"],
51+
},
52+
{
53+
char: "}",
54+
alternatives: ["&#125;"],
55+
},
56+
],
57+
},
58+
],
59+
"@next/next/no-img-element": "off", // straight up upsell, small `img`s actually don't need optimization
60+
1961
"tailwindcss/classnames-order": "off",
2062
"@typescript-eslint/no-restricted-imports": [
2163
"error",
@@ -41,6 +83,9 @@ module.exports = {
4183
tailwindcss: {
4284
whitelist: ["roboto-mono"],
4385
},
86+
react: {
87+
version: "detect",
88+
},
4489
},
4590
},
4691
{
@@ -63,6 +108,7 @@ module.exports = {
63108
},
64109
rules: {
65110
"mdx/remark": "error",
111+
"no-unused-expressions": "off",
66112
},
67113
},
68114
{
@@ -90,7 +136,9 @@ module.exports = {
90136
{
91137
files: [
92138
`src/pages/blog/**/*.{${MARKDOWN_EXT}}`,
139+
`src/pages/graphql-js/running-an-express-graphql-server.mdx`,
93140
`src/code/**/*.{${MARKDOWN_EXT}}`,
141+
`src/app/conf/**/*.{${MARKDOWN_EXT}}`,
94142
],
95143
rules: {
96144
// Disable `remark-lint-first-heading-level` since in blogs we don't want to enforce the first heading to be an `h1`

.github/workflows/check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ jobs:
1717
- name: Install Dependencies
1818
run: pnpm i
1919

20-
# Commented out until later PR that changes the ESLint config
21-
# - name: Run ESLint
22-
# run: pnpm lint --quiet
20+
- name: Run ESLint
21+
run: pnpm lint --quiet
2322

2423
- name: Run Prettier Check
2524
run: pnpm format:check

package.json

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,74 +21,78 @@
2121
},
2222
"dependencies": {
2323
"@graphql-tools/schema": "10.0.15",
24-
"@headlessui/react": "^1.7.17",
25-
"@radix-ui/react-radio-group": "^1.1.3",
24+
"@headlessui/react": "^2.2.4",
25+
"@radix-ui/react-radio-group": "^1.2.2",
2626
"@tailwindcss/container-queries": "^0.1.1",
2727
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
28-
"@tailwindcss/typography": "^0.5.10",
29-
"autoprefixer": "^10.4.17",
30-
"clsx": "^2.1.0",
28+
"@tailwindcss/typography": "^0.5.15",
29+
"autoprefixer": "^10.4.20",
30+
"calendar-link": "^2.10.0",
31+
"clsx": "^2.1.1",
3132
"codemirror": "^5.65.19",
3233
"codemirror-graphql": "1.3.2",
3334
"date-fns": "^2.30.0",
34-
"fast-glob": "^3.3.2",
35+
"fast-glob": "^3.3.3",
3536
"graphql": "16.10.0",
3637
"gray-matter": "^4.0.3",
3738
"hast-util-to-string": "3.0.1",
38-
"iframe-resizer-react": "^1.1.0",
39+
"iframe-resizer-react": "^1.1.1",
3940
"leaflet": "^1.9.4",
4041
"lucide-react": "^0.469.0",
41-
"markdown-to-jsx": "^7.4.0",
42+
"markdown-to-jsx": "^7.7.2",
4243
"marked": "5.1.2",
4344
"motion": "^12.11.0",
44-
"next": "^14.2.5",
45-
"next-image-export-optimizer": "^1.12.3",
46-
"next-query-params": "^5.0.0",
45+
"next": "^14.2.22",
46+
"next-image-export-optimizer": "^1.18.0",
47+
"next-query-params": "^5.0.1",
4748
"next-sitemap": "^4.2.3",
4849
"next-with-less": "^3.0.1",
4950
"nextra": "3.0.0-alpha.28",
5051
"nextra-theme-docs": "3.0.0-alpha.28",
5152
"numbro": "2.5.0",
5253
"p-limit": "^4.0.0",
5354
"parser-front-matter": "1.6.4",
54-
"postcss": "^8.4.33",
55+
"postcss": "^8.4.49",
5556
"react": "^18.3.1",
5657
"react-dom": "^18.3.1",
5758
"react-medium-image-zoom": "5.2.13",
5859
"react-use-measure": "^2.1.7",
5960
"rss": "1.2.2",
6061
"server-only": "0.0.1",
6162
"string-similarity": "^4.0.4",
62-
"string-strip-html": "^13.4.5",
63-
"tailwindcss": "^3.4.1",
63+
"string-strip-html": "^13.4.8",
64+
"tailwindcss": "^3.4.17",
6465
"timeago.js": "4.0.2",
6566
"unified": "11.0.5",
6667
"unist-util-visit": "^5.0.0",
6768
"use-query-params": "^2.2.1"
6869
},
6970
"devDependencies": {
7071
"@graphql-eslint/eslint-plugin": "4.3.0",
71-
"@svgr/webpack": "^8.0.1",
72+
"@next/eslint-plugin-next": "^15.3.3",
73+
"@svgr/webpack": "^8.1.0",
7274
"@types/codemirror": "5.60.7",
7375
"@types/hast": "3.0.4",
74-
"@types/node": "^22.10.2",
75-
"@types/react": "^18.2.73",
76+
"@types/node": "^22.10.5",
77+
"@types/react": "^18.3.18",
7678
"@types/rss": "0.0.32",
7779
"@types/string-similarity": "^4.0.2",
7880
"@typescript-eslint/eslint-plugin": "7.18.0",
7981
"@typescript-eslint/parser": "7.18.0",
8082
"eslint": "8.57.1",
8183
"eslint-config-prettier": "^9.1.0",
8284
"eslint-plugin-mdx": "^3.1.5",
85+
"eslint-plugin-react": "^7.37.5",
86+
"eslint-plugin-react-hooks": "^5.2.0",
8387
"eslint-plugin-tailwindcss": "3.17.5",
84-
"prettier": "3.4.2",
85-
"prettier-plugin-pkg": "^0.18.1",
86-
"prettier-plugin-tailwindcss": "^0.6.9",
88+
"prettier": "3.5.3",
89+
"prettier-plugin-pkg": "^0.20.0",
90+
"prettier-plugin-tailwindcss": "^0.6.12",
8791
"remark-frontmatter": "5.0.0",
8892
"remark-lint-first-heading-level": "3.1.2",
8993
"remark-lint-heading-increment": "3.1.2",
90-
"tsx": "^4.7.0",
91-
"typescript": "^5.4.3"
94+
"tsx": "^4.19.4",
95+
"typescript": "^5.8.3"
9296
},
9397
"pnpm": {
9498
"patchedDependencies": {

0 commit comments

Comments
 (0)