-
Notifications
You must be signed in to change notification settings - Fork 9
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 #786 from StampyAI/supermandan
careers page, various minor fixes #784
- Loading branch information
Showing
17 changed files
with
361 additions
and
72 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from 'react' | ||
import './testimonial.css' | ||
import useIsMobile from '../../hooks/isMobile' | ||
|
||
interface TestimonialProps { | ||
className?: string | ||
title: string | ||
description: string | ||
src: string | ||
layout?: 'expanded' | 'squeezed' | ||
} | ||
|
||
const Testimonial: React.FC<TestimonialProps> = ({ | ||
className, | ||
title, | ||
description, | ||
src, | ||
layout = 'squeezed', | ||
}) => { | ||
const isMobile = useIsMobile() | ||
const finalLayout = isMobile ? 'squeezed' : layout | ||
className = `testimonial ${finalLayout} ${className || ''}` | ||
|
||
return finalLayout === 'squeezed' ? ( | ||
<div className={className}> | ||
<div className="padding-bottom-24 testimonial-header"> | ||
<img width={80} height={80} className="rounded" src={src} alt="Testimonial's Face" /> | ||
<p className="default-bold padding-left-24">{title}</p> | ||
</div> | ||
<p className="default grey">{description}</p> | ||
</div> | ||
) : ( | ||
<div className={className}> | ||
<div className="flex-container"> | ||
<img width={151} height={151} className="rounded" src={src} alt="Testimonial's Face" /> | ||
<div className="padding-left-40"> | ||
<p className="large-bold padding-bottom-16">{title}</p> | ||
<p className="default grey">{description}</p> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Testimonial |
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,20 @@ | ||
.testimonial { | ||
border: 1px solid var(--colors-cool-grey-200); | ||
border-radius: var(--border-radius); | ||
} | ||
|
||
.testimonial.expanded { | ||
padding: var(--spacing-40); | ||
max-width: 875px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.testimonial.squeezed { | ||
padding: var(--spacing-32); | ||
} | ||
|
||
.testimonial-header { | ||
display: flex; | ||
align-items: center; | ||
} |
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
Oops, something went wrong.