Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
seat-booking
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Syed Abdul Rahman
seat-booking
Commits
4d7406c1
Commit
4d7406c1
authored
Jun 19, 2025
by
Syed Abdul Rahman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Storybook alias import error fix
parent
05bbb12b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
75 deletions
+37
-75
main.js
.storybook/main.js
+30
-14
styles.module.css
src/components/Base/Button/styles.module.css
+1
-1
styles.module.css
src/components/Base/Legend/styles.module.css
+2
-2
styles.module.css
src/components/Layout/BookingWrapper/styles.module.css
+1
-1
Index.jsx
src/components/Layout/Header/Index.jsx
+0
-55
Index.jsx
src/components/Shared/LogoutButton/Index.jsx
+2
-2
styles.module.css
src/components/Shared/LogoutButton/styles.module.css
+1
-0
No files found.
.storybook/main.js
View file @
4d7406c1
import
{
mergeConfig
}
from
'vite'
;
import
path
from
'path'
;
/** @type { import('@storybook/react-vite').StorybookConfig } */
/** @type { import('@storybook/react-vite').StorybookConfig } */
const
config
=
{
const
config
=
{
"stories"
:
[
stories
:
[
"../src/**/*.mdx"
,
'../src/**/*.mdx'
,
"../src/components/**/*.stories.@(js|jsx|ts|tsx)"
,
'../src/components/**/*.stories.@(js|jsx|ts|tsx)'
],
],
"addons"
:
[
addons
:
[
"@chromatic-com/storybook"
,
'@chromatic-com/storybook'
,
"@storybook/addon-docs"
,
'@storybook/addon-docs'
,
"@storybook/addon-a11y"
,
'@storybook/addon-a11y'
,
"@storybook/addon-vitest"
,
'@storybook/addon-vitest'
],
],
"framework"
:
{
framework
:
{
"name"
:
"@storybook/react-vite"
,
name
:
'@storybook/react-vite'
,
"options"
:
{}
options
:
{}
},
// 👇 Add alias support here
viteFinal
:
async
(
config
,
{
configType
})
=>
{
return
mergeConfig
(
config
,
{
resolve
:
{
alias
:
{
'@components'
:
path
.
resolve
(
__dirname
,
'../src/components'
),
'@Base'
:
path
.
resolve
(
__dirname
,
'../src/components/Base'
),
'@Shared'
:
path
.
resolve
(
__dirname
,
'../src/components/Shared'
),
'@lib'
:
path
.
resolve
(
__dirname
,
'../src/lib'
),
'@assets'
:
path
.
resolve
(
__dirname
,
'../src/assets'
)
}
}
});
}
}
};
};
export
default
config
;
\ No newline at end of file
export
default
config
;
src/components/Base/Button/styles.module.css
View file @
4d7406c1
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
.lg
{
.lg
{
padding
:
0.
7
rem
3rem
;
padding
:
0.
5
rem
3rem
;
font-size
:
22px
;
font-size
:
22px
;
}
}
...
...
src/components/Base/Legend/styles.module.css
View file @
4d7406c1
...
@@ -27,12 +27,12 @@
...
@@ -27,12 +27,12 @@
.title
{
.title
{
color
:
white
;
color
:
white
;
font-family
:
"Poppins-Medium"
;
font-family
:
'Poppins-Medium'
;
font-size
:
14px
;
font-size
:
14px
;
}
}
@media
screen
and
(
min-width
:
768px
)
{
@media
screen
and
(
min-width
:
768px
)
{
.title
{
.title
{
font-size
:
2
2
px
;
font-size
:
2
0
px
;
}
}
}
}
src/components/Layout/BookingWrapper/styles.module.css
View file @
4d7406c1
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
}
}
.btn-wrapper
{
.btn-wrapper
{
padding
:
1em
0
;
padding
:
1
.5
em
0
;
}
}
@media
screen
and
(
min-width
:
768px
)
{
@media
screen
and
(
min-width
:
768px
)
{
...
...
src/components/Layout/Header/Index.jsx
View file @
4d7406c1
...
@@ -6,61 +6,6 @@ const Header = ({ children }) => {
...
@@ -6,61 +6,6 @@ const Header = ({ children }) => {
<
section
className=
{
styles
[
'header-wrapper'
]
}
>
<
section
className=
{
styles
[
'header-wrapper'
]
}
>
<
div
className=
{
styles
.
title
}
>
{
children
}
</
div
>
<
div
className=
{
styles
.
title
}
>
{
children
}
</
div
>
<
div
className=
{
styles
.
screenWrapper
}
>
<
div
className=
{
styles
.
screenWrapper
}
>
{
/* <svg viewBox="0 20 480 130" xmlns="http://www.w3.org/2000/svg">
<path
d="M 30 70 Q 240 20 450 70"
stroke="white"
stroke-width="3"
fill="none"
/>
<defs>
<mask id="glowMask">
<linearGradient
id="fadeGradient"
x1="0"
y1="70"
x2="0"
y2="150"
gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#9c6ad5" stop-opacity="1" />
<stop offset="60%" stop-color="#9c6ad5" stop-opacity="1" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="1" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="1" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="1" />
</linearGradient>
<path
d="
M 30 70
Q 240 20 450 70
L 500 150
L -20 150
Z"
fill="url(#fadeGradient)"
/>
</mask>
<linearGradient
id="glowColor"
x1="0"
y1="100"
x2="0"
y2="150"
gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#9c6ad5" stop-opacity="0.4" />
<stop offset="50%" stop-color="#9c6ad5" stop-opacity="0.2" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="0" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="0" />
<stop offset="100%" stop-color="#9c6ad5" stop-opacity="0" />
</linearGradient>
</defs>
<path
d="M 30 70 Q 240 20 450 70 L 500 150 L -20 150 Z"
fill="url(#glowColor)"
mask="url(#glowMask)"
/>
</svg> */
}
<
svg
viewBox=
"0 20 480 130"
xmlns=
"http://www.w3.org/2000/svg"
>
<
svg
viewBox=
"0 20 480 130"
xmlns=
"http://www.w3.org/2000/svg"
>
<
path
<
path
d=
"M 30 70 Q 240 20 450 70"
d=
"M 30 70 Q 240 20 450 70"
...
...
src/components/Shared/LogoutButton/Index.jsx
View file @
4d7406c1
import
i
mg
from
'@assets/images/power-button_12080802.svg'
;
import
logoutI
mg
from
'@assets/images/power-button_12080802.svg'
;
import
styles
from
'./styles.module.css'
;
import
styles
from
'./styles.module.css'
;
const
LogoutButton
=
({
onLogout
})
=>
{
const
LogoutButton
=
({
onLogout
})
=>
{
return
(
return
(
<
div
className=
{
styles
[
'logout-wrapper'
]
}
>
<
div
className=
{
styles
[
'logout-wrapper'
]
}
>
<
img
src=
{
img
}
width=
{
3
0
}
onClick=
{
onLogout
}
title=
"Logout"
/>
<
img
src=
{
logoutImg
}
width=
{
2
0
}
onClick=
{
onLogout
}
title=
"Logout"
/>
</
div
>
</
div
>
);
);
};
};
...
...
src/components/Shared/LogoutButton/styles.module.css
View file @
4d7406c1
...
@@ -5,4 +5,5 @@
...
@@ -5,4 +5,5 @@
padding-right
:
1rem
;
padding-right
:
1rem
;
cursor
:
pointer
;
cursor
:
pointer
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
30px
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment