Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gab committed Feb 16, 2024
2 parents 7637a8f + 6eda91b commit 9844ba3
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Home() {
<div className="flex px-5 pt-16 pb-12 mb-12 lg:px-36 min-h-[calc(100vh-180px)]">
<div className="flex flex-col gap-8 w-full xl:pr-32 lg:w-1/2">
<div className="flex flex-col gap-0">
<p className=" text-[72px] lg:mt-40 leading-[70px] lg:text-[90px] bg-gradient-to-r from-red-600 via-red-200 to-emerald- 4 inline-block text-transparent bg-clip-text">
<p className=" text-[72px] lg:mt-40 leading-[70px] lg:text-[90px] bg-gradient-to-r dark:from-red-600 dark:via-red-200 to-emerald- 4 inline-block text-transparent bg-clip-text from-red-800 via-red-700">
Kurama-chat
<br /> anytime, anywhere
</p>
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/components/Chat/ChatHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ function ChatHeader({ roomId }: { roomId: string }) {
return (
<div className="basis-[7%] flex justify-between items-center p-3 font-medium dark:bg-neutral-800 bg-slate-200 rounded-lg">
<p className="text-xl dark:text-white">{room?.title}</p>
<button type="submit" className="btn bg-red-600 hover:bg-red-800">
<button
type="submit"
className="btn bg-red-600 hover:bg-red-800 text-sm sm:text-base"
>
Copy Room ID
</button>
<Popup
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Home/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function LoginForm() {
<div className="flex gap-5 items-center">
<button
type="submit"
className="flex hover:bg-red-800 justify-center items-center w-40 btn bg-red-500 "
className="flex hover:bg-red-800 justify-center items-center py-2 w-full sm:w-40 h-auto btn bg-red-500 "
>
{isLoading ? (
<ClipLoader color="white" size={20} />
Expand All @@ -64,12 +64,12 @@ function LoginForm() {
)}
</button>
<Link legacyBehavior href="signin">
<a className="flex hover:bg-red-800 justify-center items-center w-40 btn bg-red-500 ">
<a className="flex hover:bg-red-800 justify-center items-center py-2 w-full sm:w-40 h-auto btn bg-red-500 ">
Sign In
</a>
</Link>
<Link legacyBehavior href="signup">
<a className="flex hover:bg-red-800 justify-center items-center w-40 btn bg-red-500 ">
<a className="flex hover:bg-red-800 justify-center items-center py-2 w-full sm:w-40 h-auto btn bg-red-500 ">
Sign Up
</a>
</Link>
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/components/Home/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ function Navbar() {
<>
<Link
id={`${label}${index}`}
className="flex flex-col items-center"
className="flex flex-col items-center dark:text-white"
href={link}
key={index}
target={externalPage ? "_blank" : "_self"}
>
{React.createElement(icon, { className: "w-10 h-10" })}
{React.createElement(icon, {
className: "w-10 h-10 dark:text-white",
})}{" "}
{label}
</Link>
{title && (
Expand Down Expand Up @@ -81,12 +83,14 @@ function Navbar() {
{icon ? (
<Link
id={`${label}${index}`}
className="flex gap-5 items-center justify-center"
className="flex gap-5 items-center justify-center dark:text-white"
href={link}
key={index}
target={externalPage ? "_blank" : "_self"}
>
{React.createElement(icon, { className: "w-6 h-6" })}
{React.createElement(icon, {
className: "w-6 h-6 dark:text-white",
})}{" "}
<span className="pt-1">{label}</span>
</Link>
) : (
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/Room/RoomSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ function RoomSideBar() {
};

return (
<div className="overflow-y-scroll custom-scrollbar w-20 h-screen dark:bg-neutral-800 bg-slate-200 sm:w-1/4 rounded-lg">
<div className="overflow-y-scroll custom-scrollbar w-full sm:w-20 h-screen dark:bg-neutral-800 bg-slate-200 md:w-1/4 rounded-lg">
<div className="flex justify-center">
<button
type="submit"
className="px-4 pt-1 h-10 text-lg font-semibold text-white rounded-full mt-5 bg-red-600 hover:bg-red-500 transition duration-300 "
className="px-4 pt-1 h-10 text-sm sm:text-lg font-semibold text-white rounded-full mt-5 bg-red-600 hover:bg-red-500 transition duration-300"
onClick={logout}
>
Leave
</button>
</div>
<ThemeSwitcher />
<p className="flex flex-col px-2 py-5 sm:px-5 h-[56px] text-xl sm:text-2xl font-semibold dark:text-white">
<p className="flex flex-row items-center px-2 py-5 sm:px-15 h-[56px] text-sm sm:text-lg md:text-xl lg:text-2xl font-semibold dark:text-white">
Rooms 🌐
</p>
{rooms.map((room: IRoom, index) => {
Expand All @@ -58,7 +58,7 @@ function RoomSideBar() {
</div>
);
})}
<p className="flex flex-col px-2 pt-3 text-lg font-semibold sm:text-xl sm:px-5 dark:text-white">
<p className="flex flex-row items-center px-2 py-5 sm:px-15 h-[56px] text-sm sm:text-lg md:text-xl lg:text-2xl font-semibold dark:text-white">
Rooms 🔒
</p>
<div className="py-1">
Expand Down
3 changes: 3 additions & 0 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module.exports = {
secondary: "rgb(139 132 245)",
"custom-gray": "#222222",
},
maxWidth: {
"1/5": "20%",
},
backgroundImage: {
gradient:
"linear-gradient(90deg, #6C63FF 0%, #C100D4 50%, #82ECEE 100%)",
Expand Down

0 comments on commit 9844ba3

Please sign in to comment.