Skip to content

Commit

Permalink
sc-12470 Beacon FE: implement the LeftNavBar component view (#122)
Browse files Browse the repository at this point in the history
Co-authored-by: Cletus Razakou <masskoder@gmail.com>
  • Loading branch information
elysee15 and masskoder committed Jan 30, 2023
1 parent b8b5e9b commit 49f0761
Show file tree
Hide file tree
Showing 30 changed files with 1,093 additions and 19 deletions.
2 changes: 2 additions & 0 deletions web/beacon-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ locales
*.njsproj
*.sln
*.sw?

public/tailwind.css
15 changes: 11 additions & 4 deletions web/beacon-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,30 @@
"@lingui/cli": "^3.16.1",
"@lingui/core": "^3.16.1",
"@lingui/macro": "^3.16.1",
"@sentry/react": "^7.33.0",
"@sentry/tracing": "^7.33.0",
"babel-plugin-macros": "^3.1.0",
"@radix-ui/react-avatar": "^1.0.1",
"@rotational/beacon-core": "^1.0.0",
"@rotational/beacon-foundation": "^1.0.0",
"@sentry/react": "^7.33.0",
"@sentry/tracing": "^7.33.0",
"@tanstack/react-query": "^4.22.4",
"@testing-library/react": "^13.4.0",
"@types/styled-components": "^5.1.26",
"axios": "^1.2.5",
"babel-plugin-macros": "^3.1.0",
"class-variance-authority": "^0.4.0",
"classnames": "^2.3.2",
"framer-motion": "^8.5.4",
"localforage": "^1.10.0",
"react": "^18.2.0",
"react-aria": "^3.22.0",
"react-dom": "^18.2.0",
"react-lazy-load-image-component": "^1.5.6",
"react-router-dom": "^6.7.0",
"react-stately": "^3.20.0",
"tailwind-merge": "^1.8.1"
"react-use": "^17.4.0",
"styled-components": "^5.3.6",
"tailwind-merge": "^1.8.1",
"type-fest": "^3.5.3"
},
"devDependencies": {
"@babel/core": "^7.20.12",
Expand Down
144 changes: 137 additions & 7 deletions web/beacon-app/public/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -3475,6 +3475,10 @@ video {
z-index: -50;
}

.z-\[1\] {
z-index: 1;
}

.order-1 {
order: 1;
}
Expand Down Expand Up @@ -6538,6 +6542,10 @@ video {
min-height: fit-content;
}

.min-h-\[8px\] {
min-height: 8px;
}

.w-0 {
width: 0px;
}
Expand Down Expand Up @@ -6927,10 +6935,6 @@ video {
max-width: 1536px;
}

.max-w-\[600px\] {
max-width: 600px;
}

.flex-1 {
flex: 1 1 0%;
}
Expand Down Expand Up @@ -60014,6 +60018,11 @@ video {
background-color: rgb(217 217 217 / 1);
}

.bg-\[\#F7F9FB\] {
--tw-bg-opacity: 1;
background-color: rgb(247 249 251 / var(--tw-bg-opacity));
}

.bg-opacity-0 {
--tw-bg-opacity: 0;
}
Expand Down Expand Up @@ -88361,6 +88370,10 @@ video {
font-weight: 900;
}

.\!font-medium {
font-weight: 500 !important;
}

.uppercase {
text-transform: uppercase;
}
Expand Down Expand Up @@ -137658,6 +137671,10 @@ video {
transition-duration: 1000ms;
}

.duration-\[350ms\] {
transition-duration: 350ms;
}

.ease-linear {
transition-timing-function: linear;
}
Expand Down Expand Up @@ -137695,6 +137712,49 @@ video {
content: var(--tw-content);
}

.before\:-ml-0\.5::before {
content: var(--tw-content);
margin-left: -0.125rem;
}

.before\:-ml-0::before {
content: var(--tw-content);
margin-left: -0px;
}

.before\:h-1::before {
content: var(--tw-content);
height: 0.25rem;
}

.before\:\!h-2::before {
content: var(--tw-content);
height: 0.5rem !important;
}

.before\:w-1::before {
content: var(--tw-content);
width: 0.25rem;
}

.before\:\!w-2::before {
content: var(--tw-content);
width: 0.5rem !important;
}

.before\:rounded-full::before {
content: var(--tw-content);
border-radius: 9999px;
}

.first\:pt-2:first-child {
padding-top: 0.5rem;
}

.last\:mb-0:last-child {
margin-bottom: 0px;
}

.hover\:max-w-\[50\%\]:hover {
max-width: 50%;
}
Expand All @@ -137703,13 +137763,67 @@ video {
border-radius: 9999px;
}

.hover\:bg-secondary-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(73 95 109 / var(--tw-bg-opacity));
}

.hover\:bg-icon-hover:hover {
background-color: rgba(217, 217, 217, 0.4);
}

.hover\:bg-secondary-800:hover {
--tw-bg-opacity: 1;
background-color: rgb(73 95 109 / var(--tw-bg-opacity));
[dir="ltr"] .ltr\:mr-3 {
margin-right: 0.75rem;
}

[dir="ltr"] .ltr\:pl-6 {
padding-left: 1.5rem;
}

[dir="ltr"] .before\:ltr\:mr-5::before {
content: var(--tw-content);
margin-right: 1.25rem;
}

[dir="ltr"] .before\:ltr\:\!mr-\[18px\]::before {
content: var(--tw-content);
margin-right: 18px !important;
}

[dir="rtl"] .rtl\:ml-3 {
margin-left: 0.75rem;
}

[dir="rtl"] .rtl\:pr-6 {
padding-right: 1.5rem;
}

[dir="rtl"] .before\:rtl\:ml-5::before {
content: var(--tw-content);
margin-left: 1.25rem;
}

[dir="rtl"] .before\:rtl\:\!ml-\[18px\]::before {
content: var(--tw-content);
margin-left: 18px !important;
}

@media (prefers-color-scheme: dark) {
.dark\:\!text-white {
--tw-text-opacity: 1 !important;
color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
}

.dark\:before\:\!bg-white::before {
content: var(--tw-content);
--tw-bg-opacity: 1 !important;
background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
}

.dark\:hover\:text-white:hover {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
}

@media (min-width: 640px) {
Expand All @@ -137722,7 +137836,23 @@ video {
}
}

@media (min-width: 768px) {
.md\:w-72 {
width: 18rem;
}
}

@media (min-width: 1280px) {
.xl\:fixed {
position: fixed;
}
}

@media (min-width: 1536px) {
.\32xl\:w-80 {
width: 20rem;
}

.\32xl\:pt-80 {
padding-top: 20rem;
}
Expand Down
1 change: 1 addition & 0 deletions web/beacon-app/src/application/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './routes';
1 change: 1 addition & 0 deletions web/beacon-app/src/application/routes/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './paths';
7 changes: 7 additions & 0 deletions web/beacon-app/src/application/routes/paths.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export const routes = {
home: '/',
projects: '/projects',
docs: '/docs',
supports: '/supports',
profile: '/profile',
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Meta, Story } from '@storybook/react';

import LeftSideBar from './LeftSidebar';

export default {
title: 'component/layout/LeftSideBar',
component: LeftSideBar,
} as Meta<typeof LeftSideBar>;

const Template: Story<typeof LeftSideBar> = (args) => (
<div>
<LeftSideBar {...args} />
</div>
);

export const Default = Template.bind({});
Default.args = {};
Empty file.
Loading

0 comments on commit 49f0761

Please sign in to comment.