-
Notifications
You must be signed in to change notification settings - Fork 0
Looking for section #14
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
Open
DerrickThrower
wants to merge
9
commits into
main
Choose a base branch
from
LookingForSection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7447c77
Add LookingForSection with flippable cards for Designers and Developers
DerrickThrower bdd2729
intital design impemented
DerrickThrower 2190c8d
implementation fully working
DerrickThrower 09909a4
code refactor
DerrickThrower 0428140
Merge main into LookingForSection branch
DerrickThrower 0c9f63f
fixed stuff
DerrickThrower 1a5fbf0
grammar change
DerrickThrower dc7c4b5
Merge origin/main into LookingForSection; resolve Recruitment page co…
DerrickThrower 15af881
made cards bigger
DerrickThrower 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
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 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
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 |
|---|---|---|
| @@ -0,0 +1,166 @@ | ||
| "use client"; | ||
| import { Box, Image, Text, List, ListItem } from "@chakra-ui/react"; | ||
| import { motion } from "framer-motion"; | ||
| import { useState } from "react"; | ||
|
|
||
| interface FlippableCardProps { | ||
| frontImage?: string; | ||
| backImage?: string; | ||
| backText?: string; | ||
| backTitle?: string; | ||
| backBullets?: string[]; | ||
| label?: string; | ||
| } | ||
|
|
||
| export default function FlippableCard({ | ||
| frontImage, | ||
| backImage, | ||
| backText, | ||
| backTitle, | ||
| backBullets, | ||
| label, | ||
| }: FlippableCardProps) { | ||
| const [isFlipped, setIsFlipped] = useState(false); | ||
|
|
||
| return ( | ||
| <Box | ||
| width="421px" | ||
| height="354px" | ||
| cursor="pointer" | ||
| onClick={() => setIsFlipped(!isFlipped)} | ||
| flexShrink={0} | ||
| m="20px" | ||
| style={{ perspective: "1000px" }} | ||
| > | ||
| <motion.div | ||
| style={{ | ||
| width: "100%", | ||
| height: "100%", | ||
| position: "relative", | ||
| transformStyle: "preserve-3d", | ||
| }} | ||
| animate={{ rotateY: isFlipped ? 180 : 0 }} | ||
| transition={{ duration: 0.6, ease: "easeInOut" }} | ||
| > | ||
| {/* Front */} | ||
| <Box | ||
| position="absolute" | ||
| width="100%" | ||
| height="100%" | ||
| borderRadius="2xl" | ||
| padding={7} | ||
| boxShadow="0px 8px 16px 0px rgba(24, 24, 27, 0.1), 0px 0px 1px 0px rgba(212, 212, 216, 0.3) inset" | ||
| bg="white" | ||
| display="flex" | ||
| flexDirection="column" | ||
| alignItems="center" | ||
| justifyContent="center" | ||
| style={{ | ||
| WebkitBackfaceVisibility: "hidden", | ||
| backfaceVisibility: "hidden", | ||
| }} | ||
| > | ||
| {frontImage && ( | ||
| <Image | ||
| src={frontImage} | ||
| alt="Card front" | ||
| width="161px" | ||
| height="166px" | ||
| objectFit="contain" | ||
| opacity={1} | ||
| mb={label ? 4 : 0} | ||
| /> | ||
| )} | ||
| {label && ( | ||
| <Text | ||
| fontFamily="Inter, sans-serif" | ||
| fontWeight="semibold" | ||
| fontSize="2xl" | ||
| lineHeight="32px" | ||
| letterSpacing="0%" | ||
| textAlign="center" | ||
| verticalAlign="middle" | ||
| > | ||
| {label} | ||
| </Text> | ||
| )} | ||
| </Box> | ||
|
|
||
| {/* Back */} | ||
| <Box | ||
| position="absolute" | ||
| width="100%" | ||
| height="100%" | ||
| borderRadius="2xl" | ||
| padding={7} | ||
| boxShadow="0px 8px 16px 0px rgba(24, 24, 27, 0.1), 0px 0px 1px 0px rgba(212, 212, 216, 0.3) inset" | ||
| bg="white" | ||
| display="flex" | ||
| flexDirection="column" | ||
| alignItems="center" | ||
| justifyContent="center" | ||
| style={{ | ||
| WebkitBackfaceVisibility: "hidden", | ||
| backfaceVisibility: "hidden", | ||
| transform: "rotateY(180deg)", | ||
| }} | ||
| > | ||
| {backImage && ( | ||
| <Image | ||
| src={backImage} | ||
| alt="Card back" | ||
| width="161px" | ||
| height="166px" | ||
| objectFit="contain" | ||
| opacity={1} | ||
| mb={4} | ||
| /> | ||
| )} | ||
| {backTitle && ( | ||
| <Text | ||
| fontFamily="Inter, sans-serif" | ||
| fontWeight="semibold" | ||
| fontSize="2xl" | ||
| lineHeight="32px" | ||
| letterSpacing="0%" | ||
| textAlign="center" | ||
| verticalAlign="middle" | ||
| mb={4} | ||
| > | ||
| {backTitle} | ||
| </Text> | ||
| )} | ||
| {backBullets && backBullets.length > 0 && ( | ||
| <List spacing={2} px={4} textAlign="left" width="100%"> | ||
| {backBullets.map((bullet, index) => ( | ||
| <ListItem | ||
| key={index} | ||
| fontFamily="Inter, sans-serif" | ||
| fontWeight="normal" | ||
| fontSize="sm" | ||
| lineHeight="20px" | ||
| letterSpacing="0%" | ||
| verticalAlign="middle" | ||
| listStyleType="disc" | ||
| ml={4} | ||
| > | ||
| {bullet} | ||
| </ListItem> | ||
| ))} | ||
| </List> | ||
| )} | ||
| {backText && !backTitle && !backBullets && ( | ||
| <Text | ||
| fontSize="md" | ||
| textAlign="center" | ||
| color="gray.700" | ||
| px={4} | ||
| > | ||
| {backText} | ||
| </Text> | ||
| )} | ||
| </Box> | ||
| </motion.div> | ||
| </Box> | ||
| ); | ||
| } |
63 changes: 63 additions & 0 deletions
63
src/utils/components/PageRecruitment/LookingForSection.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 |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| "use client"; | ||
| import { Box, HStack, Text, VStack, useBreakpointValue } from "@chakra-ui/react"; | ||
|
|
||
| import FlippableCard from "./FlippableCard"; | ||
|
|
||
| export default function LookingForSection() { | ||
| const isMobile = useBreakpointValue({ base: true, md: false }); | ||
|
|
||
| return ( | ||
| <VStack | ||
| spacing={{ base: 8, md: 12 }} | ||
| py={{ base: 12, md: 20 }} | ||
| px={{ base: 4, md: 4 }} | ||
| maxW="7xl" | ||
| mx="auto" | ||
| width="100%" | ||
| > | ||
| {/* Header */} | ||
| <Box textAlign="center"> | ||
| <Text | ||
| fontFamily="Inter, sans-serif" | ||
| fontWeight="medium" | ||
| fontSize={{ base: "3xl", md: "4xl", lg: "5xl" }} | ||
| lineHeight={{ base: "40px", md: "50px", lg: "60px" }} | ||
| letterSpacing="0%" | ||
| textAlign="center" | ||
| px={{ base: 2, md: 0 }} | ||
| > | ||
| We're looking for... | ||
| </Text> | ||
| </Box> | ||
|
|
||
| {/* Cards Container */} | ||
| <HStack | ||
| spacing={20} | ||
| justifyContent="center" | ||
| flexWrap="wrap" | ||
| width="100%" | ||
| > | ||
| <FlippableCard | ||
| frontImage="/assets/pencil.png" | ||
| label="Designers" | ||
| backTitle="Designers" | ||
| backBullets={[ | ||
| "work in a cross functional team", | ||
DerrickThrower marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "use Figma and the design process (research, wireframing, prototyping, usability testing) to create innovative designs for non-profit organizations", | ||
DerrickThrower marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| "All levels are welcome", | ||
| ]} | ||
| /> | ||
| <FlippableCard | ||
| frontImage="/assets/desktop.png" | ||
| label="Developers" | ||
| backTitle="Developers" | ||
| backBullets={[ | ||
| "will utilize frontend technologies (React, Javascript/Typescript, HTML, and CSS/SASS)", | ||
| "work with backend technologies (APIs, databases, & middleware)", | ||
| "implement real-life applications", | ||
| ]} | ||
| /> | ||
| </HStack> | ||
| </VStack> | ||
| ); | ||
| } | ||
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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export { default as LookingForSection } from "./LookingForSection"; | ||
| export { default as FlippableCard } from "./FlippableCard"; |
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.