Skip to content

Commit ed87c2b

Browse files
author
Dimitri POSTOLOV
authored
fix conflicts with tailwindcss (#1388)
1 parent e17a3f0 commit ed87c2b

File tree

14 files changed

+38
-34
lines changed

14 files changed

+38
-34
lines changed

src/Containers/Sections/BringYourOwnCode/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Index = (): JSX.Element => {
1919

2020
return (
2121
<section className="point6" id="bring-your-own-code">
22-
<div className="prose">
22+
<div className="prose2">
2323
<h2>
2424
Bring your own
2525
<br />

src/Containers/Sections/PowerFulTools/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const PowerFulTools = () => {
44
return (
55
<div className="darkWash">
66
<section className="point4" id="powerful-tools">
7-
<div className="prose">
7+
<div className="prose2">
88
<h2>
99
Move faster with
1010
<br />

src/Containers/Sections/PredictableResults/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const PredictableResults = () => {
5050
}, [])
5151
return (
5252
<section className="point1" id="predictable-results">
53-
<div className="prose">
53+
<div className="prose2">
5454
<h2>
5555
Ask for what you need,
5656
<br />

src/Containers/Sections/SingleRequest/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const SingleRequest = () => {
55
return (
66
<div className="grayWash">
77
<section className="point2" id="single-request">
8-
<div className="prose">
8+
<div className="prose2">
99
<h2>
1010
Get many resources
1111
<br />
@@ -64,4 +64,4 @@ const SingleRequest = () => {
6464
);
6565
};
6666

67-
export default SingleRequest;
67+
export default SingleRequest;

src/Containers/Sections/TypeSystem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const TypeSysyem = () => {
2121
}, [])
2222
return (
2323
<section className="point3" id="type-system">
24-
<div className="prose">
24+
<div className="prose2">
2525
<h2>
2626
Describe what&rsquo;s possible
2727
<br />

src/Containers/Sections/WhosUsing/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Link } from "gatsby"
44
const WhosUsing = () => {
55
return (
66
<section className="powered-by" id="whos-using">
7-
<div className="prose">
7+
<div className="prose2">
88
<h2>Who&rsquo;s using GraphQL?</h2>
99
<p>
1010
Facebook's mobile apps have been powered by GraphQL since 2012. A

src/Containers/Sections/WithoutVersion/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const WithoutVersion = () => {
1515
return (
1616
<div className="grayWash">
1717
<section className="point5" id="without-versions">
18-
<div className="prose">
18+
<div className="prose2">
1919
<h2>
2020
Evolve your API
2121
<br />

src/assets/css/_css/graphql.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,11 @@ footer {
289289
padding: 3px 10px;
290290
position: relative;
291291

292-
img {
292+
svg {
293293
opacity: 0.6;
294294
position: absolute;
295295
height: 0.85em;
296+
width: 0.85em;
296297
right: ~"calc(100% - 4px)";
297298
top: 50%;
298299
transform: translateY(-50%);

src/assets/css/_css/index.less

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ div.index {
338338
min-height: 75vh;
339339
@media screen and (max-width: 1019px) {
340340
min-height: none;
341-
.prose {
341+
.prose2 {
342342
text-align: center;
343343
}
344344
}
@@ -350,7 +350,7 @@ div.index {
350350
justify-content: space-between;
351351
}
352352

353-
.prose {
353+
.prose2 {
354354
max-width: 415px;
355355
}
356356

@@ -399,7 +399,7 @@ div.index {
399399
justify-content: space-between;
400400
}
401401

402-
.prose {
402+
.prose2 {
403403
max-width: 415px;
404404
}
405405

@@ -490,7 +490,7 @@ div.index {
490490
justify-content: space-between;
491491
}
492492

493-
.prose {
493+
.prose2 {
494494
max-width: 415px;
495495
}
496496

@@ -535,7 +535,7 @@ div.index {
535535
font-family: Palatino, Georgia, serif;
536536
}
537537

538-
.prose {
538+
.prose2 {
539539
display: flex;
540540
flex-direction: column;
541541
flex: 1;
@@ -574,7 +574,7 @@ div.index {
574574
justify-content: space-between;
575575
}
576576

577-
.prose {
577+
.prose2 {
578578
max-width: 415px;
579579
}
580580

@@ -741,7 +741,7 @@ div.index {
741741
justify-content: space-between;
742742
}
743743

744-
.prose {
744+
.prose2 {
745745
max-width: 415px;
746746
}
747747

@@ -807,7 +807,7 @@ div.index {
807807
padding-bottom: 6em;
808808
text-align: center;
809809

810-
.prose {
810+
.prose2 {
811811
max-width: 545px;
812812
text-align: center;
813813
margin: 0 auto;

src/assets/css/_css/users.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ section.whos-using-page, section.foundation-members-page {
3333
}
3434

3535
section.whos-using-page {
36-
.prose {
36+
.prose2 {
3737
max-width: 560px;
3838
text-align: center;
3939
margin: 0 auto;

src/assets/css/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@tailwind base;
1+
/*@tailwind base;*/
22
@tailwind components;
33
@tailwind utilities;

src/components/Footer/index.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import React from "react"
22
import Link from "../Link"
3+
import { ReactComponent as GitHubIcon } from "../../../static/img/logos/github.svg"
4+
import { ReactComponent as TwitterIcon } from "../../../static/img/logos/twitter.svg"
5+
import { ReactComponent as DiscordIcon } from "../../../static/img/logos/discord.svg"
6+
import { ReactComponent as StackOverflowIcon } from "../../../static/img/logos/stackoverflow.svg"
7+
import { ReactComponent as EditIcon } from "../../../static/img/edit.svg"
38

49
interface LinkItem {
510
text: string
@@ -31,7 +36,7 @@ const getLinks = (sourcePath?: string): FooterLinks[] => [
3136
{
3237
text: "GitHub",
3338
href: "https://github.com/graphql",
34-
icon: "/img/logos/github.svg",
39+
icon: GitHubIcon,
3540
},
3641
{ text: "GraphQL Specification", href: "https://spec.graphql.org" },
3742
{ text: "Libraries & Tools", href: "/code/" },
@@ -45,17 +50,17 @@ const getLinks = (sourcePath?: string): FooterLinks[] => [
4550
{
4651
text: "@graphql",
4752
href: "https://twitter.com/graphql",
48-
icon: "/img/logos/twitter.svg",
53+
icon: TwitterIcon,
4954
},
5055
{
5156
text: "Discord",
5257
href: "https://discord.graphql.org/",
53-
icon: "/img/logos/discord.svg",
58+
icon: DiscordIcon,
5459
},
5560
{
5661
text: "Stack Overflow",
5762
href: "http://stackoverflow.com/questions/tagged/graphql",
58-
icon: "/img/logos/stackoverflow.svg",
63+
icon: StackOverflowIcon,
5964
},
6065
{ text: "Resources", href: "/community/users/" },
6166
{ text: "Events", href: "/community/upcoming-events/" },
@@ -76,7 +81,7 @@ const getLinks = (sourcePath?: string): FooterLinks[] => [
7681
href:
7782
"https://github.com/graphql/graphql.github.io/edit/source/" +
7883
sourcePath,
79-
icon: "/img/edit.svg",
84+
icon: EditIcon,
8085
},
8186
].filter(Boolean) as LinkItem[],
8287
},
@@ -97,9 +102,9 @@ const Footer = ({ sourcePath }: { sourcePath?: string }) => {
97102
<span>{section.text}</span>
98103
)}
99104
</h5>
100-
{section.subsections.map((subsection: any, i) => (
101-
<Link key={i} href={subsection.href}>
102-
{subsection.icon && <img src={subsection.icon} />}
105+
{section.subsections.map((subsection, i) => (
106+
<Link key={i} href={subsection.href} className="!flex items-center gap-2">
107+
{subsection.icon && <subsection.icon />}
103108
{subsection.text}
104109
</Link>
105110
))}
@@ -108,13 +113,11 @@ const Footer = ({ sourcePath }: { sourcePath?: string }) => {
108113
</section>
109114
<section className="copyright">
110115
Copyright © {`${new Date().getFullYear()}`} The GraphQL Foundation.
111-
All rights reserved.<br />
116+
All rights reserved.
117+
<br />
112118
For web site terms of use, trademark policy and general project
113119
policies please see&nbsp;
114-
<a
115-
href="https://lfprojects.org"
116-
target="_blank"
117-
>
120+
<a href="https://lfprojects.org" target="_blank">
118121
https://lfprojects.org
119122
</a>
120123
.

src/pages/foundation/members.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
99
pageContext={pageContext}
1010
>
1111
<section className="foundation-members-page">
12-
<div className="prose">
12+
<div className="prose2">
1313
<h1>GraphQL Foundation members</h1>
1414
<p>
1515
The <a href="/foundation/">GraphQL Foundation</a> is the primary way

src/pages/users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
77
return (
88
<Layout pageContext={pageContext}>
99
<section className="whos-using-page">
10-
<div className="prose">
10+
<div className="prose2">
1111
<h1>Who&rsquo;s using GraphQL?</h1>
1212
<p>
1313
GraphQL is used by teams of all sizes in many different environments

0 commit comments

Comments
 (0)