Skip to content

Commit

Permalink
Merge pull request #89 from Dushyantbha012/main
Browse files Browse the repository at this point in the history
UI Updates
  • Loading branch information
Pranav0-0Aggarwal authored Dec 3, 2024
2 parents 66f86b7 + 81ebe4f commit 70f6dc3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/Navigation/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export function Navbar(props: { title?: string }) {
return (
<>
<header className="flex h-16 w-full items-center justify-between bg-[#333333] px-6">
<header className="flex w-full flex-row items-center justify-center align-middle">
< div className="flex h-16 items-center justify-between bg-[#333333] px-16 w-[50%] mt-3 rounded-3xl ">
<div className="flex items-center gap-4">
<div className="flex items-center gap-2">
<img src="/Pictopy.svg" alt="" />
Expand All @@ -15,6 +16,7 @@ export function Navbar(props: { title?: string }) {
Welcome {props.title || 'User'}
</span>
</div>
</div>
</header>
</>
);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Navigation/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Sidebar() {
}`;

return (
<div className="sidebar flex w-40 flex-col justify-between space-y-4 border-r border-gray-700 bg-[#333333] p-4 dark:border-gray-700">
<div className="sidebar flex w-40 flex-col justify-between space-y-4 border-r border-gray-700 bg-[#333333] p-4 dark:border-gray-700 m-4 rounded-3xl">
<div className="mt-2 flex flex-col gap-10">
<Link to="/home" className={linkClasses('/home')}>
<HomeIcon
Expand All @@ -34,7 +34,7 @@ function Sidebar() {
className="h-5 w-5"
fillColor={isActive('/ai-tagging') ? '#6465F3' : 'none'}
/>
<span className="font-sans">Ai tagging</span>
<span className="font-sans">AI Tagging</span>
</Link>

<Link to="/videos" className={linkClasses('/videos')}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layout/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
<Navbar />
<div className="sidebar flex" style={{ height: 'calc(100vh - 64px)' }}>
<Sidebar />
<div className="flex flex-1 overflow-x-auto bg-gray-900 p-4 text-white">
<div className="flex flex-1 overflow-x-auto bg-white p-4 text-gray-900">
{children}
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/SettingsPage/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ const Settings: React.FC = () => {

return (
<div className="container mx-auto flex-1 px-4 py-8">
<div className="space-y-6 rounded-lg bg-gray-800 p-6 shadow dark:bg-gray-800">
<div className="space-y-6 rounded-3xl bg-[#333333] p-6 shadow dark:bg-[#333333]">
<div>
<h2 className="mb-2 text-lg font-medium text-gray-50 dark:text-gray-50">
Current Folder Path
</h2>
<div className="rounded-md bg-gray-700 px-4 py-3 text-gray-300 dark:bg-gray-700 dark:text-gray-300">
<div className="rounded-md bg-[#414141] px-4 py-3 text-gray-300 dark:bg-[#414141] dark:text-gray-300">
{currentPath && <>{currentPath}</>}
</div>
</div>
<FolderPicker setFolderPath={handleFolderPathChange} />
<Button
onClick={handleDeleteCache}
variant="outline"
className="border-gray-500 text-gray-50 hover:bg-gray-700 dark:border-gray-500 dark:text-gray-50 dark:hover:bg-gray-700"
className="border-gray-500 text-gray-50 hover:bg-[#414141] dark:border-[#414141] dark:text-gray-50 dark:hover:bg-[#414141]"
>
<RefreshCwIcon className="mr-2 h-5 w-5 text-gray-50 dark:text-gray-50" />
Refresh Cache
Expand Down

0 comments on commit 70f6dc3

Please sign in to comment.