Skip to content

Commit c37d0e1

Browse files
Re-org side menu + TOS in the footer (#1361)
* Re-org side menu + TOS in the footer * fix typo * fix paths * update path * re-style footer Co-authored-by: Gustavo Esquinca <[email protected]>
1 parent d9fffd1 commit c37d0e1

File tree

27 files changed

+93
-53
lines changed

27 files changed

+93
-53
lines changed

docs/src/lib/components/Footer.svelte

Lines changed: 40 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
let text = {
1313
license: 'Released under the MIT License.',
14-
copyright: 'Copyright © 2022'
14+
copyright: '© 2022 Blocknative. All Rights Reserved.'
1515
}
1616
</script>
1717

@@ -43,34 +43,67 @@
4343
</a>
4444
</Flexbox>
4545
<a href="//www.blocknative.com/" target="_blank">
46-
<img src={PoweredByBn} alt="Powered by Blocknative">
46+
<img src={PoweredByBn} alt="Powered by Blocknative" />
4747
<span class="sr-only">Powered by Blocknative</span>
4848
</a>
4949
</Flexbox>
5050
<div class="copyright-box">
51-
<div class="text">{text.license}</div>
52-
<div class="text">{text.copyright}</div>
51+
<div class="flex flex-row flex-wrap justify-center">
52+
<div class="text">{text.license}</div>
53+
<div class="text">{text.copyright}</div>
54+
</div>
55+
<div class="flex">
56+
<a
57+
target="_blank"
58+
href="https://www.blocknative.com/privacy-policy"
59+
class="text-sm hover:text-white">Privacy Policy</a
60+
>
61+
<div class="w-px bg-gray-divider mx-2 h-4" />
62+
<a
63+
target="_blank"
64+
href="https://www.blocknative.com/terms-conditions"
65+
class="text-sm hover:text-white">Terms of Service</a
66+
>
67+
</div>
5368
</div>
5469
</footer>
5570

5671
<style>
5772
footer {
5873
background: #1a1d26;
5974
min-height: 400px;
60-
6175
display: flex;
6276
flex-flow: column;
6377
}
6478
79+
a.icon-link {
80+
color: rgba(255, 255, 255, 0.8);
81+
transition: transform 200ms ease-in-out;
82+
}
83+
a.icon-link:hover {
84+
color: rgba(255, 255, 255, 1);
85+
transform: scale(1.2);
86+
}
87+
a.icon-link:focus {
88+
transform: none;
89+
}
90+
6591
.copyright-box {
6692
/* grey/600 */
6793
background: #242835;
68-
6994
display: flex;
7095
flex-flow: column;
7196
justify-content: center;
7297
align-items: center;
7398
padding: 1.5rem 2rem;
99+
gap: 1rem;
100+
}
101+
@media screen and (min-width: 1024px) {
102+
.copyright-box {
103+
flex-flow: row;
104+
justify-content: space-between;
105+
gap: 0.5rem;
106+
}
74107
}
75108
76109
.text {
@@ -80,23 +113,10 @@
80113
font-weight: 400;
81114
font-size: 14px;
82115
line-height: 16px;
83-
84116
/* grey/300 */
85117
color: #999ca5;
86118
}
87119
88-
a.icon-link {
89-
color: rgba(255, 255, 255, 0.8);
90-
transition: transform 200ms ease-in-out;
91-
}
92-
a.icon-link:hover {
93-
color: rgba(255, 255, 255, 1);
94-
transform: scale(1.2);
95-
}
96-
a.icon-link:focus {
97-
transform: none;
98-
}
99-
100120
/* screen reader class */
101121
/* can be moved elsewhere */
102122
.sr-only {
@@ -110,4 +130,5 @@
110130
white-space: nowrap;
111131
border-width: 0;
112132
}
133+
113134
</style>

docs/src/routes/docs/[...1]overview/[...1]introduction.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ and it's dependencies only when the user selects it, so that minimal bandwidth i
3333

3434
### Supported Networks
3535

36-
web3-onboard supports all EVM networks. Supporting a new network is simply a matter of adding its details in the Chains section upon initialization. For more information see [initialization options](https://onboard.blocknative.com/docs/packages/core#options).
36+
web3-onboard supports all EVM networks. Supporting a new network is simply a matter of adding its details in the Chains section upon initialization. For more information see [initialization options](https://onboard.blocknative.com/docs/modules/core#options).
3737
- Arbitrum
3838
- Avalanche
3939
- BNB Chain
@@ -133,9 +133,9 @@ if (wallets[0]) {
133133
## Wallet Modules
134134
Add other wallet modules such as Wallet Connect or Ledger to increase the support and functionality of your web3-onboard implementation. All modules are listed below and can be accessed through the subpages of web3-onboard docs on the left.
135135

136-
We recommend you add the [Core Repo](https://onboard.blocknative.com/docs/packages/core#install) and consider adding the [Injected Wallets](https://onboard.blocknative.com/docs/packages/injected#install) module to get connected with wallets like Metamask, Tally, Coinbase Wallet & more right away.
136+
We recommend you add the [Core Repo](https://onboard.blocknative.com/docs/modules/core#install) and consider adding the [Injected Wallets](https://onboard.blocknative.com/docs/packages/injected#install) module to get connected with wallets like Metamask, Tally, Coinbase Wallet & more right away.
137137

138-
[**Core Repo**](https://onboard.blocknative.com/docs/packages/core#install)
138+
[**Core Repo**](https://onboard.blocknative.com/docs/modules/core#install)
139139

140140
[**Injected Wallets**](https://onboard.blocknative.com/docs/packages/injected#install)
141141

@@ -160,8 +160,8 @@ We recommend you add the [Core Repo](https://onboard.blocknative.com/docs/packag
160160

161161
**Frameworks**
162162

163-
- [React](https://onboard.blocknative.com/docs/packages/react#quickstart-with-injected-wallets-and-ethers-provider)
164-
- [Vue](https://onboard.blocknative.com/docs/packages/vue#install)
163+
- [React](https://onboard.blocknative.com/docs/modules/react#quickstart-with-injected-wallets-and-ethers-provider)
164+
- [Vue](https://onboard.blocknative.com/docs/modules/vue#install)
165165

166166
## Test out the demo app
167167

docs/src/routes/docs/[...1]overview/[...3]onboard.js-migration-guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const onboard = Onboard({
4646
})
4747
```
4848

49-
You can find the full list of initialization options in our docs [here](/docs/packages/core#options).
49+
You can find the full list of initialization options in our docs [here](/docs/modules/core#options).
5050

5151
### API Upgrades
5252

@@ -55,7 +55,7 @@ Now, you only need to call the connectWallet API:
5555

5656
`await onboard.connectWallet()`
5757

58-
Learn more about state changes tracked with the Onboard API [here](/docs/packages/core#state) and the exposed actions you can use to modify the state [here](/docs/packages/core#actions-to-modify-state).
58+
Learn more about state changes tracked with the Onboard API [here](/docs/modules/core#state) and the exposed actions you can use to modify the state [here](/docs/modules/core#actions-to-modify-state).
5959

6060
### Framework Support
6161

@@ -89,7 +89,7 @@ We've also added more expansive custom CSS properties so you can style every par
8989
}
9090
```
9191

92-
The full list of CSS variables for web3-onboard are available [here](/docs/packages/core#custom-styling).
92+
The full list of CSS variables for web3-onboard are available [here](/docs/modules/core#custom-styling).
9393

9494
### Other Important Changes
9595

docs/src/routes/docs/[...2]getting-started/[...2]customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The Onboard styles can customized via [CSS custom properties](https://developer.
7979
--account-center-app-btn-font-family
8080
--account-center-border
8181
--account-center-box-shadow
82-
--account-center-boarder-radius
82+
--account-center-border-radius
8383
--account-center-chain-warning
8484
--account-center-minimized-balance-color
8585
--account-center-minimized-chain-select-background
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Common
2+
3+
A collection of functions and types that are shared across various packages in the Onboard V2 monorepo
4+
5+
## Install
6+
7+
<Tabs values={['yarn', 'npm']}>
8+
<TabPanel value="yarn">
9+
10+
```sh copy
11+
yarn add @web3-onboard/common
12+
```
13+
14+
</TabPanel>
15+
<TabPanel value="npm">
16+
17+
```sh copy
18+
npm install @web3-onboard/common
19+
```
20+
21+
</TabPanel>
22+
</Tabs>

docs/src/routes/docs/[...4]packages/core.md renamed to docs/src/routes/docs/[...3]modules/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @web3-onboard/core
1+
# Core
22

33
This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.
44

docs/src/routes/docs/[...4]packages/gas.md renamed to docs/src/routes/docs/[...3]modules/gas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
import {Gas} from '$lib/components'
33
</script>
4-
# @web3-onboard/gas
4+
# Gas
55

66
A module for requesting streams or single requests of gas price estimates from the [Blocknative Gas Platform API](https://docs.blocknative.com/gas-platform).
77

@@ -79,7 +79,7 @@ const gasBlockPrices = await gas.get({
7979
## Usage with Web3-Onboard wallet Connect and Ethers.js
8080

8181
This example assumes you have already setup web3-onboard to connect wallets to your dapp.
82-
For more information see [web3-onboard docs](/docs/packages/core#install).
82+
For more information see [web3-onboard docs](/docs/modules/core#install).
8383
```ts
8484
import gas from '@web3-onboard/gas'
8585
import { ethers } from 'ethers'

docs/src/routes/docs/[...4]packages/react.md renamed to docs/src/routes/docs/[...3]modules/react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @web3-onboard/react
1+
# React
22

33
A collection of React hooks for implementing web3-onboard in to a React project
44

docs/src/routes/docs/[...4]packages/vue.md renamed to docs/src/routes/docs/[...3]modules/vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @web3-onboard/vue
1+
# Vue
22

33
A collection of composable functions for implementing web3-onboard in to a Vue project; compatible both with Vue 2 + composition-api and Vue 3
44

docs/src/routes/docs/[...4]packages/common.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)