-
Notifications
You must be signed in to change notification settings - Fork 20
[ASKRS-10] Brand Setting #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hunainasif
wants to merge
14
commits into
stage
Choose a base branch
from
Brand_Setting
base: stage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d96cbe4
Accordion added and some things are remaining
c8da90d
Brand Settings Design complete
f997a3e
Minor Fixings
48b5aed
Comments resolve
0a4d55c
build ready branch
acbe060
fix: change some files and update some design related stuff
40e43c3
fix:Update some design related stuff
32deb11
fix:minor changes in the files related to design
0f9444c
Merge branch 'stage' into Brand_Setting
hunainasif c731774
fix: Update the design related stuff which is requested in the commen…
546d1dd
Update the design as per new requirements
5cda047
Add the Logo Icon in the theme component
4571b93
Update some design related stuff that is requested in the comments
9a08a52
fix: Scroll Issue Fix which is appeared on the Big Screens
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
66 changes: 66 additions & 0 deletions
66
src/app/(admin)/dashboard/_components/DashboardSideBar/DashboardSideBar.tsx
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| 'use client' | ||
|
|
||
| import React, { useState } from 'react' | ||
| import Image from 'next/image' | ||
| import Link from 'next/link' | ||
| import { usePathname } from 'next/navigation' | ||
|
|
||
| import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' | ||
|
|
||
| export default function DashboardSideBar() { | ||
| const pathname = usePathname() | ||
| const url = pathname?.split('/')[2] || '' | ||
|
|
||
| const links = [ | ||
| { | ||
| id: 1, | ||
| icon: '/assets/brand-settings/bucket.svg', | ||
| title: 'Brand', | ||
| url: 'brandsettings', | ||
| }, | ||
| { | ||
| id: 2, | ||
| icon: '/assets/brand-settings/book.svg', | ||
| title: 'Knowledge base settings', | ||
| url: 'knowledgebase', | ||
| }, | ||
| ] | ||
| return ( | ||
| <div className='h-full w-full flex-[2] bg-dashboardSecondary'> | ||
| <div className='m-auto h-full w-[90%] pt-5'> | ||
| <div className='h-[5%]'> | ||
| <Image src={`/logo/logo.svg`} width={150} height={150} alt='' /> | ||
| </div> | ||
| <div className='mt-3 flex h-[93%] w-full flex-col justify-between pt-5'> | ||
| <ul className='flex flex-col space-y-4'> | ||
| {links.map((item, i) => ( | ||
| <Link href={`/dashboard/${item.url}`} key={i}> | ||
| <li | ||
| className={`flex w-full cursor-pointer space-x-2 rounded-lg p-3 ${item.url === url ? 'bg-dashboardActive' : ''}`} | ||
| > | ||
| <img src={item.icon} alt='' /> | ||
| <span>{item.title}</span> | ||
| </li> | ||
| </Link> | ||
| ))} | ||
| </ul> | ||
| <div className='flex items-center justify-between space-x-2 border-t-2 border-solid border-dashboardBorder p-3'> | ||
| <div className='h-11 w-11'> | ||
| <Avatar> | ||
| <AvatarImage src='/assets/Avatar.png' /> | ||
| <AvatarFallback>CN</AvatarFallback> | ||
| </Avatar> | ||
| </div> | ||
| <div className='flex-cl flex flex-col text-base'> | ||
| <span className='font-semibold'>Admin</span> | ||
| <span className='text-base text-gray-600'>admin@ripeseed.io</span> | ||
| </div> | ||
| <div> | ||
| <Image src={`/assets/icon.svg`} width={30} height={30} alt='' /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ) | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.