Commit 01cddc60 by Sakilesh J

fixed bugs

parent 2b058ee2
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
} }
/* body { /* body {
max-width: 1200px; max-width: 1500px;
margin-inline: auto; margin: 0 auto;
} */ } */
li, li,
......
.card { .card {
color: var(--white); color: var(--white);
height: 60%; height: 60%;
padding: 1rem 1rem; padding: 1.5rem;
/* border: 2px solid red; */ /* 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, .title-bg,
...@@ -15,7 +28,6 @@ ...@@ -15,7 +28,6 @@
.title-sm { .title-sm {
font-size: 18px; font-size: 18px;
color: var(--orange); color: var(--orange);
padding: 10px 0px;
font-weight: 600; font-weight: 600;
letter-spacing: 8px; letter-spacing: 8px;
} }
...@@ -23,7 +35,6 @@ ...@@ -23,7 +35,6 @@
.title-bg { .title-bg {
font-size: 30px; font-size: 30px;
font-weight: 600; font-weight: 600;
padding: 0 0 20px 0px;
font-weight: bolder; font-weight: bolder;
letter-spacing: 2px; letter-spacing: 2px;
} }
...@@ -31,7 +42,7 @@ ...@@ -31,7 +42,7 @@
.title-final { .title-final {
font-weight: 700; font-weight: 700;
font-size: 25px; font-size: 25px;
padding: 1rem 0; padding: 10px 0;
} }
.about { .about {
...@@ -40,14 +51,13 @@ ...@@ -40,14 +51,13 @@
} }
.wrapper { .wrapper {
/* border: 2px solid red; */
padding: 10px;
display: flex; display: flex;
gap: 10px; gap: 10px;
margin-block: 2rem; align-self: end;
} }
@media (min-width:500px) { @media (min-width:500px) {
.title-sm { .title-sm {
font-size: 1.5rem; font-size: 1.5rem;
} }
...@@ -66,15 +76,13 @@ ...@@ -66,15 +76,13 @@
} }
} }
@media (min-width:1100px) { @media (min-width:1000px) {
.card { .card {
max-height: 90vh; min-height: 100vh;
flex-basis: 50%; flex-basis: 50%;
padding: 2rem; padding: 1.3rem;
} justify-content: space-evenly;
.wrapper {
margin-top: 30%;
} }
.card>* { .card>* {
...@@ -88,16 +96,16 @@ ...@@ -88,16 +96,16 @@
} }
.title-bg { .title-bg {
font-size: 3.8rem; font-size: 4.5rem;
} }
.title-final { .title-final {
font-size: 2.4rem; font-size: 2.7rem;
margin-top: 3rem; margin-top: 2rem;
} }
.about { .about {
font-size: 16px; font-size: 20px;
line-height: 30px; line-height: 30px;
font-weight: 500; font-weight: 500;
margin-bottom: 3rem; margin-bottom: 3rem;
......
...@@ -24,6 +24,8 @@ const Card = ({ title, title2, title3, about, length, current, onClick }: datapr ...@@ -24,6 +24,8 @@ const Card = ({ title, title2, title3, about, length, current, onClick }: datapr
}, [title]) }, [title])
return ( return (
<div className={styles.card}> <div className={styles.card}>
<div className={styles.title}>
<h6 className={styles["title-sm"]}> <h6 className={styles["title-sm"]}>
{title} {title}
</h6> </h6>
...@@ -31,12 +33,16 @@ const Card = ({ title, title2, title3, about, length, current, onClick }: datapr ...@@ -31,12 +33,16 @@ const Card = ({ title, title2, title3, about, length, current, onClick }: datapr
{title2} {title2}
</h4> </h4>
</div>
<div className={styles.abouts}>
<h5 className={styles["title-final"]}> <h5 className={styles["title-final"]}>
{title3} {title3}
</h5> </h5>
<p className={styles.about}> <p className={styles.about}>
{about} {about}
</p> </p>
</div>
<div className={styles.wrapper}> <div className={styles.wrapper}>
{ {
count.map((data, index) => { count.map((data, index) => {
......
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
@media (min-width:1100px) { @media (min-width:1000px) {
.carasole { .carasole {
max-height: 100vh; min-height: 100vh;
overflow: hidden; overflow: hidden;
} }
} }
\ No newline at end of file
import type { Meta, StoryObj } from "@storybook/react"; import type { Meta, StoryObj } from "@storybook/react";
import Carasole from "./Carousel"; import Carasole from "./Carousel";
import Carousel1 from "../../Hooks/Carousel1";
const meta: Meta<typeof Carasole> = { const meta: Meta<typeof Carasole> = {
title: "Base", title: "Base",
......
...@@ -28,7 +28,7 @@ const Carasole = () => { ...@@ -28,7 +28,7 @@ const Carasole = () => {
return () => { return () => {
clearInterval(autoPlayInterval); clearInterval(autoPlayInterval);
}; };
}, []); }, [currentIndex]);
const customChange = (index: number) => { const customChange = (index: number) => {
setcurrentIndex(index); setcurrentIndex(index);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment