Skip to content

Commit 4c5f38b

Browse files
TuvalSimhaleebyrondotansimhadimaMachina
authored
Conf page (#1382)
Co-authored-by: Lee Byron <lee@leebyron.com> Co-authored-by: Dotan Simha <dotansimha@gmail.com> Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
1 parent 3814eab commit 4c5f38b

Some content is hidden

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

51 files changed

+3940
-34
lines changed

.eslintrc.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
overrides: [
4+
{
5+
files: ["**/*.{js,jsx,cjs,mjs,ts,tsx,cts,mts}"],
6+
extends: ["plugin:tailwindcss/recommended"],
7+
parser: "@typescript-eslint/parser",
8+
parserOptions: {
9+
sourceType: "module",
10+
ecmaVersion: "latest",
11+
},
12+
rules: {
13+
"tailwindcss/classnames-order": "off",
14+
},
15+
},
16+
],
17+
}

gatsby-config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const config: GatsbyConfig = {
1111
typesOutputPath: `src/__generated__/gatsby-types.d.ts`,
1212
},
1313
plugins: [
14+
"gatsby-plugin-postcss",
15+
"gatsby-plugin-svgr",
1416
"gatsby-plugin-anchor-links",
1517
{
1618
resolve: "gatsby-source-filesystem",
@@ -39,15 +41,15 @@ const config: GatsbyConfig = {
3941
google: [
4042
{
4143
family: `Rubik`,
42-
variants: [`300`],
44+
variants: [`300`, `400`, `500`, `700`],
4345
},
4446
{
4547
family: `Roboto Mono`,
4648
variants: [`400`, `400i`, `600`],
4749
},
4850
{
4951
family: `Roboto`,
50-
variants: [`300`],
52+
variants: [`300`, `500`],
5153
},
5254
],
5355
},

package.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@
99
"start": "npm run develop",
1010
"serve": "gatsby serve",
1111
"clean": "gatsby clean",
12+
"lint": "eslint --ignore-path .gitignore .",
1213
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
1314
},
1415
"resolutions": {
1516
"graphql": "16.6.0"
1617
},
1718
"dependencies": {
1819
"@graphql-tools/schema": "8.3.1",
20+
"@radix-ui/react-aspect-ratio": "^1.0.2",
21+
"@radix-ui/react-icons": "1.3.0",
1922
"@reach/router": "1.3.4",
2023
"@weknow/gatsby-remark-twitter": "0.2.3",
2124
"assert": "2.0.0",
25+
"clsx": "^1.2.1",
2226
"codemirror": "5.65.1",
2327
"codemirror-graphql": "1.2.11",
2428
"gatsby": "5.5.0",
@@ -41,8 +45,19 @@
4145
"timeago.js": "4.0.2"
4246
},
4347
"devDependencies": {
48+
"@svgr/webpack": "^7.0.0",
49+
"@tailwindcss/typography": "^0.5.9",
4450
"@types/codemirror": "5.60.5",
4551
"@types/prismjs": "1.26.0",
46-
"prettier": "2.7.1"
52+
"@typescript-eslint/parser": "^5.57.0",
53+
"autoprefixer": "^10.4.14",
54+
"eslint": "^8.37.0",
55+
"eslint-plugin-tailwindcss": "^3.10.3",
56+
"gatsby-plugin-postcss": "^6.8.0",
57+
"gatsby-plugin-svgr": "^3.0.0-beta.0",
58+
"postcss": "^8.4.21",
59+
"prettier": "2.7.1",
60+
"tailwindcss": "^3.3.1",
61+
"typescript": "^5.0.3"
4762
}
48-
}
63+
}

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/assets/css/_css/brand.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,7 @@
254254
}
255255
}
256256
}
257+
258+
.conf-style {
259+
font-family: "Rubik", "Helvetica Neue", Helvetica, Arial, sans-serif;
260+
}

src/assets/css/_css/graphql.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ header {
149149
text-decoration: none;
150150

151151
img {
152+
display: inline;
152153
vertical-align: -9px;
153154
margin-right: 6px;
154155
width: 30px;

src/assets/css/_css/index.less

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,69 @@ div.index {
77
margin-top: 50px;
88
}
99

10+
// GraphQLConf 2023 - Remove on Oct 1, 2023
11+
section.conf-banner {
12+
background-color: #562556;
13+
background: url("/img/conf/graphql-conf-bg.png") repeat center center;
14+
background-size: cover;
15+
color: #fff;
16+
text-align: center;
17+
max-width: none;
18+
margin-top: 30px;
19+
20+
& > a {
21+
color: white;
22+
display: flex;
23+
align-items: center;
24+
justify-content: center;
25+
padding: 30px;
26+
gap: 30px;
27+
margin: 0 auto;
28+
29+
@media (max-width: 900px) {
30+
flex-direction: column;
31+
gap: 10px;
32+
}
33+
34+
&:hover {
35+
text-decoration: none;
36+
}
37+
38+
& > div {
39+
display: flex;
40+
flex-direction: column;
41+
42+
& > * {
43+
margin: 6px 0;
44+
}
45+
}
46+
}
47+
48+
img {
49+
height: 150px;
50+
}
51+
52+
.button {
53+
.headline-font(@size: 17px, @color: white);
54+
border: solid 1px fadeout(white, 60%);
55+
border-radius: 6px;
56+
color: white;
57+
line-height: 1.0;
58+
transition: background 0.1s ease-out, color 0.1s ease-out;
59+
padding: 0.6em 1.6em;
60+
margin: 0 0.8em;
61+
display: inline-block;
62+
text-decoration: none;
63+
64+
&:hover, &:focus, &:active {
65+
color: @text-color;
66+
background: white;
67+
text-decoration: none;
68+
}
69+
}
70+
}
71+
// End GraphQLConf 2023
72+
1073
header {
1174
display: none;
1275
@media screen and (min-width: 1020px) {

src/assets/css/global.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

src/components/BlogSidebar/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ const BlogSidebar: React.FC = () => {
2727

2828
return (
2929
<div className="nav-docs blog-sidebar">
30-
<div className="nav-docs-section subscribe">
30+
<div>
3131
<h3>Subscribe</h3>
3232
<a rel="home" type="application/rss+xml" href="/blog/rss.xml">
3333
RSS
3434
</a>
3535
</div>
36-
<div className="nav-docs-section categories">
36+
<div className="categories">
3737
<h3>Categories</h3>
3838
<ul>
3939
{tags.map(tag => {
@@ -51,7 +51,7 @@ const BlogSidebar: React.FC = () => {
5151
})}
5252
</ul>
5353
</div>
54-
<div className="nav-docs-section recent-posts">
54+
<div className="recent-posts">
5555
<h3>Recent Posts</h3>
5656
<ul>
5757
{recentPosts.map(post => (

0 commit comments

Comments
 (0)