-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): implement the sidebar component for unilectives (#20)
* feat: finished navbar header * feat: uni-lectives sidebar finished * fix: fixed styling issues on sidebar footer * style: fix lint issues on example storybook components * fix: added TT Commons Pro Variable font and made sidebar more pixel perfect * chore: added changelog for implementing the sidebar component * fix: changed the use of interfaces to typescript types
- Loading branch information
1 parent
cdfaaf9
commit 8eea21b
Showing
33 changed files
with
537 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## 1.0.0 (2023-03-30) | ||
|
||
### Added | ||
- Implemented the sidebar component. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
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.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 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
16 changes: 8 additions & 8 deletions
16
...book/src/stories/Introduction.stories.mdx → ...stories/examples/Introduction.stories.mdx
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
2 changes: 1 addition & 1 deletion
2
.../storybook/src/stories/Button.stories.tsx → ...tories/examples/button/Button.stories.tsx
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../storybook/src/stories/Header.stories.tsx → ...tories/examples/header/Header.stories.tsx
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
apps/storybook/src/stories/Page.stories.tsx → ...rc/stories/examples/page/Page.stories.tsx
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
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
apps/storybook/src/stories/main/sidebar/Sidebar.stories.tsx
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { ComponentMeta, ComponentStory } from '@storybook/react'; | ||
|
||
import { Sidebar } from './Sidebar'; | ||
|
||
export default { | ||
title: 'Main/Sidebar', | ||
component: Sidebar, | ||
argTypes: { | ||
theme: { control: 'select', options: ['light', 'dark'] }, | ||
}, | ||
} as ComponentMeta<typeof Sidebar>; | ||
|
||
const Template: ComponentStory<typeof Sidebar> = (args) => <Sidebar {...args} />; | ||
|
||
// Temp nav details | ||
const baseArgs = { | ||
name: 'Uni-lectives', | ||
icon: 'src/assets/icons/cselectives-icon.png', | ||
onClick: () => {}, | ||
onLogout: () => {}, | ||
content: [ | ||
{ | ||
name: 'Browse Courses', | ||
icon: 'src/assets/icons/book-open.svg', | ||
onClick: () => {}, | ||
}, | ||
{ | ||
name: 'My Reviews', | ||
icon: 'src/assets/icons/edit.svg', | ||
onClick: () => {}, | ||
}, | ||
{ | ||
name: 'Terms and Conditions', | ||
icon: 'src/assets/icons/terms-and-conditions.svg', | ||
onClick: () => {}, | ||
}, | ||
], | ||
}; | ||
|
||
export const DarkTheme = Template.bind({}); | ||
DarkTheme.args = { | ||
theme: 'dark', | ||
...baseArgs, | ||
}; | ||
|
||
export const LightTheme = Template.bind({}); | ||
LightTheme.args = { | ||
theme: 'light', | ||
...baseArgs, | ||
}; |
Oops, something went wrong.