Skip to content

Commit 70eb0ce

Browse files
committed
Add to Quickstart and Tutorials.
Signed-off-by: bgravenorst <byron.gravenorst@consensys.net>
1 parent 605c479 commit 70eb0ce

9 files changed

Lines changed: 154 additions & 128 deletions

File tree

smart-accounts-kit/reference/glossary.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
description: Glossary of terms used across Smart Accounts Kit documentation.
33
title: Glossary
4-
keywords: [glossary, smart accounts kit, delegation, advanced permissions, terms]
4+
keywords:
5+
[glossary, smart accounts kit, delegation, advanced permissions, terms]
56
---
67

78
This glossary defines common Smart Accounts Kit terms used across the documentation.

src/components/FeedbackWidget/styles.module.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.widget {
2-
margin-top: 2rem;
2+
flex: 0 1 auto;
3+
width: 400px;
4+
max-width: 100%;
35
}
46

57
.prompt {
@@ -28,9 +30,10 @@
2830
box-sizing: border-box;
2931
appearance: none;
3032
font-family: var(--ifm-font-family-base);
31-
font-size: 1rem;
33+
font-size: 12px;
3234
font-weight: 500;
33-
padding: 10px 28px;
35+
line-height: 150%;
36+
padding: 8px 24px;
3437
margin: 0;
3538
border-radius: 8px;
3639
border: 1px solid var(--ifm-color-emphasis-300) !important;
@@ -70,10 +73,10 @@
7073
box-sizing: border-box;
7174
appearance: none;
7275
width: 100%;
73-
max-width: 560px;
76+
max-width: 960px;
7477
padding: 14px 16px;
7578
margin: 0;
76-
font-size: 1rem;
79+
font-size: 1.4rem;
7780
color: var(--ifm-color-content);
7881
background: var(--ifm-background-surface-color) !important;
7982
border: 1px solid var(--ifm-color-emphasis-300) !important;
@@ -106,9 +109,10 @@
106109
box-sizing: border-box;
107110
appearance: none;
108111
font-family: var(--ifm-font-family-base);
109-
font-size: 1rem;
112+
font-size: 12px;
110113
font-weight: 500;
111-
padding: 10px 28px;
114+
line-height: 150%;
115+
padding: 8px 24px;
112116
margin: 0;
113117
border-radius: 8px;
114118
border: none !important;
@@ -130,7 +134,7 @@
130134
}
131135

132136
.error {
133-
font-size: 1rem;
137+
font-size: 1.4rem;
134138
color: var(--ifm-color-emphasis-600);
135139
margin: 0;
136140
}

src/pages/quickstart/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getWindowLocation } from '../../theme/URLParams'
2020
import { METAMASK_CONNECT, EMBEDDED_WALLETS, YES, NO } from './builder/choices'
2121
import NavigationOverlay from './NavigationOverlay'
2222
import MediaStep from './MediaStep'
23+
import FeedbackWidget from '../../components/FeedbackWidget'
2324

2425
const ALLOWED_OPTION_KEYS = new Set([
2526
'product',
@@ -933,6 +934,9 @@ export default function IntegrationBuilderPage(props) {
933934
)}
934935
</div>
935936
))}
937+
<div className={styles.feedbackSection}>
938+
<FeedbackWidget />
939+
</div>
936940
</div>
937941
) : (
938942
<div className={styles.stepContainer}>

src/pages/quickstart/styles.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,3 +1446,13 @@ input:checked + .slider::before {
14461446
border-radius: 8px !important;
14471447
}
14481448
}
1449+
1450+
.feedbackSection {
1451+
padding: 3rem 2rem 6rem;
1452+
border-top: 1px solid var(--ifm-color-emphasis-200);
1453+
margin-top: 2rem;
1454+
min-height: 200px;
1455+
display: flex;
1456+
align-items: flex-start;
1457+
justify-content: center;
1458+
}

src/theme/DocItem/Footer/index.jsx

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,32 @@ import { ThemeClassNames } from '@docusaurus/theme-common'
44
import { useDoc } from '@docusaurus/plugin-content-docs/client'
55
import LastUpdated from '@theme/LastUpdated'
66
import EditThisPage from '@theme/EditThisPage'
7+
import FeedbackWidget from '../../../components/FeedbackWidget'
78
import styles from './styles.module.css'
89

9-
function EditMetaRow({ editUrl, lastUpdatedAt, lastUpdatedBy, formattedLastUpdatedAt }) {
10-
return (
11-
<div className={clsx(ThemeClassNames.docs.docFooterEditMetaRow, 'row')}>
12-
<div className="col">{editUrl && <EditThisPage editUrl={editUrl} />}</div>
13-
14-
<div className={clsx('col type-paragraph-m', styles.lastUpdated)}>
15-
{(lastUpdatedAt || lastUpdatedBy) && (
16-
<LastUpdated
17-
lastUpdatedAt={lastUpdatedAt}
18-
formattedLastUpdatedAt={formattedLastUpdatedAt}
19-
lastUpdatedBy={lastUpdatedBy}
20-
/>
21-
)}
22-
</div>
23-
</div>
24-
)
25-
}
2610
export default function DocItemFooter() {
2711
const { metadata } = useDoc()
2812
const { editUrl, lastUpdatedAt, formattedLastUpdatedAt, lastUpdatedBy } = metadata
2913
const canDisplayEditMetaRow = !!(editUrl || lastUpdatedAt || lastUpdatedBy)
30-
if (!canDisplayEditMetaRow) {
31-
return null
32-
}
14+
3315
return (
3416
<footer className={clsx(ThemeClassNames.docs.docFooter, 'docusaurus-mt-lg docusaurus-mb-lg')}>
35-
{canDisplayEditMetaRow && (
36-
<EditMetaRow
37-
editUrl={editUrl}
38-
lastUpdatedAt={lastUpdatedAt}
39-
lastUpdatedBy={lastUpdatedBy}
40-
formattedLastUpdatedAt={formattedLastUpdatedAt}
41-
/>
17+
<div className={styles.topRow}>
18+
<FeedbackWidget key={metadata.permalink} />
19+
{editUrl && (
20+
<div className={styles.editLink}>
21+
<EditThisPage editUrl={editUrl} />
22+
</div>
23+
)}
24+
</div>
25+
{(lastUpdatedAt || lastUpdatedBy) && (
26+
<div className={styles.lastUpdatedRow}>
27+
<LastUpdated
28+
lastUpdatedAt={lastUpdatedAt}
29+
formattedLastUpdatedAt={formattedLastUpdatedAt}
30+
lastUpdatedBy={lastUpdatedBy}
31+
/>
32+
</div>
4233
)}
4334
</footer>
4435
)
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
.lastUpdated {
2-
margin-top: 0.2rem;
3-
margin-bottom: 2rem;
4-
color: var(--general-gray-dark);
1+
.topRow {
2+
display: flex;
3+
flex-wrap: wrap;
4+
align-items: flex-start;
5+
justify-content: space-between;
6+
gap: 1rem;
7+
}
58

6-
[data-theme='dark'] & {
7-
color: var(--general-gray);
8-
}
9+
.editLink {
10+
flex-shrink: 0;
11+
padding-top: 0.4rem;
912
}
1013

11-
@media (width >= 997px) {
12-
.lastUpdated {
13-
text-align: right;
14-
}
14+
.lastUpdatedRow {
15+
margin-top: 1rem;
16+
text-align: center;
17+
font-size: 1rem;
18+
color: var(--ifm-color-content);
1519
}

src/theme/DocItem/Layout/index.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import DocItemContent from '@theme/DocItem/Content'
1313
import DocBreadcrumbs from '@theme/DocBreadcrumbs'
1414
import CopyPageButton from '@site/src/components/CopyPageButton'
1515
import DocH1CopyPageWrapper from '@site/src/components/DocH1CopyPageWrapper'
16-
import FeedbackWidget from '../../../components/FeedbackWidget'
1716
import styles from './styles.module.css'
1817

1918
const SITE_URL = 'https://docs.metamask.io'
@@ -73,7 +72,6 @@ function useDocTOC() {
7372
export default function DocItemLayout({ children }) {
7473
const docTOC = useDocTOC()
7574
const structuredData = useStructuredData()
76-
const { metadata } = useDoc()
7775
return (
7876
<div className="row">
7977
{structuredData && (
@@ -91,7 +89,6 @@ export default function DocItemLayout({ children }) {
9189
<DocH1CopyPageWrapper />
9290
<CopyPageButton />
9391
<DocItemContent>{children}</DocItemContent>
94-
<FeedbackWidget key={metadata.permalink} />
9592
<DocItemFooter />
9693
</article>
9794
<DocItemPaginator />

0 commit comments

Comments
 (0)