-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4359af4
commit e459a19
Showing
7 changed files
with
113 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react' | ||
|
||
const COLORS = { | ||
dark: 'bg-black text-light', | ||
purple: 'bg-purple text-light', | ||
} | ||
|
||
export const CaseStudyJumbotron: React.FunctionComponent<{ | ||
title: string | ||
titleClassName?: string | ||
quote: string | ||
author: string | ||
url: string | ||
image: string | ||
buttonText?: string | ||
color?: keyof typeof COLORS | ||
className?: string | ||
}> = ({ | ||
title, | ||
titleClassName = 'display-6', | ||
quote, | ||
author, | ||
url, | ||
image, | ||
buttonText = 'Learn their strategy', | ||
color = 'dark', | ||
className = '', | ||
}) => ( | ||
<div className={`jumbotron case-studies-feature pt-5 pb-3 ${COLORS[color]} ${className}`}> | ||
<div className="row container justify-content-center mb-4"> | ||
<h2 className={`text-center ${titleClassName}`}>{title}</h2> | ||
</div> | ||
<div className="row container justify-content-center"> | ||
<div class="col-sm-12 col-md-2 case-studies-feature__image"> | ||
<a href={url}> | ||
<img class="p-3 img-thumbnail align-middle" src={image} /> | ||
</a> | ||
</div> | ||
<div class="col-md-6 case-studies-feature__content"> | ||
<blockquote class="blockquote"> | ||
<p class="mb-1">{quote}</p> | ||
<footer class="blockquote-footer"> | ||
<cite title="Thorn Software Engineer Jacob Gilesspie">{author}</cite> | ||
</footer> | ||
</blockquote> | ||
<a href={url} class="btn btn-primary mt-4" rel="nofollow"> | ||
{buttonText} | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
) |
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
Binary file modified
BIN
-279 Bytes
(99%)
website/static/case-studies/jacob-gillespie-thorn-square.jpg
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.