Commit Graph

405 Commits

Author SHA1 Message Date
Nicolás Quiroz 79893a58d3 Merge branch 'master' of github.com:ethereum/geth-website into fix-last-edit-timestamp 2022-12-16 15:49:26 -03:00
Paul Wackerow dfa4a0b335
Add 404 page-not-found fallback [Fixes #155] (#176)
* add 404 page not found fallback

* clean up styling
2022-12-16 12:38:12 -03:00
Paul Wackerow 022a7be96e
Merge pull request #167 from ethereum/default-downloads-os
Add default tab on downloads page based on user OS
2022-12-16 05:36:16 +01:00
Paul Wackerow b323ea21c9
add back Android user agent check 2022-12-15 14:49:52 -08:00
Paul Wackerow c92ee08367
debug using only re.test(string) 2022-12-15 14:46:06 -08:00
Paul Wackerow 7100b079b9
debug android OS selector 2022-12-15 14:40:18 -08:00
Nicolás Quiroz a688f81afe
fix: buttons :active/:focus styles (#173)
* chore: update Button component styles

* chore: update textStyles

* chore: remove redundant styles
2022-12-15 19:37:21 -03:00
Paul Wackerow 22e75c7012
check for SamsungBrowser for Android 2022-12-15 14:16:07 -08:00
Nicolás Quiroz de9bb9ca63
chore: update line-height for docs text (#174) 2022-12-15 19:15:20 -03:00
Joseph Cook 0051501bc5
docs: move some pages (#169)
Moves a few pages to new locations based on feedback from Geth team.

Co-authored-by: Felix Lange <fjl@twurst.com>
2022-12-15 18:19:38 +01:00
Paul Wackerow e5a04b96c3
update relative path of import 2022-12-15 17:39:48 +01:00
Nicolás Quiroz 3dea406d9e chore: update margins on desktop 2022-12-15 13:16:38 -03:00
Nicolás Quiroz fe86513064 Merge branch 'master' of github.com:ethereum/geth-website into grid-gap 2022-12-15 12:56:50 -03:00
Corwin Smith 4aa8f214fb
[sorting] releases should be sorted by date, then by type (Geth, then Geth + tools) (#158)
* create constant for number of releases per os

* sort releases

* Apply suggestions from code review

* change requests

* fix build error

* cleanup

* fix: typo & prettier

* refactor sort function

* cleanup unnecessary changes

* fix: getReleaseArch case

* fix sort

* prettier

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-15 12:27:49 -03:00
Felix Lange ebe8093a63 src/data: update some doc link names 2022-12-15 12:55:28 +01:00
Felix Lange 0378ccbe80 docs: remove interacting-with-geth/rpc/objects 2022-12-15 12:54:30 +01:00
Paul Wackerow 832f1002bc
add default downloads tab based on user OS 2022-12-14 22:07:14 -08:00
Nicolás Quiroz 8063027be8 chore: update MobileMenu imports 2022-12-15 01:29:04 -03:00
Nicolás Quiroz a0f0b5fc86 chore: update spacing between sections on home and /downloads pages 2022-12-15 00:57:02 -03:00
Paul Wackerow f509950c72
match any domain and remove
makes all search results local to current domain
2022-12-14 10:47:38 -08:00
Paul Wackerow 65bdc4e4dd
linting 2022-12-14 10:34:44 -08:00
Paul Wackerow 88fc10e89b
extract indexDomain to env var 2022-12-14 10:12:18 -08:00
Paul Wackerow 551a64d2b1
Update src/components/UI/Search.tsx 2022-12-14 18:42:08 +01:00
Paul Wackerow 523dee284d
strip out netlify-preview domain from search results 2022-12-14 07:55:10 -08:00
Paul Wackerow b527950e6d
Merge branch 'master' into algolia 2022-12-13 12:31:44 -08:00
Paul Wackerow 7bca3d3431
update DocSearch do use env vars 2022-12-13 12:29:00 -08:00
Nicolás Quiroz ea9ed42547 fix: last modified date 2022-12-13 14:20:16 -03:00
Nicolás Quiroz 01c6252754 feat: add getLastModifiedDate 2022-12-13 14:19:57 -03:00
Nicolás Quiroz d07464b8b0 chore: update constants 2022-12-13 14:19:33 -03:00
Corwin Smith 42248dcedf
[bug] right side navigation menu is not being rendered ok in some cases (#146)
* dont render DocumentNav if there are no headings on a page

* Fix layout of elements in [...slug].tsx

* fix header

* fix span overflow

* prettier

* fix: missing white-space on pre tags

* fix: parsedHeadings bug

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-13 10:23:26 -03:00
Nicolás Quiroz b98ccf0747 Merge branch 'master' of github.com:ethereum/geth-website into primary-releases 2022-12-13 00:07:46 -03:00
Nicolás Quiroz 9e3789e31f chore: import correct font weight 2022-12-13 00:07:38 -03:00
Corwin Smith 31233f1433 prettier 2022-12-12 18:57:57 -07:00
Corwin Smith 83c67a88a1 Merge branch 'master' into h1StyleFix 2022-12-12 18:39:01 -07:00
Corwin Smith 3d722a3ee5 h2 fontWeight 2022-12-12 18:36:54 -07:00
Paul Wackerow 266b4a3ec4
Accessibility (a11y) clean up (#138)
* Add hidden skip to content for keyboard a11y

* update green.900 value

used for button background; increases contrast ratio

* adjusts light primary to green.700 for contrast

Improves contrast ratio when paired with yellow.50 and removes browser a11y warnings

* add aria-labels

* add lang to html element

* fix improperly ordered headers

We should not be using headers (h4/h5) for these aside navigations. Updated to remove browser warnings.

* add remaining aria-label

* add aria-label for mobile menu
2022-12-12 20:34:10 -03:00
Nicolás Quiroz 6f7038fc92 Merge branch 'master' of github.com:ethereum/geth-website into primary-releases 2022-12-12 19:46:17 -03:00
Nicolás Quiroz dfdf95639e feat: check if it's primary release 2022-12-12 19:45:26 -03:00
Nicolás Quiroz 8566e5bb1f chore: update types 2022-12-12 19:44:52 -03:00
Nicolás Quiroz 776616f45d chore: update utils 2022-12-12 19:44:42 -03:00
Corwin Smith e66168660a linux stables build 2022-12-12 13:46:11 -07:00
Paul Wackerow 1483d10a12
fix onClick vs legacyBehavior
adds missing legacyBehavior attribute to NextLink tags to prevent nesting anchor elements which was causing hydration warnings. Also fixes 'The legacy behavior requires onClick be set on the child of next/link'
2022-12-12 12:01:20 -08:00
Nicolás Quiroz 95e3b7cf1d Merge branch 'master' of github.com:ethereum/geth-website into primary-releases 2022-12-12 16:39:55 -03:00
Paul Wackerow 5f9daa4286
Merge branch 'master' into documentationDropdownClose 2022-12-12 11:31:35 -08:00
Paul Wackerow fbd09362f2
add legacyBehavior prop 2022-12-12 20:26:54 +01:00
Corwin Smith 8241aefcb4
update colors (#154) 2022-12-12 16:16:59 -03:00
Nicolás Quiroz 5a23b89c06 chore: remove MDX dependencies and Provider 2022-12-12 16:10:15 -03:00
Corwin Smith 657083d7f2 change requests 2022-12-12 12:03:22 -07:00
Corwin Smith 62aff31a2e
Update src/components/UI/docs/DocsNav.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-12 11:58:30 -07:00
Corwin Smith d7ea2df124 Merge branch 'master' into documentationDropdownClose 2022-12-12 11:50:27 -07:00
Corwin Smith 64ae7579bd update header styles 2022-12-12 11:45:08 -07:00
Corwin Smith 06219268c5
Merge pull request #136 from ethereum/search-backup
Search input set up for external search engine
2022-12-12 19:31:06 +01:00
Corwin Smith 7dc3059036
[UI/UX bug] - Footer buttons are only partially clickable and [Perf] - Optimise SVGs (#143)
* Make whole footer button area clickable

* optimize svgs
2022-12-12 14:21:22 -03:00
Corwin Smith 80e455812a
Remove defaultIndex from Accordion to have them default closed (#144) 2022-12-12 14:20:49 -03:00
Nicolás Quiroz e6c2d7f259 chore: update wip 2022-12-12 14:01:52 -03:00
Nicolás Quiroz be1d066984 chore: wip 2022-12-12 13:11:15 -03:00
Paul Wackerow d5e3db36ca
Merge branch 'master' into search-backup 2022-12-09 13:35:21 -08:00
Paul Wackerow c9ef66acbf
add submit type to search button 2022-12-09 13:29:14 -08:00
Corwin Smith 4ca9d12193 update fontSize for h1 2022-12-08 22:52:04 -07:00
Corwin Smith 4315911af4
Merge pull request #139 from ethereum/empty-state-releases
feat: add empty state for platforms without releases
2022-12-09 03:56:48 +01:00
Corwin Smith 7904e5878e
Merge branch 'master' into add-missing-link-prop 2022-12-09 03:51:36 +01:00
Paul Wackerow e8faee0bd3
update search to form get request
similar to existing site, using duckduckgo using the get method of a form element. Converted magnifying class wrapped in anchor tag to be a submit button instead
2022-12-07 15:47:35 -08:00
Nicolás Quiroz 026757a5db chore: prettier 2022-12-07 18:41:50 -03:00
Nicolás Quiroz 640b72abc6 fix: add :hover color for hero buttons on dark mode 2022-12-07 18:40:13 -03:00
Nicolás Quiroz d8996d1c95 fix: adds missing legacyBehavior prop 2022-12-07 17:09:43 -03:00
Nicolás Quiroz d71e3177d8 Merge branch 'master' of github.com:ethereum/geth-website into empty-state-releases 2022-12-07 16:59:56 -03:00
Nicolás Quiroz 527dad3635 fix: borderBottom on DownloadsTable 2022-12-07 16:59:44 -03:00
Nicolás Quiroz af86168c2f feat: add empty state for platforms without releases 2022-12-07 14:30:09 -03:00
Paul Wackerow 11035bf0c4
adjusts light primary to green.700 for contrast (#137)
Improves contrast ratio when paired with yellow.50 and removes browser a11y warnings
2022-12-07 14:26:23 -03:00
Paul Wackerow faa0640465
update green.900 value (#135)
used for button background; increases contrast ratio
2022-12-07 11:57:25 -03:00
Paul Wackerow 871f55587e
search input directs query to google 2022-12-06 21:09:09 -08:00
Corwin Smith 1b5195908c close mobile docs dropdown when page is selected 2022-12-06 16:19:55 -07:00
Paul Wackerow 56b9963afd
Markdown header margin fix [Fixes #83] (#120)
* expand parseHeadingId

Will produce a kebab-case heading ID from string if none explicitly declared in the markdown. Always returns an object with the children, title and headingId.

* remove redundant code from MDComponents.tsx

parseHeadingIds now always returns an object with an ID, removing need for conditionals here

* Use Box instead of flex Stack for MDX content

Allows stacked vertical margins to properly collapse into each other

* fix: h2 top margin to 3rem on mobile

* remove unneeded line

* extract and rename getKebabCaseFromName util fn

* Update src/pages/[...slug].tsx

* Update src/utils/parseHeadingId.ts

Co-authored-by: Corwin Smith <cssmittys@gmail.com>

* move constant inside function

make variable name all caps as a string constant

* clean up utils/index.ts to abc order

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
2022-12-06 17:04:09 -03:00
Nicolás Quiroz 332e972397
fix: external links (#133)
* fix: footer external links

* fix: ButtonLinkSecondary external links

* fix: docs external links
2022-12-06 17:02:55 -03:00
Paul Wackerow 4f45c02127
Merge branch 'master' into document-nav-spacing 2022-12-06 10:04:33 -08:00
Corwin Smith 50b50e853c
Merge pull request #128 from ethereum/breadcrumbHeaderBug
[Logic bug] - Breadcrumbs contains header id
2022-12-06 18:56:13 +01:00
Corwin Smith 7e9e22a671 remove margin styles for document-nav-link in textStyles.ts 2022-12-06 10:54:50 -07:00
Corwin Smith d93e4373e2
Update src/components/UI/docs/DocumentNav.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:53:11 -07:00
Corwin Smith 5186a1f74f
Update src/components/UI/docs/Breadcrumbs.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:35:48 -07:00
Corwin Smith 9107cf3988
Update src/components/UI/docs/Breadcrumbs.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-06 10:35:44 -07:00
Paul Wackerow 9bbcd71078
Fix hover for DocumentNav links [Fixes #73] (#107)
* fix hover for DocumentNav links [Fixes #73]

* use Box instead of flex Stack

Allows vertical margins of children to collapse into each other

* Revert "use Box instead of flex Stack"

This reverts commit a4811127ccd7424da8f51e2a056aee447fc5db08.

* add :focus and :active states
2022-12-06 10:46:18 -03:00
Paul Wackerow 892c743b78
Use long month formatting for last edit date [Fixes #86] (#121)
* use long month formatting for last edit date

* last -> Last

* Update src/pages/[...slug].tsx

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-06 10:43:12 -03:00
Paul Wackerow bbd4a31bad
add max width of 100% to md content on mobile (#130) 2022-12-06 10:35:53 -03:00
Paul Wackerow 93c255ce39
Adjust link styling for various states [Fixes #89] (#129)
* fix: link styling for various states

updates hover/active/focus link states to match design system

* hover underline color to secondary
2022-12-05 21:40:07 -03:00
Corwin Smith 26673626d2
Remove color style for list items, and change first-child to first-of-type based on console error for SSR (#127) 2022-12-05 17:17:11 -03:00
Paul Wackerow 04adbb749b
Merge pull request #116 from ethereum/display-12-releases
fix: show 2 latest releases for linux
2022-12-05 21:00:48 +01:00
Corwin Smith a11ce6cb8a
Merge pull request #117 from thouravi/patch-1
Extracted the style objects and props into variable
2022-12-05 20:07:11 +01:00
Corwin Smith 5926da4aa7 filter out anchor tag 2022-12-05 11:38:04 -07:00
Paul Wackerow 94cb14b978
Add gap between md content and right nav [Fixes #77] (#110)
* add gap between md content and right nav

* shorten max width of right nav divider

* make DocumentNav width responsive

Existing fixed width was too large after the 2rem of padding was added. Simply making it more narrow made it unnecessarily small on larger screen sizes. Clamp sets a min of chakra-size-40, max of chakra-size-58, while targeting an eighth of the screen width.
2022-12-05 14:13:26 -03:00
Paul Wackerow 1da998a4b6
xs font size for os label on mobile [Fixes #94] (#123) 2022-12-05 13:54:38 -03:00
Nicolás Quiroz 467d139bb0 hotfix: button width 2022-12-05 13:42:09 -03:00
Nicolás Quiroz e25b87f32d
fix: remove Showing... count message (#118)
* fix: remove Showing... count message

* Update src/pages/downloads.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

* Update src/pages/downloads.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-05 13:39:12 -03:00
Paul Wackerow 1f90789712
Link section padding [Fixes #71] (#106)
* rename to LinksList

* add padding after sections in LinksList

* reduce padding between sections to 1.5rem
2022-12-05 13:37:44 -03:00
Paul Wackerow 8b1b80604e
Icon line weight patch [Fixes #70] (#105)
* add custom AddIcon and MinusIcon svgs

* switch DocsLinks to use custom +/- svgs

* fix size of +/- svgs
2022-12-05 13:31:39 -03:00
Nicolás Quiroz 0bddab847d
fix: Show older releases button width on mobile (#125) 2022-12-05 13:28:34 -03:00
Paul Wackerow 2ae5698622
Stylize active docs link [Fixes #74, Fixes #115] (#108)
* add bold for active docs link [Fixes #74]

* Add ::before indicator to active doc link

Removes bold styling per design

* Update documentation-links.yaml

Makes it so `id` is paired with either a `to` field OR a list of `items` but not both

* Updates hover styling for left docs nav

* clean up styling

Removes remaining underlines from links styled as buttons. Cleans up logic for conditionally showing the ::before pseudo element. Makes the ::before indicator slightly larger.

* tweak ::before indicator styling

* tweak ::before indicator styling
2022-12-05 12:13:47 -03:00
Paul Wackerow e564ae46aa
adjust docs nav gap to 14px per design 2022-12-03 18:50:23 -08:00
Paul Wackerow 7e5c3cacbc
use Box instead of flex Stack for nav items
allows vertical margins of children to properly collapse into one another
2022-12-03 18:50:11 -08:00
Paul Wackerow 0836329a08
linting 2022-12-02 10:59:41 -08:00
Paul Wackerow 50eb37ae2f
Merge branch 'master' into algolia 2022-12-02 10:58:48 -08:00