Skip to content

Commit

Permalink
fix: iron out a few styling kinks (#5)
Browse files Browse the repository at this point in the history
port css classes and tailwind config over from w3ui's console example
  • Loading branch information
travis authored Oct 12, 2023
1 parent fa59625 commit 8d0b37a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 29 deletions.
1 change: 0 additions & 1 deletion public/next.svg

This file was deleted.

1 change: 0 additions & 1 deletion public/vercel.svg

This file was deleted.

4 changes: 4 additions & 0 deletions public/w3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 5 additions & 21 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,10 @@
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
.w3ui-button {
@apply text-white bg-slate-800 hover:bg-blue-800 rounded-md py-2 px-8 text-sm font-medium transition-colors ease-in;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
.authenticator {
@apply bg-gray-900 bg-logo bg-center bg-no-repeat w-full h-screen flex flex-col justify-center items-center;
}
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import './globals.css'
import type { Metadata } from 'next'

export const metadata: Metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
title: 'w3up console',
description: 'web3.storage file uploader',
}

export default function RootLayout ({
Expand Down
9 changes: 5 additions & 4 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ const config: Config = {
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
'logo': 'url("/w3.svg")'
},
},
colors: {
'gray-dark': '#1d2027'
}
}
},
plugins: [],
}
Expand Down

0 comments on commit 8d0b37a

Please sign in to comment.