-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refined the tailwind configuration (#60)
@kanta1207 Thank you for approving!
- Loading branch information
1 parent
e6021f5
commit cf5a5ce
Showing
6 changed files
with
39 additions
and
166 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
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 |
---|---|---|
@@ -1,20 +1,32 @@ | ||
'use client'; | ||
|
||
import { Button, Icon } from '@/components/ui'; | ||
import { Icon } from '@/components/ui'; | ||
|
||
import React from 'react'; | ||
|
||
export const MobileHeader = () => { | ||
return ( | ||
<header className="bg-popover sticky top-0 z-40 w-full"> | ||
<div className="flex h-16 items-center justify-between px-5"> | ||
<Button variant="ghost" size="icon" onClick={() => {}} className="hover:bg-popover"> | ||
<Icon iconName="arrowLeft" color="popover-foreground" /> | ||
<header className="bg-white sticky top-0 z-40 w-full"> | ||
<div className="flex px-2 h-12 items-center justify-between"> | ||
<Button> | ||
<Icon iconName="arrowLeft" color="black" /> | ||
</Button> | ||
<Button variant="ghost" size="icon" onClick={() => {}} className="hover:bg-popover"> | ||
<Icon iconName="menuCircle" color="popover-foreground" /> | ||
<Button> | ||
<Icon iconName="menuCircle" color="black" /> | ||
</Button> | ||
</div> | ||
</header> | ||
); | ||
}; | ||
|
||
interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
} | ||
|
||
const Button: React.FC<IButtonProps> = ({ children, ...props }) => { | ||
return ( | ||
<button className="h-full aspect-square flex items-center justify-center" {...props}> | ||
{children} | ||
</button> | ||
); | ||
}; |
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 |
---|---|---|
@@ -1,86 +1,3 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: #abd4cf33; | ||
--foreground: #222222; | ||
|
||
--card: #ffffff; | ||
--card-foreground: #222222; | ||
|
||
--popover: #ffffff; | ||
--popover-foreground: #222222; | ||
|
||
--primary: #6ab3ab; | ||
--primary-foreground: #ffffff; | ||
|
||
/* TODO : make it sure this is the right secondary color */ | ||
--secondary: #777777; | ||
--secondary-foreground: #222222; | ||
|
||
--muted: #7bb6ad; | ||
--muted-foreground: #ffffff; | ||
|
||
--accent: #fcd884; | ||
--accent-foreground: #222222; | ||
|
||
--successful: #6ab3ab; | ||
--successful-foreground: #ffffff; | ||
|
||
--destructive: #c44141; | ||
--destructive-foreground: #ffffff; | ||
|
||
--border: #d9d9d9; | ||
--input: #d9d9d9; | ||
--ring: #7bb6ad; | ||
|
||
--radius: 3.125rem; | ||
} | ||
|
||
.dark { | ||
--background: #abd4cf33; | ||
--foreground: #222222; | ||
|
||
--card: #ffffff; | ||
--card-foreground: #222222; | ||
|
||
--popover: #ffffff; | ||
--popover-foreground: #222222; | ||
|
||
--primary: #6ab3ab; | ||
--primary-foreground: #ffffff; | ||
|
||
/* TODO : make it sure this is the right secondary color */ | ||
--secondary: #777777; | ||
--secondary-foreground: #222222; | ||
|
||
--muted: #7bb6ad; | ||
--muted-foreground: #ffffff; | ||
|
||
--accent: #fcd884; | ||
--accent-foreground: #222222; | ||
|
||
--successful: #6ab3ab; | ||
--successful-foreground: #ffffff; | ||
|
||
--destructive: #c44141; | ||
--destructive-foreground: #ffffff; | ||
|
||
--border: #d9d9d9; | ||
--input: #d9d9d9; | ||
--ring: #7bb6ad; | ||
|
||
--radius: 3.125rem; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
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