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

feat([sc-9893]): improve page design #10

Merged
merged 2 commits into from
Dec 21, 2023
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
Binary file added docs/public/img/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/img/logo-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
background: linear-gradient(to bottom,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 1) 300px),
fixed 0 0 / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0);
}

.dark body {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #111 300px),
fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0),
fixed 10px 10px / 20px 20px radial-gradient(#313131 1px, transparent 0);
}
10 changes: 6 additions & 4 deletions docs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",

// Or if using `src` directory:
'./src/**/*.{js,ts,jsx,tsx,mdx}',
"./src/**/*.{js,ts,jsx,tsx,mdx}",
"./theme.config.tsx",
],
darkMode: "class",
theme: {
extend: {},
},
Expand Down
12 changes: 11 additions & 1 deletion docs/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import Image from "next/image"

import LogoLight from "./public/img/logo-light.png"
import LogoDark from "./public/img/logo-dark.png"

const REPO_BASE = "https://github.com/internet-identity-labs/nfid"
const theme = {
logo: (
<div>
<strong>@nfid</strong>/identity-kit
<div className="flex items-center dark:hidden">
<Image src={LogoLight} alt="logo" width={67} height={32} />
</div>
<div className="items-center hidden dark:flex">
<Image src={LogoDark} alt="logo" width={67} height={32} />
</div>
</div>
),
docsRepositoryBase: REPO_BASE,
Expand Down
Loading