Skip to content

Commit a1b03bb

Browse files
committed
Remove typography, apply normalize styles, use system fonts
1 parent bfa12b3 commit a1b03bb

File tree

10 files changed

+39
-137
lines changed

10 files changed

+39
-137
lines changed

gatsby-config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ module.exports = {
1212
path: `${__dirname}/src/images`,
1313
},
1414
},
15-
{
16-
resolve: 'gatsby-plugin-typography',
17-
options: {
18-
pathToConfigModule: 'src/utils/typography',
19-
},
20-
},
2115
'gatsby-transformer-sharp',
2216
'gatsby-plugin-sharp',
2317
{

package-lock.json

Lines changed: 0 additions & 88 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"gatsby-plugin-react-helmet": "^3.0.1",
1414
"gatsby-plugin-sass": "^2.0.3",
1515
"gatsby-plugin-sharp": "^2.0.11",
16-
"gatsby-plugin-typography": "^2.2.1",
1716
"gatsby-source-filesystem": "^2.0.7",
1817
"gatsby-transformer-sharp": "^2.1.7",
1918
"node-sass": "^4.9.4",
@@ -22,9 +21,6 @@
2221
"react-dom": "^16.6.0",
2322
"react-headroom": "^2.2.4",
2423
"react-helmet": "^5.2.0",
25-
"react-typography": "^0.16.13",
26-
"typography": "^0.16.17",
27-
"typography-plugin-code": "^0.16.11",
2824
"whatwg-fetch": "^3.0.0"
2925
},
3026
"keywords": [

src/components/Meetup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import format from 'date-fns/format'
44
import 'whatwg-fetch'
55
import { graphql, StaticQuery } from 'gatsby'
66

7-
87
const MeetupDescription = ({ name, time, venue }) => (
98
<div className="next-event">
109
<div className="next-event-tagline">
@@ -103,7 +102,8 @@ const WrappedMeetup = () => (
103102
}
104103
}
105104
`}
106-
render={data => <Meetup apiRoot={data.site.siteMetadata.apiRoot}/>} />
105+
render={data => <Meetup apiRoot={data.site.siteMetadata.apiRoot} />}
106+
/>
107107
)
108108

109109
export default WrappedMeetup

src/components/layout.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import { TypographyStyle, GoogleFont } from 'react-typography'
43
import Helmet from 'react-helmet'
54
import { graphql, StaticQuery } from 'gatsby'
65
import Header from './header'
76
import Footer from './footer'
87
import './main.scss'
9-
import typography from '../utils/typography'
108

119
const Layout = ({ children }) => (
1210
<StaticQuery
@@ -31,8 +29,6 @@ const Layout = ({ children }) => (
3129
name="viewport"
3230
content="width=device-width, initial-scale=1.0"
3331
/>
34-
<TypographyStyle typography={typography} />
35-
<GoogleFont typography={typography} />
3632
</Helmet>
3733
<Header />
3834
<min role="main" className="content-body">

src/components/main.scss

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,40 @@
22

33
html,
44
body {
5+
font: 112.5%/1.65em -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
6+
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
7+
word-wrap: break-word;
8+
font-weight: normal;
9+
color: hsla(0, 0%, 0%, 0.8);
510
margin: 0;
611
padding: 0;
712
background: #f9f9f9;
813
}
914

15+
* {
16+
box-sizing: inherit;
17+
}
18+
19+
main {
20+
display: block;
21+
}
22+
23+
p {
24+
padding: 0;
25+
margin: 0 0 1.65rem;
26+
}
27+
1028
img {
1129
display: block;
1230
margin: 0;
31+
padding: 0;
32+
max-width: 100%;
1333
}
1434

1535
a {
1636
color: #000;
1737
font-weight: bold;
38+
-webkit-text-decoration-skip: objects;
1839
}
1940

2041
.headroom {
@@ -145,7 +166,7 @@ a {
145166
}
146167

147168
.event-name {
148-
font-family: 'Didot', serif;
169+
font-weight: 500;
149170
font-size: 1.4rem;
150171
padding: 15px;
151172
background: #fff;
@@ -318,7 +339,7 @@ a {
318339
.sponsored-by-title {
319340
font-style: oblique;
320341
margin-bottom: 15px;
321-
font-family: 'Didot', serif;
342+
font-weight: 500;
322343
font-size: 1.4rem;
323344
}
324345

@@ -403,11 +424,11 @@ a {
403424
}
404425

405426
@include break-at(md) {
406-
.secondary-content-header {
407-
top: -10px;
408-
right: -35px;
409-
}
410-
}
427+
.secondary-content-header {
428+
top: -10px;
429+
right: -35px;
430+
}
431+
}
411432

412433
@include break-at(sm) {
413434
.secondary-content-blurb {
@@ -447,7 +468,7 @@ address {
447468
margin-top: 15px;
448469
font-weight: bold;
449470
font-size: 0.9rem;
450-
font-family: 'Didot', serif;
471+
margin-bottom: 1.65rem;
451472
}
452473

453474
.footer {
@@ -519,7 +540,7 @@ address {
519540
h1,
520541
h2,
521542
h3 {
522-
font-family: 'Didot', serif;
543+
font-weight: 500;
523544
}
524545

525546
p {
@@ -543,7 +564,6 @@ address {
543564

544565
.tier-title {
545566
font-size: 1.45rem;
546-
font-family: 'Didot', serif;
547567
font-style: oblique;
548568
opacity: 0.8;
549569
text-align: center;

src/pages/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ const IndexPage = () => (
8989
We are always open to new speakers, please see our questionnaire for
9090
more details.
9191
</div>
92-
<Link className="outline-button small-button" to={withPrefix('/speak/')}>
92+
<Link
93+
className="outline-button small-button"
94+
to={withPrefix('/speak/')}
95+
>
9396
Learn More
9497
</Link>
9598
</div>

src/pages/our-sponsors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import logoDaugherty from '../images/sponsors/logo-daugherty.png'
1212
const OurSponsors = () => (
1313
<Layout>
1414
<div className="interior-page sponsors-page tilt-left">
15-
<h1 className="secondary-content-header">Current sponsors</h1>
15+
<h1 className="secondary-content-header">Current Sponsors</h1>
1616

1717
<div className="sponsor-tier platinum">
1818
<span className="tier-title">Host</span>

src/pages/sponsorship-opportunities.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const SponsorshipOpportunities = () => (
1212
<li>Website: Link & Logo on front page (and sponsor page)</li>
1313
<li>
1414
Meetups: Stand alone slide with thanks and description of services by
15-
host at the start of the meetup & website link on Meetup.com
15+
host at the start of the meetup & website link on{' '}
16+
<a href="https://www.meetup.com">Meetup.com</a>
1617
</li>
1718
<li>
1819
YouTube: 15 Second Video Intro with stand alone slide (including link

src/utils/typography.js

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

0 commit comments

Comments
 (0)