Skip to content

Commit

Permalink
Remove unused translation modules + update links
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetpea22 committed May 3, 2024
1 parent 7bdec12 commit 1c5bb6e
Show file tree
Hide file tree
Showing 6 changed files with 3,635 additions and 4,377 deletions.
8 changes: 4 additions & 4 deletions src/Components/Modules/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { createStyles, ITheme, makeStyles } from "@chainsafe/common-theme"
import { Grid, Typography } from "@chainsafe/common-components"
import {Trans} from "@lingui/macro";

import { blogUrl, discordUrl, docsUrl } from "../../urls";

const useStyles = makeStyles(({ palette, constants, breakpoints }: ITheme) => {
Expand Down Expand Up @@ -96,7 +96,7 @@ const Footer: React.FC = () => {
<Grid item className={classes.linkWrapper}>
<Grid item className={classes.header}>
<Typography variant="h5" >
<strong><Trans>Resources</Trans></strong>
<strong>Resources</strong>
</Typography>
</Grid>
<Grid item className={classes.item}>
Expand Down Expand Up @@ -124,7 +124,7 @@ const Footer: React.FC = () => {
target="_blank"
>
<Typography variant="h5" className={classes.bold}>
<Trans>GitHub</Trans>
GitHub
</Typography>
</a>
</Grid>
Expand All @@ -135,7 +135,7 @@ const Footer: React.FC = () => {
target="_blank"
>
<Typography variant="h5" className={classes.bold}>
<Trans>Discord</Trans>
Discord
</Typography>
</a>
</Grid>
Expand Down
13 changes: 6 additions & 7 deletions src/Components/Modules/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
createStyles, ITheme, makeStyles, useMediaQuery
} from "@chainsafe/common-theme";
import { Grid, Link, Typography, useScrollToTop } from "@chainsafe/common-components";
import { Trans } from "@lingui/macro"
import { MobileNav } from "./MobileNav";
import web3js from "../../assets/images/web3js.png"
import { discordUrl, docsUrl } from "../../urls";
Expand Down Expand Up @@ -140,15 +139,15 @@ const NavBar: React.FC = () => {
rel='noopener noreferrer'
href={docsUrl}
className={classes.navlink}>
<Trans>Docs</Trans>
Docs
</a>
</Typography>
<Typography variant="h5">
<a
href="/plugins"
className={classes.navlink}
>
<Trans>Plugins</Trans>
Plugins
</a>
</Typography>
<Typography variant='h5'>
Expand All @@ -157,16 +156,16 @@ const NavBar: React.FC = () => {
rel='noopener noreferrer'
href={discordUrl}
className={classes.navlink}>
<Trans>Community</Trans>
Discord
</a>
</Typography>
<Typography variant='h5'>
<a
target='_blank'
rel='noopener noreferrer'
href='https://medium.com/chainsafe-systems/tagged/ethereum'
href='https://blog.chainsafe.io/tagged/web3js'
className={classes.navlink}>
<Trans>Blog</Trans>
Blog
</a>
</Typography>
<Typography variant='h5'>
Expand All @@ -175,7 +174,7 @@ const NavBar: React.FC = () => {
rel='noopener noreferrer'
href='https://github.com/web3/web3.js'
className={classes.navlink}>
<Trans>GitHub</Trans>
Github
</a>
</Typography>
</Grid>
Expand Down
10 changes: 10 additions & 0 deletions src/Components/Subpages/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ const Hero: React.FC = () => {
Documentation
</a>
</div>
<div className={classes.link}>
<div className={classes.stackedIndicator}></div>
<a
className={classes.stackedLink}
href='/plugins'
rel='noopener noreferrer'
target='_blank'>
Plugins
</a>
</div>
<div className={classes.link}>
<div
className={clsx(
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Subpages/Maintainers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import { createStyles, ITheme, makeStyles } from "@chainsafe/common-theme";
import { Typography } from "@chainsafe/common-components";
import clsx from "clsx";
import { Trans } from "@lingui/macro";
import chainsafe from "../../assets/images/chainsafe.png"
import ethereum from "../../assets/images/ethereumjs.png"
import samuel from "../../assets/images/samuel.jpeg"
Expand Down Expand Up @@ -138,9 +137,8 @@ const Maintainers = (): JSX.Element => {
<div className={classes.gridContainer}>
<div className={classes.titleContainer}>
<Typography variant="body1" className={clsx(classes.bodyText)}>
<Trans>

Since 2014, Web3.js has existed as an open-source collection of libraries that allow you to interact with a local or remote Ethereum node. Throughout its rich history, Web3.js would not have been possible without the vision, expertise and contributions made by committed individuals and organizations throughout the years.
</Trans>
</Typography>
</div>
<span className={classes.timelineItem}>
Expand Down
9 changes: 5 additions & 4 deletions src/Components/Subpages/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const useStyles = makeStyles(
},
highlightText: {
color: palette.primary.main,

},
titleText: {
textAlign: 'left',
Expand Down Expand Up @@ -109,14 +110,14 @@ const Stats: React.FC = () => {
<div className={classes.spec}>
<p>A proud cornerstone of the ecosystem.</p>
<div className={classes.statsWrapper}>
<div>
<p>
<span className={classes.highlightText}>500,000+ </span>
weekly downloads.
</div>
<div>
</p>
<p>
<span className={classes.highlightText}>3000+ </span>
dependent projects.
</div>
</p>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 1c5bb6e

Please sign in to comment.