-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update UI for candidate decider (#573)
* update UI for candidate decider * add psacing between responses and questions
- Loading branch information
1 parent
d8f3359
commit 4c8eb10
Showing
5 changed files
with
244 additions
and
26 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
frontend/src/components/Candidate-Decider/ApplicantCredentials.module.css
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,19 @@ | ||
.credentialContainer { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: left; | ||
justify-content: left; | ||
padding: 20px !important; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.iconsContainer { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
|
||
.icon { | ||
margin-right: 10px; | ||
} |
124 changes: 124 additions & 0 deletions
124
frontend/src/components/Candidate-Decider/ApplicantCredentials.tsx
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,124 @@ | ||
import { Card } from 'semantic-ui-react'; | ||
import styles from './ApplicantCredentials.module.css'; | ||
|
||
type Props = { | ||
name: string; | ||
email: string; | ||
gradYear: string; | ||
resumeURL: string; | ||
githubURL?: string; | ||
linkedinURL?: string; | ||
portfolioURL?: string; | ||
preferredName?: string; | ||
}; | ||
|
||
const ApplicantCredentials: React.FC<Props> = ({ | ||
name, | ||
email, | ||
gradYear, | ||
resumeURL, | ||
githubURL, | ||
linkedinURL, | ||
portfolioURL, | ||
preferredName | ||
}) => ( | ||
<Card className={styles.credentialContainer}> | ||
<h1> | ||
{name} {preferredName && `(${preferredName})`} | ||
</h1> | ||
<p>{email}</p> | ||
<p>Class of {gradYear}</p> | ||
<div className={styles.iconsContainer}> | ||
<a className={styles.icon} href={resumeURL}> | ||
<FileIcon /> | ||
</a> | ||
{githubURL && ( | ||
<a className={styles.icon} href={githubURL}> | ||
<GithubIcon /> | ||
</a> | ||
)} | ||
{linkedinURL && ( | ||
<a className={styles.icon} href={linkedinURL}> | ||
<LinkedinIcon /> | ||
</a> | ||
)} | ||
{portfolioURL && ( | ||
<a className={styles.icon} href={portfolioURL}> | ||
<GlobeIcon /> | ||
</a> | ||
)} | ||
</div> | ||
</Card> | ||
); | ||
|
||
const FileIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" /> | ||
<polyline points="14 2 14 8 20 8" /> | ||
</svg> | ||
); | ||
|
||
const GithubIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4" /> | ||
<path d="M9 18c-4.51 2-5-2-7-2" /> | ||
</svg> | ||
); | ||
|
||
const GlobeIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<circle cx="12" cy="12" r="10" /> | ||
<line x1="2" x2="22" y1="12" y2="12" /> | ||
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" /> | ||
</svg> | ||
); | ||
|
||
const LinkedinIcon = () => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
stroke="currentColor" | ||
strokeWidth="2" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
> | ||
<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z" /> | ||
<rect width="4" height="12" x="2" y="9" /> | ||
<circle cx="4" cy="4" r="2" /> | ||
</svg> | ||
); | ||
|
||
export default ApplicantCredentials; |
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 |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
.radioButtons { | ||
margin-top: 1%; | ||
} | ||
|
||
.responseText { | ||
padding-bottom: 10px; | ||
} |
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