Skip to content

Commit 747803b

Browse files
hasparusgithub-actions[bot]dimaMachina
authored
Redesigned website (#10179)
* Bump @theguild/components * Bump components to snapshot * Modify Tailwind config * Add a font, footer and navmenu * Bump Components * Disable autoImportThemeStyle * Add draft FAQs * Add sections reused between websites * Comment out FrequentlyAskedQuestions * Add dev-ex-cards * Add favicon.svg * Add eslint-plugin-tailwindcss * Add a hero section * Remove FAQs until they are needed * Fix spacing * Add TypeSafeCards * Add a todo comment * chore(dependencies): updated changesets for modified dependencies * chore(dependencies): updated changesets for modified dependencies * Add plugins search, tweak plugins icons * Add postcss-nesting * Add products, the-guild and gql foundation to _meta.ts * Tweak margin * Add ExploreMainProductCards and update texts * Colocate plugin icons with plugins.ts * Update modules icon to a temp one * Tweak Vue icon * Update Hasura icon * Update icons * Change logos in navmenu and footer * Tweak footer logo * Remove the yellow CTA section * Use stable version, tweak margins, hide hamburger menu footer with theme switcher * Update website/src/components/hero/index.tsx Co-authored-by: Dimitri POSTOLOV <[email protected]> * Update website/src/components/hero/index.tsx Co-authored-by: Dimitri POSTOLOV <[email protected]> * Update website/src/components/hero/index.tsx Co-authored-by: Dimitri POSTOLOV <[email protected]> * Update website/public/favicon.svg Co-authored-by: Dimitri POSTOLOV <[email protected]> * Update website/public/favicon.svg Co-authored-by: Dimitri POSTOLOV <[email protected]> * Move eslint plugin dep and use a version that works * Update lockfile * Update ESLint and Tailwind configs * Add missing Tailwind dependency, remove promoted line from config, bundler resolution * Turn PostCSS config to mjs * Add a missing dependency postcss-lightningcss * Update website/src/components/hero/index.tsx Co-authored-by: Dimitri POSTOLOV <[email protected]> * Bump and format * Move CSS vars to body * Bump components * Build again * Configure .developerMenu in navigation * Bump Components * Bump Components to include wider navmenu --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent fa64fbf commit 747803b

Some content is hidden

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

57 files changed

+2810
-4409
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
root: true,
3-
extends: ['@theguild'],
3+
extends: ['@theguild', 'plugin:tailwindcss/recommended'],
44
rules: {
55
'no-empty': 'off',
66
'@typescript-eslint/explicit-module-boundary-types': 'off',

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@babel/preset-typescript": "7.24.7",
4949
"@changesets/changelog-github": "0.5.0",
5050
"@changesets/cli": "2.27.7",
51-
"@theguild/eslint-config": "0.12.0",
51+
"@theguild/eslint-config": "0.13.0",
5252
"@theguild/prettier-config": "0.1.1",
5353
"@types/jest": "28.1.8",
5454
"babel-jest": "29.7.0",
@@ -69,7 +69,8 @@
6969
"ts-node": "10.9.2",
7070
"tslib": "2.6.3",
7171
"tsx": "4.17.0",
72-
"typescript": "5.5.4"
72+
"typescript": "5.5.4",
73+
"eslint-plugin-tailwindcss": "npm:@hasparus/[email protected]"
7374
},
7475
"lint-staged": {
7576
"packages/**/src/**/*.{ts,tsx}": [

website/next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const PLUGINS_REDIRECTS = Object.entries(CategoryToPackages).flatMap(([category,
66
);
77

88
export default withGuildDocs({
9+
nextraConfig: {
10+
autoImportThemeStyle: false,
11+
},
912
output: 'export',
1013
experimental: {
1114
urlImports: [

website/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
1010
"generate-json-config": "tsx generate-config-json-schema.ts"
1111
},
1212
"devDependencies": {
13-
"@theguild/tailwind-config": "0.4.2",
13+
"@theguild/tailwind-config": "0.6.0",
1414
"@types/dedent": "0.7.2",
1515
"@types/jsonpath": "0.2.4",
1616
"@types/node": "20.16.1",
1717
"@types/react": "18.3.3",
1818
"fast-xml-parser": "4.4.1",
1919
"jsonpath": "1.1.1",
20-
"prettier-plugin-tailwindcss": "0.2.8"
20+
"postcss-import": "^16.1.0",
21+
"postcss-lightningcss": "^1.0.1",
22+
"prettier-plugin-tailwindcss": "0.2.8",
23+
"tailwindcss": "^3.4.14"
2124
},
2225
"dependencies": {
2326
"@graphql-codegen/add": "5.0.3",
@@ -67,7 +70,9 @@
6770
"@graphql-codegen/urql-introspection": "2.2.1",
6871
"@mizdra/graphql-codegen-typescript-fabbrica": "^0.6.0",
6972
"@monaco-editor/react": "4.6.0",
70-
"@theguild/components": "6.6.3",
73+
"@radix-ui/react-accordion": "^1.2.1",
74+
"@radix-ui/react-icons": "^1.3.0",
75+
"@theguild/components": "7.2.6-alpha-20241113150056-4fde1eeb45f35f58300f9d846528945f771121df",
7176
"classnames": "2.5.1",
7277
"date-fns": "2.30.0",
7378
"dedent": "1.5.3",
@@ -76,6 +81,7 @@
7681
"next": "14.2.3",
7782
"next-mdx-remote": "4.4.1",
7883
"next-sitemap": "4.2.3",
84+
"postcss-nesting": "^13.0.1",
7985
"react": "^18.2.0",
8086
"react-dom": "^18.2.0",
8187
"react-markdown": "8.0.7",

website/postcss.config.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/postcss.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import config from '@theguild/tailwind-config/postcss.config';
2+
3+
export default {
4+
...config,
5+
plugins: {
6+
...config.plugins,
7+
'postcss-nesting': {},
8+
},
9+
};

website/public/assets/illustrations/gql-codegen-cover.svg

Lines changed: 0 additions & 1989 deletions
This file was deleted.

website/public/assets/illustrations/gql-generate-code-illustration.svg

Lines changed: 0 additions & 492 deletions
This file was deleted.

website/public/assets/illustrations/gql-watch-for-changes-illustration.svg

Lines changed: 0 additions & 328 deletions
This file was deleted.

website/public/assets/img/icons/apollo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/public/assets/img/icons/codegen.svg

Lines changed: 0 additions & 9 deletions
This file was deleted.

website/public/assets/img/icons/graphql.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/public/assets/img/icons/java.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/public/assets/img/icons/vue.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/public/favicon.ico

-106 KB
Binary file not shown.

website/public/favicon.svg

Lines changed: 19 additions & 0 deletions
Loading
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { cn, Heading, InfoCard } from '@theguild/components';
2+
3+
import boxSvg from './icons/box.svg';
4+
import checkmarksSvg from './icons/checkmarks.svg';
5+
import speedometerSvg from './icons/speedometer.svg';
6+
7+
export function DevExCards(props: { className?: string }) {
8+
return (
9+
<section className={cn('px-4 py-6 sm:py-12 md:px-6 lg:py-24 xl:px-[120px]', props.className)}>
10+
<Heading as="h3" size="md" className="text-balance text-center">
11+
Your chance to fully use GraphQL.
12+
</Heading>
13+
<p className="mx-auto mt-4 max-w-[700px] text-center text-green-800">
14+
Codegen enhances your GraphQL development with fully typed client and server code, generating robust,
15+
error-resistant solutions in seconds
16+
</p>
17+
<ul className="mt-6 flex flex-row flex-wrap justify-center gap-2 md:mt-16 md:gap-6">
18+
<InfoCard
19+
as="li"
20+
heading="Typed Queries, Mutations, and Subscriptions"
21+
icon={<img src={boxSvg.src} alt="" />}
22+
className="flex-1 rounded-2xl md:rounded-3xl"
23+
>
24+
Automate the creation of typed queries, mutations, and subscriptions for frameworks like React, Vue, Angular,
25+
and more.
26+
</InfoCard>
27+
<InfoCard
28+
as="li"
29+
heading="Typed GraphQL resolvers"
30+
icon={<img src={speedometerSvg.src} alt="" />}
31+
className="flex-1 basis-full rounded-2xl md:basis-0 md:rounded-3xl"
32+
>
33+
Generate typed GraphQL resolvers for any Node.js or Java GraphQL server, ensuring compatibility and
34+
efficiency.
35+
</InfoCard>
36+
<InfoCard
37+
as="li"
38+
heading="Fully-typed Node.js SDKs"
39+
icon={<img src={checkmarksSvg.src} alt="" />}
40+
className="flex-1 basis-full rounded-2xl md:rounded-3xl lg:basis-0"
41+
>
42+
Produce fully-typed Node.js SDKs, enhancing development with reliable, strongly typed software components.
43+
</InfoCard>
44+
</ul>
45+
</section>
46+
);
47+
}

0 commit comments

Comments
 (0)