-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4714a3
commit 8364912
Showing
10 changed files
with
146 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.swiper-slide { | ||
text-align: center; | ||
font-size: 18px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.swiper-slide img { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,52 @@ | ||
import React from 'react' | ||
import React, { useState } from "react"; | ||
import Heading from "../components/Heading"; | ||
|
||
import dataJson from "../data.json"; | ||
|
||
const Crew = () => { | ||
const crewData = dataJson.crew; | ||
const [currentIndex, setCurrentIndex] = useState(0); | ||
return ( | ||
<div className='crew_page min-h-screen w-full'> | ||
|
||
<div className="crew_page min-h-screen w-full flex items-start flex-col justify-center overflow-hidden pt-36 pb-7 relative"> | ||
<Heading title={"meet our crew"} index={"02"} /> | ||
<div className="frame h-96 flex overflow-hidden ml-28 mt-20"> | ||
{crewData.map((item, index) => { | ||
const { crewName, role, bio } = item; | ||
return ( | ||
<div | ||
key={index} | ||
style={{ transform: `translateX(-${currentIndex}00%)` }} | ||
className="slider min-w-full h-80 text-slate-50 flex flex-col gap-8 tracking-widest" | ||
> | ||
<p className="text-4xl font-thin">{role}</p> | ||
<h1 className="text-6xl font-light">{crewName}</h1> | ||
<p className="text-1xl"> {bio}</p> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
<div className="w-40 h-7 ml-28 flex gap-3"> | ||
{crewData.map((item, index) => { | ||
return ( | ||
<button | ||
key={index} | ||
className={`dots h-5 w-5 rounded-full bg-slate-50 ${ | ||
index === currentIndex ? "opacity-100" : "opacity-40" | ||
}`} | ||
onClick={() => setCurrentIndex(index)} | ||
/> | ||
); | ||
})} | ||
</div> | ||
<div> | ||
<img | ||
src={crewData[currentIndex].images} | ||
alt={crewData[currentIndex].crewName} | ||
className="crewImage absolute bottom-0 right-10 w-96 h-auto object-cover" | ||
/> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Crew | ||
export default Crew; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters