-
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.
Merge pull request #9 from UTDNebula/jason/testimonials
Testimonials section
- Loading branch information
Showing
13 changed files
with
193 additions
and
85 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import Image from "next/image"; | ||
import ArrowButton from "@/../public/testimonials/arrow-button.svg"; | ||
import Amrit from "@/../public/testimonials/amrit.png"; | ||
import JC from "@/../public/testimonials/jc.png"; | ||
import Kevin from "@/../public/testimonials/kevin.png"; | ||
|
||
const testimonials = [ | ||
{ | ||
name: 'Amrit', | ||
classification: 'Junior', | ||
image: Amrit, | ||
quote: '“Being a part of Nebula has been a huge part of my college career. I\'ve made some of my best friends and had some of my best experiences being a part of the group. I love creating software that helps students and I love teaching people web technologies.”' | ||
}, | ||
{ | ||
name: 'Kevin', | ||
classification: 'Sophomore', | ||
image: Kevin, | ||
quote: '“I love the team, I love the product, I love the unique challenges that the project presents. What more can I ask for :)”' | ||
}, | ||
{ | ||
name: 'JC', | ||
classification: 'Junior', | ||
image: JC, | ||
quote: '“I enjoyed interacting with an open source project which I’d never done before. The team working skills are also great to know and the people I have interacted with so far have been great.”' | ||
} | ||
] | ||
|
||
const Testimonials = () => ( | ||
<> | ||
<div className="flex flex-col gap-8 text-center items-center mx-auto mt-24 my-12 max-w-3xl px-4"> | ||
<h4 className="text-gradient font-semibold lg:font-bold text-4xl">We Got Something For Everyone</h4> | ||
<p>Our organization has something for everyone. Whether you're a seasoned pro or just starting out, we offer a range of opportunities to help you grow and develop.</p> | ||
</div> | ||
<div className="flex overflow-x-scroll text-white scroll-smooth" style={{scrollSnapType: 'x mandatory'}}> | ||
{testimonials.map((t, idx, arr)=>( | ||
<div id={`testimonial-${idx}`} key={`testimonial-${t.name}`} className="flex flex-shrink-0 w-screen px-8 snap-start lg:px-32 xl:px-48 relative"> | ||
<div className="bg-royal rounded-3xl flex-shrink-0 flex flex-col md:flex-row w-fit items-center md:items-center text-center gap-8 p-8 font-medium md:text-lg md:justify-start"> | ||
<Image className="md:w-2/5 lg:w-1/5" src={t.image} alt={t.name} /> | ||
<span className="contents md:flex flex-col md:text-left gap-8 md:h-full md:justify-center relative"> | ||
<p>{t.quote}</p> | ||
<h3 className="text-2xl font-bold"> | ||
{t.name}, {t.classification} | ||
</h3> | ||
|
||
<span className="flex gap-3 mt-auto mb-8 md:mb-0 md:mt-0 place-self-end md:absolute md:bottom-0 items-center"> | ||
<button onClick={()=>{ | ||
const el = document.querySelector(`#testimonial-${Math.max(0, idx-1)}`) | ||
el?.scrollIntoView({behavior: 'smooth', block: 'nearest', inline: 'start'}) | ||
}}> | ||
<Image src={ArrowButton} alt="arrow" /> | ||
</button> | ||
<p className="h-min">{idx+1}/{arr.length}</p> | ||
<button onClick={()=>{ | ||
const el = document.querySelector(`#testimonial-${Math.min(arr.length-1, idx+1)}`) | ||
el?.scrollIntoView({behavior: 'smooth', block: 'nearest', inline: 'start'}) | ||
}}> | ||
<Image src={ArrowButton} alt="arrow" className="rotate-180" /> | ||
</button> | ||
</span> | ||
</span> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</> | ||
) | ||
|
||
export default Testimonials |
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