Skip to content

Commit 6996f88

Browse files
committed
Revert "Add Morpher [Fixes #1151]"
This reverts commit 36972cd.
1 parent 36972cd commit 6996f88

File tree

2 files changed

+3
-173
lines changed

2 files changed

+3
-173
lines changed

src/components/Morpher.js

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

src/pages/index.js

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import Img from "gatsby-image"
55
import styled from "styled-components"
66

77
import { getLangContentVersion, getDefaultMessage } from "../utils/translations"
8-
import Morpher from "../components/Morpher"
98
import PageMetadata from "../components/PageMetadata"
109
import Translation from "../components/Translation"
1110
import Link from "../components/Link"
@@ -51,19 +50,11 @@ const OldHeader = styled.header`
5150
margin: 0 auto;
5251
`
5352

54-
const Title = styled.div`
55-
display: flex;
56-
justify-content: space-between;
57-
width: 100%;
58-
max-width: 100%;
59-
`
60-
6153
const H1 = styled.h1`
6254
line-height: 1.4;
6355
font-weight: 400;
6456
font-size: 1.5rem;
6557
margin: 1.5rem 0;
66-
6758
max-width: 80%;
6859
@media (max-width: ${(props) => props.theme.breakpoints.m}) {
6960
max-width: 100%;
@@ -148,18 +139,6 @@ const OldTitle = styled.h3`
148139
}
149140
`
150141

151-
const H3 = styled.h3`
152-
margin-top: 1.5rem;
153-
margin-bottom: 1.5rem;
154-
@media (max-width: ${(props) => props.theme.breakpoints.m}) {
155-
display: none;
156-
}
157-
`
158-
159-
const OldH3 = styled.h3`
160-
margin-top: 2.5rem;
161-
`
162-
163142
const HomePage = ({ data }) => {
164143
const intl = useIntl()
165144
const contentVersion = getLangContentVersion(intl.locale)
@@ -340,14 +319,9 @@ const HomePage = ({ data }) => {
340319
{contentVersion > 1.1 && (
341320
<>
342321
<Header>
343-
<Title>
344-
<H1>
345-
<Translation id="page-home-title" />
346-
</H1>
347-
<H3>
348-
<Morpher />
349-
</H3>
350-
</Title>
322+
<H1>
323+
<Translation id="page-home-title" />
324+
</H1>
351325
<Description>
352326
<Translation id="page-home-subtitle" />
353327
</Description>
@@ -357,9 +331,6 @@ const HomePage = ({ data }) => {
357331
)}
358332
{contentVersion <= 1.1 && (
359333
<OldHeader>
360-
<OldH3>
361-
<Morpher />
362-
</OldH3>
363334
<H1>
364335
<Translation id="page-home-title" />
365336
</H1>

0 commit comments

Comments
 (0)