-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add desktop for white starter-kit #471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cb373d8
feat: add desktop for white starter-kit
jackzheng-cs ce7ed44
chore: run lint
jackzheng-cs 6b1f835
feat: add mobile layout
jackzheng-cs fd2d33a
Merge branch 'main' into 463-starterkit-white-section
michelleyeoh 1489f41
fix calendar events
michelleyeoh b4e8b3b
reuse CalendarItem in teambuidling
michelleyeoh 46b3f4e
white section done
michelleyeoh 6c1aef4
fixes
michelleyeoh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
94 changes: 68 additions & 26 deletions
94
app/(pages)/(hackers)/_components/StarterKit/Ideate/IdeateMentorCallout.tsx
This file contains hidden or 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,56 +1,98 @@ | ||
| import Image from 'next/image'; | ||
| import { ArrowRight } from 'lucide-react'; | ||
| import type { StaticImageData } from 'next/image'; | ||
| import type { ReactNode } from 'react'; | ||
| import mentorGraphic from '@public/hackers/starter-kit/ideate/TalkMentor.svg'; | ||
| import IdeateSection from './IdeateSection'; | ||
|
|
||
| export default function IdeateMentorCallout() { | ||
| const mentorDiscordLink = 'https://discord.gg/wc6QQEc'; | ||
| interface MentorCalloutCardProps { | ||
| imageSrc: StaticImageData; | ||
| imageAlt: string; | ||
| eyebrow: string; | ||
| description: ReactNode; | ||
| note?: ReactNode; | ||
| noteBgClassName?: string; | ||
| ctaHref: string; | ||
| ctaLabel: string; | ||
| } | ||
|
|
||
| export function MentorCalloutCard({ | ||
| imageSrc, | ||
| imageAlt, | ||
| eyebrow, | ||
| description, | ||
| note, | ||
| noteBgClassName, | ||
| ctaHref, | ||
| ctaLabel, | ||
| }: MentorCalloutCardProps) { | ||
| return ( | ||
| <IdeateSection eyebrow=" " title=""> | ||
| <div className="grid items-start gap-8 md:grid-cols-[minmax(320px,0.95fr)_minmax(0,1fr)] md:gap-10 lg:gap-14"> | ||
| <div className="relative order-1 mx-auto flex aspect-[1.72] w-full max-w-[44rem] items-center justify-center overflow-hidden rounded-[28px] bg-[#E4FFFE] md:order-1 md:mx-0"> | ||
| <div className="relative order-1 mx-auto flex w-full max-w-[44rem] items-center justify-center overflow-hidden rounded-[28px] md:order-1 md:mx-0"> | ||
| <Image | ||
| src={mentorGraphic} | ||
| alt="HackDavis mentor illustration" | ||
| className="relative h-full w-full object-contain" | ||
| src={imageSrc} | ||
| alt={imageAlt} | ||
| className="w-full h-auto object-contain" | ||
| /> | ||
| </div> | ||
| <div className="order-2 flex flex-col gap-6 md:order-2"> | ||
| <p className="text-[1rem] font-dm-mono uppercase text-[#00000066]"> | ||
| Still Feel Stuck? | ||
| {eyebrow} | ||
| </p> | ||
| <p className="max-w-[38rem] text-[#656565] text-[1rem]"> | ||
| No worries, we have a panel of industry mentors who are ready to | ||
| lend you help at any part of your development process. | ||
| {description} | ||
| </p> | ||
| <div className="hidden rounded-[20px] bg-[#E9FBBA] px-6 py-5 text-[#000000a6] md:block md:px-8 md:py-6"> | ||
| <p className="text-[1rem]"> | ||
| <span className="italic">Note:</span> If you have any questions | ||
| regarding hackathon events, please contact a{' '} | ||
| <a | ||
| href="https://discord.gg/Ba5xAtf8" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="underline underline-offset-4" | ||
| > | ||
| director | ||
| </a> | ||
| . | ||
| </p> | ||
| </div> | ||
| {note ? ( | ||
| <div | ||
| className={`hidden rounded-[20px] px-6 py-5 text-[#000000a6] md:block md:px-8 md:py-6 ${ | ||
| noteBgClassName || 'bg-[#E9FBBA]' | ||
| }`} | ||
| > | ||
| <p className="text-[1rem]">{note}</p> | ||
| </div> | ||
| ) : null} | ||
| <div className="pt-1"> | ||
| <a | ||
| href={mentorDiscordLink} | ||
| href={ctaHref} | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="inline-flex items-center gap-3 font-dm-mono text-[1.125rem] uppercase text-[#3F3F3F] underline underline-offset-4 transition hover:opacity-75" | ||
| > | ||
| <ArrowRight className="h-5 w-5" /> | ||
| Contact a mentor | ||
| {ctaLabel} | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </IdeateSection> | ||
| ); | ||
| } | ||
|
|
||
| export default function IdeateMentorCallout() { | ||
| return ( | ||
| <MentorCalloutCard | ||
| imageSrc={mentorGraphic} | ||
| imageAlt="HackDavis mentor illustration" | ||
| eyebrow="Still Feel Stuck?" | ||
| description="No worries, we have a panel of industry mentors who are ready to lend you help at any part of your development process." | ||
| note={ | ||
| <> | ||
| <span className="italic">Note:</span> If you have any questions | ||
| regarding hackathon events, please contact a{' '} | ||
| <a | ||
| href="https://discord.gg/Ba5xAtf8" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| className="underline underline-offset-4" | ||
| > | ||
| director | ||
| </a> | ||
| . | ||
| </> | ||
| } | ||
| ctaHref="https://discord.gg/wc6QQEc" | ||
| ctaLabel="Contact a mentor" | ||
| /> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.