Skip to content

Commit

Permalink
Merge pull request #13 from Mgkusumaputra/pp-38-setting-up-multi-themes
Browse files Browse the repository at this point in the history
Release-As: v0.2.0
  • Loading branch information
Mgkusumaputra authored Jul 21, 2024
2 parents 83356fa + 9b86d69 commit 3c297a8
Show file tree
Hide file tree
Showing 8 changed files with 1,050 additions and 2,671 deletions.
6 changes: 3 additions & 3 deletions app/components/treeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default function TreeButton({ href, title }: TreeButtonProps) {
<Link
href={href}
className={clsx(
'group flex w-full items-center justify-center rounded-xl border border-[#F2F3F4] px-2 py-2',
'transition-colors hover:bg-[#F2F3F4] hover:shadow-xl',
'group flex w-full items-center justify-center rounded-xl border border-typography-primary px-2 py-2',
'transition-colors hover:bg-typography-primary hover:shadow-xl',
)}
>
<p className='text-lg font-medium text-[#F2F3F4] group-hover:text-[#2C3E50]'>
<p className='text-lg font-medium text-typography-primary group-hover:text-secondary'>
{title}
</p>
</Link>
Expand Down
30 changes: 0 additions & 30 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,33 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@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));
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
}
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang='en'>
<html lang='en' className='theme-cool-blue'>
<body
className={`${plusJakartaSans.className} flex h-screen justify-center bg-gradient-to-br from-[#2C3E50] to-[#BDC3C7]`}
className={`${plusJakartaSans.className} flex h-screen justify-center bg-gradient-to-br from-secondary to-primary`}
>
<main className='w-full max-w-screen-sm'>{children}</main>
</body>
Expand Down
4 changes: 2 additions & 2 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ export default function NotFound() {
return (
<div className='flex h-screen w-screen items-center justify-center gap-2 text-center'>
<div>
<h1 className='text-xl font-normal text-[#F2F3F4]'>
<h1 className='text-xl font-normal text-typography-primary'>
<span className='underline-offset-3 font-semibold underline'>
{pathname}
</span>{' '}
is not found
</h1>
<p className='text-xs font-normal text-[#E5E7E9]'>
<p className='text-xs font-normal text-typography-secondary'>
Redirecting in {seconds} seconds...
</p>
</div>
Expand Down
6 changes: 4 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ export default function Home() {
className='rounded-xl'
/>
<div className='flex flex-col gap-2'>
<h1 className='text-xl font-semibold text-[#F2F3F4]'>@Username</h1>
<p className='text-xs font-normal text-[#E5E7E9]'>
<h1 className='text-xl font-semibold text-typography-primary'>
@Username
</h1>
<p className='text-xs font-normal text-typography-secondary'>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut auctor
consectetur dictum.
</p>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linktion",
"version": "0.1.0",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down Expand Up @@ -42,6 +42,7 @@
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.1",
"tw-colors": "^3.3.1",
"typescript": "^5"
},
"lint-staged": {
Expand Down
Loading

0 comments on commit 3c297a8

Please sign in to comment.