Skip to content

Commit af1745c

Browse files
committed
Initial Commit
1 parent 609f3e3 commit af1745c

4 files changed

Lines changed: 60 additions & 0 deletions

File tree

src/components/Carousel.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import '../css/carousel.css';
2+
import Organization from './Organization.tsx';
3+
4+
type CarouselProps = {
5+
type: string;
6+
}
7+
8+
export default function Carousel({ type }: CarouselProps) {
9+
return (
10+
<>
11+
<div>
12+
<h2 className="carousel-title">{type}</h2>
13+
<div className="carousel">
14+
<Organization />
15+
<Organization />
16+
<Organization />
17+
</div>
18+
</div>
19+
</>
20+
);
21+
}

src/components/Organization.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import '../css/organizations.css';
2+
3+
export default function Organization() {
4+
return (
5+
<div className="org">
6+
7+
</div>
8+
);
9+
}

src/css/carousel.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.carousel-page-container {
2+
display: flex;
3+
flex-direction: column;
4+
gap: 4rem;
5+
}
6+
7+
.carousel {
8+
width: 100%;
9+
background: #F1DEDE;
10+
height: 20rem;
11+
border-radius: 2rem;
12+
padding: 1rem;
13+
14+
display: flex;
15+
flex-direction: row;
16+
align-items: center;
17+
gap: 2rem;
18+
}
19+
20+
.carousel-title {
21+
margin: 0;
22+
font-size: 1rem;
23+
color: black;
24+
}

src/css/organizations.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.org {
2+
height: 18rem;
3+
width: 22rem;
4+
border-radius: 2rem;
5+
background: #D9D9D9;
6+
}

0 commit comments

Comments
 (0)