Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Carousel
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
Sakilesh J
Carousel
Commits
01cddc60
Commit
01cddc60
authored
Feb 19, 2024
by
Sakilesh J
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs
parent
2b058ee2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
35 deletions
+49
-35
App.css
src/App.css
+2
-2
Card.module.css
src/Components/Card/Card.module.css
+25
-17
Card.tsx
src/Components/Card/Card.tsx
+18
-12
Carousel.module.css
src/Components/Carousel/Carousel.module.css
+3
-2
Carousel.stories.tsx
src/Components/Carousel/Carousel.stories.tsx
+0
-1
Carousel.tsx
src/Components/Carousel/Carousel.tsx
+1
-1
No files found.
src/App.css
View file @
01cddc60
...
...
@@ -15,8 +15,8 @@
}
/* body {
max-width: 1
2
00px;
margin
-inline:
auto;
max-width: 1
5
00px;
margin
: 0
auto;
} */
li
,
...
...
src/Components/Card/Card.module.css
View file @
01cddc60
.card
{
color
:
var
(
--white
);
height
:
60%
;
padding
:
1
rem
1
rem
;
padding
:
1
.5
rem
;
/* border: 2px solid red; */
display
:
flex
;
flex-direction
:
column
;
gap
:
45px
;
align-items
:
start
;
}
.card
>*
{
width
:
100%
;
}
.title
{
justify-self
:
start
;
align-self
:
baseline
;
}
.title-bg
,
...
...
@@ -15,7 +28,6 @@
.title-sm
{
font-size
:
18px
;
color
:
var
(
--orange
);
padding
:
10px
0px
;
font-weight
:
600
;
letter-spacing
:
8px
;
}
...
...
@@ -23,7 +35,6 @@
.title-bg
{
font-size
:
30px
;
font-weight
:
600
;
padding
:
0
0
20px
0px
;
font-weight
:
bolder
;
letter-spacing
:
2px
;
}
...
...
@@ -31,7 +42,7 @@
.title-final
{
font-weight
:
700
;
font-size
:
25px
;
padding
:
1
rem
0
;
padding
:
1
0px
0
;
}
.about
{
...
...
@@ -40,14 +51,13 @@
}
.wrapper
{
/* border: 2px solid red; */
padding
:
10px
;
display
:
flex
;
gap
:
10px
;
margin-block
:
2rem
;
align-self
:
end
;
}
@media
(
min-width
:
500px
)
{
.title-sm
{
font-size
:
1.5rem
;
}
...
...
@@ -66,15 +76,13 @@
}
}
@media
(
min-width
:
1
1
00px
)
{
@media
(
min-width
:
1
0
00px
)
{
.card
{
m
ax-height
:
9
0vh
;
m
in-height
:
10
0vh
;
flex-basis
:
50%
;
padding
:
2
rem
;
}
padding
:
1.3
rem
;
justify-content
:
space-evenly
;
.wrapper
{
margin-top
:
30%
;
}
.card
>*
{
...
...
@@ -88,16 +96,16 @@
}
.title-bg
{
font-size
:
3.8
rem
;
font-size
:
4.5
rem
;
}
.title-final
{
font-size
:
2.
4
rem
;
margin-top
:
3
rem
;
font-size
:
2.
7
rem
;
margin-top
:
2
rem
;
}
.about
{
font-size
:
16
px
;
font-size
:
20
px
;
line-height
:
30px
;
font-weight
:
500
;
margin-bottom
:
3rem
;
...
...
src/Components/Card/Card.tsx
View file @
01cddc60
...
...
@@ -24,19 +24,25 @@ const Card = ({ title, title2, title3, about, length, current, onClick }: datapr
},
[
title
])
return
(
<
div
className=
{
styles
.
card
}
>
<
h6
className=
{
styles
[
"title-sm"
]
}
>
{
title
}
</
h6
>
<
h4
className=
{
styles
[
"title-bg"
]
}
>
{
title2
}
</
h4
>
<
div
className=
{
styles
.
title
}
>
<
h5
className=
{
styles
[
"title-final"
]
}
>
{
title3
}
</
h5
>
<
p
className=
{
styles
.
about
}
>
{
about
}
</
p
>
<
h6
className=
{
styles
[
"title-sm"
]
}
>
{
title
}
</
h6
>
<
h4
className=
{
styles
[
"title-bg"
]
}
>
{
title2
}
</
h4
>
</
div
>
<
div
className=
{
styles
.
abouts
}
>
<
h5
className=
{
styles
[
"title-final"
]
}
>
{
title3
}
</
h5
>
<
p
className=
{
styles
.
about
}
>
{
about
}
</
p
>
</
div
>
<
div
className=
{
styles
.
wrapper
}
>
{
count
.
map
((
data
,
index
)
=>
{
...
...
src/Components/Carousel/Carousel.module.css
View file @
01cddc60
...
...
@@ -35,9 +35,9 @@
@media
(
min-width
:
1
1
00px
)
{
@media
(
min-width
:
1
0
00px
)
{
.carasole
{
m
ax
-height
:
100vh
;
m
in
-height
:
100vh
;
overflow
:
hidden
;
}
}
\ No newline at end of file
src/Components/Carousel/Carousel.stories.tsx
View file @
01cddc60
import
type
{
Meta
,
StoryObj
}
from
"@storybook/react"
;
import
Carasole
from
"./Carousel"
;
import
Carousel1
from
"../../Hooks/Carousel1"
;
const
meta
:
Meta
<
typeof
Carasole
>
=
{
title
:
"Base"
,
...
...
src/Components/Carousel/Carousel.tsx
View file @
01cddc60
...
...
@@ -28,7 +28,7 @@ const Carasole = () => {
return
()
=>
{
clearInterval
(
autoPlayInterval
);
};
},
[]);
},
[
currentIndex
]);
const
customChange
=
(
index
:
number
)
=>
{
setcurrentIndex
(
index
);
...
...
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