Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-merge cleanup #8069

Merged
merged 6 commits into from
Sep 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"react-icons": "^4.3.1",
"react-instantsearch-dom": "^6.32.0",
"react-intl": "^3.12.1",
"react-rewards": "^2.0.4",
"react-select": "^4.3.0",
"recharts": "^2.1.9",
"styled-system": "^5.1.5",
Expand Down
Binary file removed src/assets/home/default_hero.png
Binary file not shown.
Binary file added src/assets/home/hero-panda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/home/hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/home/merge-panda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
714 changes: 714 additions & 0 deletions src/assets/home/merge-panda.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 0 additions & 30 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import { LocaleProvider } from "gatsby-theme-i18n"

import { lightTheme, darkTheme } from "../theme"

import BannerNotification from "./BannerNotification"
import Link from "./Link"
import Translation from "./Translation"
import Footer from "./Footer"
import VisuallyHidden from "./VisuallyHidden"
import Nav from "./Nav"
Expand All @@ -24,7 +21,6 @@ import { SkipLink, SkipLinkAnchor } from "./SkipLink"
import { ZenModeContext } from "../contexts/ZenModeContext"

import { useKeyPress } from "../hooks/useKeyPress"
import { useConfetti } from "../hooks/useConfetti"

import { isLangRightToLeft } from "../utils/translations"
import { scrollIntoView } from "../utils/scrollIntoView"
Expand Down Expand Up @@ -68,11 +64,6 @@ const Main = styled.main`
flex-grow: 1;
`

const Centered = styled.div`
display: flex;
justify-content: center;
`

export interface IProps {
children?: React.ReactNode
data?: {
Expand Down Expand Up @@ -101,8 +92,6 @@ const Layout: React.FC<IProps> = ({

const [isZenMode, setIsZenMode] = useState<boolean>(false)
const [shouldShowSideNav, setShouldShowSideNav] = useState<boolean>(false)
const [isHomepage, setIsHomepage] = useState<boolean>(false)
const [isMergePage, setIsMergePage] = useState<boolean>(false)
const locale = pageContext.locale
const messages = require(`../intl/${locale}.json`)

Expand All @@ -126,12 +115,8 @@ const Layout: React.FC<IProps> = ({
const idTag = location.hash.split("#")
scrollIntoView(idTag[1])
}
setIsHomepage(path === `/${locale}/`)
setIsMergePage(path === `/${locale}/upgrades/merge/`)
}, [path, location])

useConfetti("confetti-easter-egg")

const handleZenModeChange = (val?: boolean): void => {
// Use 'val' param if provided. Otherwise toggle
const newVal = val !== undefined ? val : !isZenMode
Expand Down Expand Up @@ -180,22 +165,7 @@ const Layout: React.FC<IProps> = ({
<Nav path={path} />
{shouldShowSideNav && <SideNavMobile path={path} />}
</VisuallyHidden>
<BannerNotification
shouldShow={isHomepage}
justify="center"
zIndex="1"
textAlign="center"
>
<div>
<Translation id="merge-complete" />
&nbsp;
<Link to="/upgrades/merge">
<Translation id="learn-more" />
</Link>
</div>
</BannerNotification>
<SkipLinkAnchor id="main-content" />
{isMergePage && <Centered id="confetti-easter-egg" />}
<MainContainer>
{shouldShowSideNav && (
<VisuallyHidden isHidden={isZenMode}>
Expand Down
15 changes: 0 additions & 15 deletions src/hooks/useConfetti.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/intl/el/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@
"matcha-logo": "Λογότυπο Matcha",
"medalla-data-challenge": "Πρόκληση δεδομένων Medalla",
"merge": "Συγχώνευση",
"merge-complete": "Η Συγχώνευση ολοκληρώθηκε! Καλωσήρθατε σε ένα πιο πράσινο Ethereum.",
"more": "Περισσότερα",
"more-info": "Περισσότερες πληροφορίες",
"nav-beginners": "Αρχάριοι",
Expand Down
1 change: 0 additions & 1 deletion src/intl/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@
"matcha-logo": "Matcha logo",
"medalla-data-challenge": "Medalla data challenge",
"merge": "Merge",
"merge-complete": "The Merge is complete! Welcome to a new greener Ethereum.",
"mission-and-vision": "Mission and vision",
"more": "More",
"more-info": "More info",
Expand Down
3 changes: 3 additions & 0 deletions src/intl/en/page-assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"page-assets-future": "Future",
"page-assets-h1": "ethereum.org assets",
"page-assets-hero": "ethereum.org hero",
"page-assets-hero-panda": "ethereum.org hero with merge panda",
"page-assets-merge-panda": "Merge panda",
"page-assets-merge-panda-svg": "Merge panda SVG",
"page-assets-hero-particles": "ETH particles image",
"page-assets-historical-artwork": "Historical artwork",
"page-assets-illustrations": "Illustrations",
Expand Down
1 change: 0 additions & 1 deletion src/intl/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logo Matcha",
"medalla-data-challenge": "Défi de données Medalla",
"merge": "Fusionner",
"merge-complete": "La fusion s'est produite ! Bienvenue dans un Ethereum plus vert.",
"more": "Plus",
"more-info": "Plus d'infos",
"nav-beginners": "Débutants",
Expand Down
1 change: 0 additions & 1 deletion src/intl/hi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Matcha लोगो",
"medalla-data-challenge": "Medalla डेटा चुनौती",
"merge": "मर्ज करें",
"merge-complete": "मर्ज पूरा हो गया है! एक नए हरित Ethereum में आपका स्वागत है।",
"more": "अधिक",
"more-info": "अधिक जानकारी",
"nav-beginners": "नई शुरुआत",
Expand Down
1 change: 0 additions & 1 deletion src/intl/id/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logo Matcha",
"medalla-data-challenge": "Tantangan data Medalla",
"merge": "Gabungkan",
"merge-complete": "Penggabungan telah selesai! Selamat datang di Ethereum baru yang lebih hijau.",
"more": "Lebih Banyak",
"more-info": "Info lebih lanjut",
"nav-beginners": "Pemula",
Expand Down
1 change: 0 additions & 1 deletion src/intl/ja/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Matcha ロゴ",
"medalla-data-challenge": "Medallaデータチャレンジ",
"merge": "マージ",
"merge-complete": "マージ完了! より環境に優しくなったイーサリアムへようこそ。",
"more": "もっと見る",
"more-info": "詳細",
"nav-beginners": "初心者",
Expand Down
1 change: 0 additions & 1 deletion src/intl/nl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Matcha-logo",
"medalla-data-challenge": "Medalla-gegevensuitdaging",
"merge": "Samenvoegen",
"merge-complete": "De Merge is compleet! Welkom bij een nieuw groener Ethereum.",
"more": "Meer",
"more-info": "Meer info",
"nav-beginners": "Beginners",
Expand Down
1 change: 0 additions & 1 deletion src/intl/pl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logo Matcha",
"medalla-data-challenge": "Wyzwanie z danymi Medalla",
"merge": "Połącz",
"merge-complete": "Merge jest gotowy! Witajcie w nowym, bardziej zielonym Ethereum.",
"more": "Więcej",
"more-info": "Więcej informacji",
"nav-beginners": "Początkujący",
Expand Down
1 change: 0 additions & 1 deletion src/intl/pt-br/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logotipo da Matcha",
"medalla-data-challenge": "Desafio de dados Medalla",
"merge": "Integração",
"merge-complete": "A Fusão está completa! Bem-vindo a uma nova Ethereum mais verde.",
"more": "Mais",
"more-info": "Mais informações",
"nav-beginners": "Principiantes",
Expand Down
1 change: 0 additions & 1 deletion src/intl/pt/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logótipo da Matcha",
"medalla-data-challenge": "Desafio de dados Medalla",
"merge": "Fundir",
"merge-complete": "A fusão está completa! Bem-vindo a um novo Ethereum mais verde.",
"more": "Mais",
"more-info": "Mais informação",
"nav-beginners": "Principiantes",
Expand Down
1 change: 0 additions & 1 deletion src/intl/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Логотип Matcha",
"medalla-data-challenge": "Конкурс данных Medalla",
"merge": "Объединение",
"merge-complete": "Слияние завершено! Добро пожаловать в новый экологичный Ethereum.",
"more": "Больше",
"more-info": "Подробнее",
"nav-beginners": "Начинающим",
Expand Down
1 change: 0 additions & 1 deletion src/intl/sw/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
"matcha-logo": "Nembo ya Matcha",
"medalla-data-challenge": "Changamoto ya data ya Medella",
"merge": "Unganisha",
"merge-complete": "Muungano umekamilika! Karibu kwenye Ethereum inayojali mazingira.",
"more": "Zaidi",
"more-info": "Habari zaidi",
"nav-beginners": "Wanaoanza",
Expand Down
1 change: 0 additions & 1 deletion src/intl/vi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Logo Matcha",
"medalla-data-challenge": "Thử thách dữ liệu Medalla",
"merge": "Gộp",
"merge-complete": "Hợp nhất đã hoàn tất! Chào mừng bạn đến với kỷ nguyên xanh mới của Ethereum.",
"more": "Xem thêm",
"more-info": "Thông tin chi tiết",
"nav-beginners": "Người mới bắt đầu",
Expand Down
1 change: 0 additions & 1 deletion src/intl/zh/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"matcha-logo": "Matcha徽标",
"medalla-data-challenge": "Medalla 数据挑战赛",
"merge": "合并",
"merge-complete": "大合并业已完成!欢迎进入一个崭新的、更加绿色环保的以太坊",
"more": "更多",
"more-info": "更多信息",
"nav-beginners": "初学者",
Expand Down
24 changes: 24 additions & 0 deletions src/pages/assets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { graphql, PageProps } from "gatsby"

// Assets
import EthGlyphColoredSvg from "../assets/assets/eth-glyph-colored.svg"
import MergePandaSvg from "../assets/home/merge-panda.svg"

// Components
import AssetDownload from "../components/AssetDownload"
Expand Down Expand Up @@ -131,6 +132,23 @@ const AssetsPage = ({ data }: PageProps<Queries.AssetsPageQuery, Context>) => {
artistUrl="https://liamcobb.com/"
/>
</Row>
<Row>
<AssetDownload
title={translateMessageId("page-assets-hero-panda", intl)}
alt={translateMessageId("page-assets-hero-panda", intl)}
image={data.heroPanda}
/>
<AssetDownload
title={translateMessageId("page-assets-merge-panda", intl)}
alt={translateMessageId("page-assets-merge-panda", intl)}
image={data.mergePanda}
/>
<AssetDownload
title={translateMessageId("page-assets-merge-panda-svg", intl)}
alt={translateMessageId("page-assets-merge-panda-svg", intl)}
svg={MergePandaSvg}
/>
</Row>

<Row>
<AssetDownload
Expand Down Expand Up @@ -564,6 +582,12 @@ export const query = graphql`
hero: file(relativePath: { eq: "home/hero.png" }) {
...assetItem
}
heroPanda: file(relativePath: { eq: "home/hero-panda.png" }) {
...assetItem
}
mergePanda: file(relativePath: { eq: "home/merge-panda.png" }) {
...assetItem
}
doge: file(relativePath: { eq: "doge-computer.png" }) {
...assetItem
}
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14806,11 +14806,6 @@ react-resize-detector@^7.1.2:
dependencies:
lodash "^4.17.21"

react-rewards@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/react-rewards/-/react-rewards-2.0.4.tgz#617f6c1bb591f74bb0e0455cc6ff355ee6d36665"
integrity sha512-Lw7gIhD8yPDzC6boaVmcXwuTHRLSLAdqB3kZc+29YWvdHWsuc3fdAZlxI8Cm8fvD8fhP+3JkZBtzX224czw15w==

react-select@^4.3.0:
version "4.3.1"
resolved "https://registry.yarnpkg.com/react-select/-/react-select-4.3.1.tgz#389fc07c9bc7cf7d3c377b7a05ea18cd7399cb81"
Expand Down