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

Supported networks design fixes #620

Merged
merged 34 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dfd5eae
Create unified supported networks page
louis-md Oct 2, 2024
abd9cf2
Edit generation script
louis-md Oct 2, 2024
37fad5f
Replace existing supported network pages by links to the new one
louis-md Oct 2, 2024
de4cfb7
Minor fix
louis-md Oct 2, 2024
fbaf4c4
Merge remote-tracking branch 'origin' into supported-networks
louis-md Oct 2, 2024
a033ec9
Add redirections
louis-md Oct 3, 2024
545f6dc
Fix containers
louis-md Oct 3, 2024
c64e728
Fix links
louis-md Oct 3, 2024
5e66afb
Fix typo
louis-md Oct 3, 2024
fb67155
Fix link checker error
louis-md Oct 3, 2024
49a13e9
Implement requested changes
louis-md Oct 8, 2024
a3cea7e
Generate separate API references per network
louis-md Oct 8, 2024
071d8ed
Minor fix
louis-md Oct 8, 2024
70b8486
Use prettier instead of numso.prettier-standard
louis-md Oct 8, 2024
ac8ec96
Use typed script to generate API reference
louis-md Oct 8, 2024
4883972
Fix lint errors
louis-md Oct 8, 2024
8ebabac
Implement requested changes
louis-md Oct 8, 2024
e27fcc7
Minor fixes
louis-md Oct 8, 2024
6a0f98a
Minor fix
louis-md Oct 8, 2024
034eadf
Fix lint errors
louis-md Oct 8, 2024
6691c50
Fix generate api reference script
louis-md Oct 15, 2024
0077815
Fix generate supported networks script
louis-md Oct 15, 2024
2998342
Re-generate supported networks
louis-md Oct 15, 2024
24daee0
Implement requested changes
louis-md Oct 15, 2024
810762a
Re-generate API reference
louis-md Oct 15, 2024
97cc909
Fix broken links
louis-md Oct 16, 2024
e764f9a
Merge branch 'main' of https://github.com/safe-global/safe-docs into …
louis-md Oct 16, 2024
06ec6f7
Fix links
louis-md Oct 16, 2024
b918a4d
Fix lazy loading
louis-md Oct 16, 2024
bdad520
Implement requested design changes
louis-md Oct 16, 2024
8a7befc
Implement requested design changes
louis-md Oct 16, 2024
2db4ae6
Merge branch 'supported-networks' of https://github.com/safe-global/s…
louis-md Oct 16, 2024
6e2e9e7
Unsplit and and fix addresses margins
louis-md Oct 16, 2024
2c03496
Merge branch 'main' of https://github.com/safe-global/safe-docs into …
louis-md Oct 17, 2024
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
10 changes: 8 additions & 2 deletions components/ResourceHub/Resources.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,20 @@ export const Resources: React.FC = () => {
alignItems='center'
justifyContent='center'
>
<Typography textAlign='center' variant='h1' mb={[2, 0]}>
<Typography textAlign='center' variant='h1' fontSize='42px' mb={4}>
Resource Hub
</Typography>
<TextField
className={css.searchField}
variant='outlined'
placeholder='Search by name, description, or tag'
InputProps={{
style: {
color: 'white',
backgroundColor: 'rgba(28, 28, 28, 1)',
borderRadius: '8px',
border: 'none'
},
startAdornment: (
<InputAdornment position='start'>
<SearchIcon />
Expand All @@ -357,7 +363,7 @@ export const Resources: React.FC = () => {
) : undefined
}}
value={searchQuery}
sx={{ border: 'none', width: '80%', mt: [2, 0] }}
sx={{ border: 'none', width: ['80%', '500px'], mt: [2, 0] }}
onChange={e => {
if (e.target.value.length === 0) onResetSearch()
else setSelectedFilter([e.target.value], 'search')
Expand Down
20 changes: 12 additions & 8 deletions components/SupportedNetworks/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ const NetworkCard = (network: Network): JSX.Element => {
}}
className={css.card}
onClick={() => {
void push({
query: {
...query,
expand: network.chainId
}
})
void push(
{
query: {
...query,
expand: network.chainId
}
},
undefined,
{ scroll: false }
)
// sendGAEvent('event', 'supported_networks_link', {
// network_chainId: network.chainId,
// network_name: network.name
Expand Down Expand Up @@ -104,7 +108,7 @@ const NetworkCard = (network: Network): JSX.Element => {
height: '23px',
fontSize: '14px',
cursor: 'pointer',
ml: 1
mr: 1
}}
className={css.chip}
label={version}
Expand All @@ -131,7 +135,7 @@ const NetworkCard = (network: Network): JSX.Element => {
height: '23px',
fontSize: '14px',
cursor: 'pointer',
ml: 1
mr: 1
}}
className={css.chip}
label={feature}
Expand Down
Loading
Loading