-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Pull code examples from fix-light-theme branches * Edit tutorials to reflect changes * Pull next.config.mjs from passkeys tutorial * Fix typo * Implement requested changes * Minor fixes * Get SafeThemeProvider from passkeys react repo * Implement requested changes * Upgrade dependencies * Get latest changes from nuxt repo
- Loading branch information
Showing
21 changed files
with
6,247 additions
and
7,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
html, | ||
body { | ||
max-width: 100vw; | ||
overflow-x: hidden; | ||
} | ||
|
||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
html { | ||
color-scheme: dark; | ||
} | ||
svg { | ||
fill: white; | ||
} | ||
} | ||
|
||
h1, | ||
h2, | ||
h3 { | ||
margin-top: 40px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
border: none; | ||
background: #00e673; | ||
color: black; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
margin: 10px 0; | ||
} | ||
|
||
input { | ||
padding: 10px; | ||
border-radius: 5px; | ||
border: 1px solid #ccc; | ||
margin: 10px 0; | ||
} | ||
|
||
button:disabled { | ||
background: #ccc; | ||
color: #666; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
webpack (config, { isServer }) { | ||
// Configures webpack to handle SVG files with SVGR. SVGR optimizes and transforms SVG files | ||
// into React components. See https://react-svgr.com/docs/next/ | ||
|
||
// Grab the existing rule that handles SVG imports | ||
// @ts-ignore - rules is a private property that is not typed | ||
const fileLoaderRule = config.module.rules.find(rule => | ||
rule.test?.test?.('.svg') | ||
) | ||
|
||
config.module.rules.push( | ||
// Reapply the existing rule, but only for svg imports ending in ?url | ||
{ | ||
...fileLoaderRule, | ||
test: /\.svg$/i, | ||
resourceQuery: /url/ // *.svg?url | ||
}, | ||
// Convert all other *.svg imports to React components | ||
{ | ||
test: /\.svg$/i, | ||
issuer: fileLoaderRule.issuer, | ||
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] }, // exclude if *.svg?url | ||
use: ['@svgr/webpack'] | ||
} | ||
) | ||
|
||
// Modify the file loader rule to ignore *.svg, since we have it handled now. | ||
fileLoaderRule.exclude = /\.svg$/i | ||
|
||
return config | ||
} | ||
} | ||
|
||
export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
html, | ||
body { | ||
max-width: 100vw; | ||
overflow-x: hidden; | ||
} | ||
|
||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
} | ||
|
||
a { | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
html { | ||
color-scheme: dark; | ||
} | ||
svg { | ||
fill: white; | ||
} | ||
} | ||
|
||
h1, | ||
h2, | ||
h3 { | ||
margin-top: 40px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
border: none; | ||
background: #00e673; | ||
color: black; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
margin: 10px 0; | ||
} | ||
|
||
input { | ||
padding: 10px; | ||
border-radius: 5px; | ||
border: 1px solid #ccc; | ||
margin: 10px 0; | ||
} | ||
|
||
button:disabled { | ||
background: #ccc; | ||
color: #666; | ||
} |
Oops, something went wrong.