Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/components/DiscourseComment/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ export default function DiscourseComment(props) {
const { postUrl } = props
useEffect(() => {
const url = window.location.href
if (!url.includes('https://web3auth.io/')) {
if (!url.includes('https://metamask.io/')) {
return
} else {
window.DiscourseEmbed = {
discourseUrl: 'https://web3auth.io/community/',
discourseUrl: 'https://builder.metamask.io/',
discourseEmbedUrl: postUrl,
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/PregenerateWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function LookupAPIPage() {

const [formData, setFormData] = useState({
verifier: 'w3a-google-demo',
verifierId: 'devrel@web3auth.io',
verifierId: 'devrel@metamask.io',
web3AuthNetwork: 'sapphire_mainnet',
clientId:
'BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ',
Expand Down
2 changes: 1 addition & 1 deletion src/components/PregenrateSmartAccount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function LookupSCWAPIPage() {

const [formData, setFormData] = useState({
verifier: 'w3a-google-demo',
verifierId: 'devrel@web3auth.io',
verifierId: 'devrel@metamask.io',
web3AuthNetwork: 'sapphire_mainnet',
clientId:
'BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ',
Expand Down
6 changes: 3 additions & 3 deletions src/components/SEO/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export default function SEO(props) {
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@MetaMask" />
<meta name="twitter:creator" content="@MetaMask" />
{/* {title ? <meta name="twitter:title" content={title} /> : <meta name="twitter:title" content="Documentation | Web3Auth" />}
{title ? <meta name="twitter:title" content={title} /> : <meta name="twitter:title" content="Documentation | MetaMask" />}
{description ? (
<meta name="twitter:description" content={description} />
) : (
<meta
name="twitter:description"
content="Web3Auth is simple, non-custodial auth infrastructure that enables Web3 wallets and applications to provide seamless user logins for both mainstream and native Web3 users."
content="MetaMask is the leading self-custodial wallet. Build with the world's leading self-custodial crypto wallet through MetaMask developer documentation."
/>
)} */}
)}
{image ? (
<meta name="twitter:image" content={image} />
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
font-weight: 400;
font-size: 14px;
line-height: 125%;
box-sizing: border-box;
}

.control {
Expand All @@ -31,8 +32,7 @@
}

.controlFocused {
box-shadow: 0 0 0 2px
rgb(var(--ifm-color-primary-r) var(--ifm-color-primary-g) var(--ifm-color-primary-b) / 20%);
box-shadow: 0 0 0 2px rgb(var(--ifm-color-primary-r) var(--ifm-color-primary-g) var(--ifm-color-primary-b) / 20%);
border-color: var(--ifm-color-primary);
}

Expand Down Expand Up @@ -189,6 +189,8 @@
margin-top: 4px;
max-height: 300px;
overflow-y: auto;
width: 100%;
box-sizing: border-box;
}

.menuList {
Expand Down Expand Up @@ -248,11 +250,12 @@
}

/* Mobile responsive styles */
@media (width <= 768px) {
@media (width <=768px) {
.customSelect {
min-width: 100%;
max-width: 100%;
width: 100%;
position: relative;
}

.control {
Expand All @@ -262,6 +265,7 @@
min-height: 48px;
height: 48px;
max-height: none;
box-sizing: border-box;
}

.controlExpanded {
Expand All @@ -271,5 +275,72 @@
.menu {
width: 100%;
min-width: 100%;
max-width: 100%;
left: 0;
right: 0;
box-sizing: border-box;
max-height: 250px;
}

.valueContainer {
padding: 8px 12px;
box-sizing: border-box;
}

.multiValue {
max-width: calc(100% - 16px);
box-sizing: border-box;
}

.multiValueLabel {
max-width: 120px;
text-overflow: ellipsis;
overflow: hidden;
}
}

/* Very small screens */
@media (width <=480px) {
.customSelect {
font-size: 13px;
}

.control {
min-height: 44px;
height: 44px;
}

.valueContainer {
padding: 6px 10px;
}

.placeholder {
font-size: 13px;
padding: 4px 6px;
}

.multiValue {
font-size: 12px;
margin: 1px;
}

.multiValueLabel {
font-size: 12px;
padding: 3px 6px;
max-width: 100px;
}

.multiValueRemove {
padding: 3px 6px;
font-size: 14px;
}

.option {
padding: 6px 10px;
font-size: 13px;
}

.menu {
max-height: 200px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Badge from '@site/src/components/Badge'
import useDocusaurusContext from '@docusaurus/useDocusaurusContext'
import styles from './GuideCard.module.css'

interface GuideCardProps {
interface TutorialCardProps {
title: string
description: string
link: string
Expand All @@ -17,7 +17,7 @@ interface GuideCardProps {
activeTags?: string[]
}

export default function GuideCard({
export default function TutorialCard({
title,
description,
link,
Expand All @@ -28,7 +28,7 @@ export default function GuideCard({
type,
searchInput = '',
activeTags = [],
}: GuideCardProps) {
}: TutorialCardProps) {
const { siteConfig } = useDocusaurusContext()
const { baseUrl } = siteConfig

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
box-sizing: border-box;
}

.card:hover {
Expand All @@ -42,6 +44,7 @@
height: 200px;
overflow: hidden;
background-color: var(--ifm-color-emphasis-100);
position: relative;
}

.image {
Expand Down Expand Up @@ -134,4 +137,72 @@ html[data-theme='dark'] .meta {
html[data-theme='dark'] mark {
background-color: #451a03;
color: #fbbf24;
}

/* Mobile responsive adjustments */
@media (width <=768px) {
.card {
margin: 0;
max-width: 100%;
}

.imageContainer {
height: 180px;
}

.content {
padding: 20px;
}

.title {
font-size: 18px;
line-height: 1.3;
margin-bottom: 10px;
}

.description {
font-size: 14px;
line-height: 1.4;
}

.tagsContainer {
padding: 0 20px 20px;
gap: 6px;
}

.meta {
padding: 0 20px 20px;
font-size: 13px;
padding-top: 12px;
}
}

@media (width <=480px) {
.imageContainer {
height: 160px;
}

.content {
padding: 16px;
}

.title {
font-size: 16px;
margin-bottom: 8px;
}

.description {
font-size: 14px;
}

.tagsContainer {
padding: 0 16px 16px;
gap: 4px;
}

.meta {
padding: 0 16px 16px;
font-size: 12px;
padding-top: 10px;
}
}
Loading
Loading