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

Deploy v7.18.0 #10908

Merged
merged 82 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
d9ece15
feat(Table): add component, theme, and story
TylerAPfledderer Apr 8, 2023
8d2f598
style(theme/Table): change row hover to `backgroundHighlight`
TylerAPfledderer May 22, 2023
c1c36a2
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jun 15, 2023
c62911c
refactor(theme/Table): use minimal styling as the default.
TylerAPfledderer Jun 15, 2023
7981280
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jun 16, 2023
6a856cc
revert(theme/table): revert to `simple` variant as default
TylerAPfledderer Jun 16, 2023
7cb260e
refactor(theme/table): set text-alignment of headers to `initial`
TylerAPfledderer Jun 16, 2023
2144910
refactor(Table): apply the Chakra table components
TylerAPfledderer Jun 20, 2023
332db5d
feat(theme/Table): add striped variant with header bg color
TylerAPfledderer Jun 20, 2023
4bcff66
refactor(Table): remove padded wrapper
TylerAPfledderer Jun 20, 2023
61c1a55
feat(Table): create mdx component object for the table components
TylerAPfledderer Jun 20, 2023
288dfd3
feat(Table): add Chakra `THead` component
TylerAPfledderer Jun 20, 2023
3a96b9d
feat(Table): add new component to templates for markdown
TylerAPfledderer Jun 20, 2023
27f4fbc
Merge branch 'dev' into feat/new-table-theme
TylerAPfledderer Jun 20, 2023
78a101a
Merge branch 'dev' into feat/new-table-theme
TylerAPfledderer Jun 29, 2023
5f573f1
fix(theme/component): fix import/export of the Table theme
TylerAPfledderer Jun 29, 2023
72ea757
refactor(Table.stories): add larger gap between component examples
TylerAPfledderer Jun 29, 2023
3b6606f
refactor(theme/Table): add bottom vertical alignment for headings
TylerAPfledderer Jun 30, 2023
be52b27
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jun 30, 2023
e3dc65c
feat(Breadcrumbs): update component for new DS
TylerAPfledderer Jul 2, 2023
2ec86ee
Merge remote-tracking branch 'origin/dev' into feat/breadcrumbs-new-ds
TylerAPfledderer Jul 9, 2023
edcc404
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jul 16, 2023
268ebb2
Merge remote-tracking branch 'origin/dev' into feat/breadcrumbs-new-ds
TylerAPfledderer Jul 16, 2023
4641b96
Merge remote-tracking branch 'origin/dev' into feat/breadcrumbs-new-ds
TylerAPfledderer Jul 19, 2023
feef8b8
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jul 19, 2023
cfc5ab7
Merge remote-tracking branch 'origin/dev' into feat/new-table-theme
TylerAPfledderer Jul 19, 2023
e7e68fb
Merge remote-tracking branch 'origin/dev' into feat/breadcrumbs-new-ds
TylerAPfledderer Jul 19, 2023
4162eed
fix(Table): remove fixed layout
TylerAPfledderer Jul 21, 2023
32e16c8
chore(Table): add TODO comment regarding fixed layout
TylerAPfledderer Jul 21, 2023
5e8c7fb
Add ReFi intro page
0xAurelius Nov 1, 2022
d910571
Switch to transparent image
0xAurelius Feb 3, 2023
34296a3
Update content to be more accessible
0xAurelius Feb 17, 2023
abc2b41
Fix broken links
0xAurelius Feb 18, 2023
43e89b3
Address minor style changes
0xAurelius Mar 16, 2023
778eca2
Add back missing files
0xAurelius Mar 16, 2023
f612170
Incorporate feedback to shorten and generalize content
0xAurelius Jun 23, 2023
9547bf0
Integrate more feedback on copy and image
0xAurelius Jun 27, 2023
7da9778
Clarify more language
0xAurelius Jun 27, 2023
8f03df9
fix:formatting is broken for "Available libraries" in the last
Amit0617 Jul 27, 2023
daa9cd9
fix icon of the edit button
pettinarip Jul 28, 2023
1f83c39
Vietnamese (vi): Translate
xcaro Aug 1, 2023
bb42801
Merge branch 'dev' into feat/new-table-theme
wackerow Aug 1, 2023
d7f6903
Merge remote-tracking branch 'origin/dev' into feat/breadcrumbs-new-ds
TylerAPfledderer Aug 2, 2023
4aaec0d
revert forced hideArrow in ButtonLink
pettinarip Aug 2, 2023
203a809
fix quiz modal bg color
pettinarip Aug 3, 2023
f25d7ff
add correct disabled styles to the button solid variant as defined in…
pettinarip Aug 3, 2023
4b6d3e1
initial commit for l2 page update
jmcook1186 Aug 3, 2023
634c8b3
align button container with text
amit-ksh Aug 3, 2023
d34da17
Merge pull request #10860 from ethereum/fix-quiz-modal-bg-color
pettinarip Aug 3, 2023
c64304f
Merge pull request #10859 from ethereum/button-disabled-styles
pettinarip Aug 3, 2023
c9aa8a9
override margin on wrap container
pettinarip Aug 3, 2023
ba10515
Merge pull request #10861 from amit-ksh/page-hero-buttons-margin
nhsz Aug 3, 2023
8d52023
Update index.md
TABASCOatw Aug 4, 2023
a596df4
Update eips index.md
perriefidelis Aug 4, 2023
7e557c4
added ethchicago to community events
trbutler4 Aug 6, 2023
7937f8f
revert new quizzes
pettinarip Aug 7, 2023
26a6d39
fix dead links in mining page
jmcook1186 Aug 7, 2023
7bfb628
Merge pull request #10873 from ethereum/revert-quizzes
wackerow Aug 7, 2023
a641422
Merge pull request #9932 from TylerAPfledderer/feat/new-table-theme
pettinarip Aug 7, 2023
1ec7e45
translathon > translatathon
wackerow Aug 7, 2023
ae4da76
Merge branch 'ethereum:dev' into dev
trbutler4 Aug 8, 2023
7fccf5e
Merge pull request #10598 from TylerAPfledderer/feat/breadcrumbs-new-ds
corwintines Aug 9, 2023
e7d9b5e
Merge pull request #10888 from ethereum/translatathon-spelling
corwintines Aug 9, 2023
52e6ad2
docs: update README.md [skip ci]
allcontributors[bot] Aug 9, 2023
a0776b9
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 9, 2023
5b9e9e6
Merge pull request #10893 from ethereum/all-contributors/add-perriefi…
corwintines Aug 9, 2023
fbfdb1a
Merge pull request #10870 from perriefidelis/perriefidelis-patch-1
corwintines Aug 9, 2023
dd85a36
Merge pull request #10892 from trbutler4/dev
corwintines Aug 9, 2023
e2a4e82
Merge pull request #10882 from ethereum/layer-2
corwintines Aug 9, 2023
b4c7ee1
Merge pull request #10881 from ethereum/fix-links
corwintines Aug 9, 2023
06232ba
Merge pull request #10864 from TABASCOatw/patch-5
corwintines Aug 9, 2023
b1dc1e3
Merge pull request #10798 from Amit0617/patch-2
corwintines Aug 9, 2023
082cefd
Merge pull request #10837 from xcaro/dev
corwintines Aug 9, 2023
2a7e6d9
Merge pull request #10808 from ethereum/fix-edit-button-icon
corwintines Aug 9, 2023
5fcb875
fix translation in navbar
corwintines Aug 9, 2023
94af4b7
remove stat without a claim, and add a comma
corwintines Aug 9, 2023
ceb9361
Merge pull request #8439 from 0xAurelius/dev
corwintines Aug 9, 2023
0dcb709
v7.19.0
corwintines Aug 9, 2023
69dd9f0
Merge pull request #10901 from ethereum/v7-19-0
corwintines Aug 9, 2023
3a9bdee
Merge branch 'staging' into dev
corwintines Aug 9, 2023
3d46ef1
Merge pull request #10902 from ethereum/dev
corwintines Aug 9, 2023
9491fd5
Merge branch 'master' into staging
wackerow Aug 10, 2023
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
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -10384,6 +10384,15 @@
"contributions": [
"content"
]
},
{
"login": "perriefidelis",
"name": "Peace Ojemeh",
"avatar_url": "https://avatars.githubusercontent.com/u/30669761?v=4",
"profile": "https://github.com/perriefidelis",
"contributions": [
"content"
]
}
],
"contributorsPerLine": 7,
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="https://github.com/MwitahJob"><img src="https://avatars.githubusercontent.com/u/136892656?v=4?s=100" width="100px;" alt="Mwitah "/><br /><sub><b>Mwitah </b></sub></a><br /><a href="#content-MwitahJob" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/TucksonDev"><img src="https://avatars.githubusercontent.com/u/105675159?v=4?s=100" width="100px;" alt="Tuckson"/><br /><sub><b>Tuckson</b></sub></a><br /><a href="#content-TucksonDev" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/_Akamig"><img src="https://avatars.githubusercontent.com/u/6278999?v=4?s=100" width="100px;" alt="Akamig"/><br /><sub><b>Akamig</b></sub></a><br /><a href="#content-Akamig" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/perriefidelis"><img src="https://avatars.githubusercontent.com/u/30669761?v=4?s=100" width="100px;" alt="Peace Ojemeh"/><br /><sub><b>Peace Ojemeh</b></sub></a><br /><a href="#content-perriefidelis" title="Content">🖋</a></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-org-website",
"version": "7.18.0",
"version": "7.19.0",
"description": "Website of ethereum.org",
"main": "index.js",
"repository": "git@github.com:ethereum/ethereum-org-website.git",
Expand Down
4 changes: 4 additions & 0 deletions src/@chakra-ui/gatsby-plugin/components/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const variantSolid = defineStyle({
color: "background.base",
bg: "primary.base",
borderColor: "transparent",
_disabled: {
bg: "disabled",
color: "background.base",
},
_hover: {
color: "background.base",
bg: "primary.hover",
Expand Down
93 changes: 93 additions & 0 deletions src/@chakra-ui/gatsby-plugin/components/Table.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import { tableAnatomy } from "@chakra-ui/anatomy"
import {
createMultiStyleConfigHelpers,
cssVar,
defineStyle,
} from "@chakra-ui/react"
import { defineMergeStyles, tableDefaultTheme } from "./components.utils"

const { defineMultiStyleConfig, definePartsStyle } =
createMultiStyleConfigHelpers(tableAnatomy.keys)

const $bgColor = cssVar("bg-color")

const cellPadding = defineStyle({
p: 4,
})

const baseStyle = defineMergeStyles(
tableDefaultTheme.baseStyle,
definePartsStyle({
table: {
[$bgColor.variable]: "colors.background.highlight",
minW: "556px",
},
th: {
borderBottom: "1px",
borderColor: "body.base",
color: "body.base",
textTransform: "capitalize",
verticalAlign: "bottom",
...cellPadding,
},
tr: {
"th, td": {
_notLast: {
borderRight: "2px",
borderRightColor: "background.base",
},
},
},
td: {
...cellPadding,
},
tbody: {
tr: {
verticalAlign: "top",
_hover: {
/**
* Override specificity when hovering
* over even rows in 'striped' variant.
*/
bg: $bgColor.reference,
},
},
},
})
)

const variantMinimalStriped = definePartsStyle({
tbody: {
tr: {
_even: {
bg: $bgColor.reference,
},
},
},
})

const variantSimpleStriped = definePartsStyle({
...variantMinimalStriped,
thead: {
bg: $bgColor.reference,
},
})

const variantSimple = definePartsStyle({
thead: {
bg: $bgColor.reference,
},
})

export const Table = defineMultiStyleConfig({
baseStyle,
variants: {
minimal: {},
"minimal-striped": variantMinimalStriped,
simple: variantSimple,
"simple-striped": variantSimpleStriped,
},
defaultProps: {
variant: "simple",
},
})
4 changes: 2 additions & 2 deletions src/@chakra-ui/gatsby-plugin/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Modal } from "./Modal"
import { Checkbox } from "./Checkbox"
import { Progress } from "./Progress"
import { Tabs } from "./Tabs"
import { Table } from "./Table"
import { Radio } from "./Radio"
import { Select } from "./Select"
import { Switch } from "./Switch"
Expand All @@ -24,7 +25,6 @@ import {
headingDefaultTheme,
menuDefaultTheme,
spinnerDefaultTheme,
tableDefaultTheme,
} from "./components.utils"

export default {
Expand All @@ -51,7 +51,7 @@ export default {
Select,
Spinner: spinnerDefaultTheme,
Switch,
Table: tableDefaultTheme,
Table,
Tabs,
Tag,
}
2 changes: 1 addition & 1 deletion src/@chakra-ui/gatsby-plugin/semanticTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const semanticTokens = {
base: { _light: "white", _dark: "gray.700" },
highlight: { _light: "gray.100", _dark: "gray.900" },
},
disabled: { _light: "gray.300", _dark: "gray.500" },
disabled: { _light: "gray.400", _dark: "gray.500" },
// ! Deprecating neutral
neutral: { _light: "white", _dark: "gray.900" },

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/components/Breadcrumbs/Breadcrumbs.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as React from "react"
import { Meta, StoryObj } from "@storybook/react"
import BreadcrumbsComponent from "."

type BreadcumbsType = typeof BreadcrumbsComponent

const meta: Meta<BreadcumbsType> = {
title: "Molecules / Navigation / Breadcrumbs",
component: BreadcrumbsComponent,
}

export default meta

type Story = StoryObj<typeof meta>

export const Breadcrumbs: Story = {
render: () => (
<>
<BreadcrumbsComponent slug="/en/staking/" />
<BreadcrumbsComponent slug="/en/staking/solo/" />
<BreadcrumbsComponent slug="/en/roadmap/merge/issuance/" />
</>
),
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
BreadcrumbProps,
} from "@chakra-ui/react"

import Link from "./Link"
import Link from "../Link"

export interface IProps extends BreadcrumbProps {
slug: string
Expand Down Expand Up @@ -73,10 +73,10 @@ const Breadcrumbs: React.FC<IProps> = ({
position="relative"
zIndex="1"
mb={8}
spacing="2.5"
listProps={{
m: 0,
lineHeight: 1,
rowGap: 1.5,
lineHeight: 1.6,
flexWrap: "wrap",
}}
{...restProps}
Expand All @@ -87,10 +87,8 @@ const Breadcrumbs: React.FC<IProps> = ({
<BreadcrumbItem
key={idx}
isCurrentPage={isCurrentPage}
color="textTableOfContents"
fontSize="sm"
color="body.medium"
letterSpacing="wider"
lineHeight="140%"
m={0}
>
<BreadcrumbLink
Expand All @@ -99,6 +97,15 @@ const Breadcrumbs: React.FC<IProps> = ({
isPartiallyActive={isCurrentPage}
_hover={{ color: "primary.base", textDecor: "none" }}
_active={{ color: "primary.base" }}
sx={{
/*
* Redundancy to ensure styling on the active
* link is applied.
*/
'&[aria-current="page"]': {
color: "primary.base",
},
}}
>
{crumb.text.toUpperCase()}
</BreadcrumbLink>
Expand Down
7 changes: 6 additions & 1 deletion src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export const StyleVariants: Story = {
<VStack spacing={4}>
{variants.map((variant, idx) => {
if (args.isSecondary && variant === "solid") return
return <Button key={idx} variant={variant} {...args} />
return (
<HStack spacing={4} key={idx}>
<Button variant={variant} {...args} />
<Button variant={variant} isDisabled {...args} />
</HStack>
)
})}
</VStack>
),
Expand Down
24 changes: 0 additions & 24 deletions src/components/MarkdownTable.tsx

This file was deleted.

4 changes: 4 additions & 0 deletions src/components/Nav/useNav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export const useNav = ({ path }: { path: string }) => {
text: t("decentralized-science"),
to: "/desci/",
},
{
text: t("regenerative-finance"),
to: "/refi/",
},
],
},
learn: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/PageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ const PageHero: React.FC<IProps> = ({
{subtitle}
</Text>
{buttons && (
<Wrap spacing={2} overflow="visible">
// FIXME: remove the `ul` override once removed the corresponding
// global styles in `src/@chakra-ui/gatsby-plugin/styles.ts`
<Wrap spacing={2} overflow="visible" sx={{ ul: { m: 0 } }}>
{buttons.map((button, idx) => {
if (isButtonLink(button)) {
return (
Expand Down
7 changes: 2 additions & 5 deletions src/components/Quiz/QuizzesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const QuizzesModal: React.FC<IProps> = ({ children, ...rest }) => {

const statusColor =
quizStatus === "neutral"
? "white"
? "neutral"
: quizStatus === "success"
? "success.light"
: "error.light"
Expand All @@ -30,10 +30,7 @@ const QuizzesModal: React.FC<IProps> = ({ children, ...rest }) => {
scrollBehavior="inside"
{...rest}
>
<ModalOverlay
bg="blackAlpha.700"
display={{ base: "none", md: "block" }}
/>
<ModalOverlay bg="blackAlpha.700" hideBelow="md" />

<ModalContent justifyContent="center" bg={statusColor}>
<ModalCloseButton size="lg" p={6} zIndex={1} />
Expand Down
42 changes: 42 additions & 0 deletions src/components/Table/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import * as React from "react"
import {
Table as ChakraTable,
TableContainer,
Td,
Th,
Tr,
ThemingProps,
Tbody,
Thead,
} from "@chakra-ui/react"
import { MDXProviderComponentsProp } from "@mdx-js/react"

/*
* TODO: Currently, there are cell spacing issues with some table content.
* Prefer `layout="fixed"` in the future when content has been addressed
* to provide equal cell widths.
*/

interface TableProps extends ThemingProps<"Table"> {
children: React.ReactNode
}

const Table = (props: TableProps) => {
const { variant, ...rest } = props
return (
<TableContainer whiteSpace="normal">
<ChakraTable variant={variant} {...rest} />
</TableContainer>
)
}

export const mdxTableComponents: MDXProviderComponentsProp = {
table: Table,
th: ({ align, ...rest }) => <Th textAlign={align} {...rest} />,
td: ({ align, ...rest }) => <Td textAlign={align} {...rest} />,
tr: (props) => <Tr {...props} />,
tbody: (props) => <Tbody {...props} />,
thead: (props) => <Thead {...props} />,
}

export default Table
Loading