-
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.
Site updates to add demo day information
* added logo block * added demo day tickets form * added gatsby-image and gatsby-image related plugins * updated all packages to latest (to fix gatsby image bug)
- Loading branch information
1 parent
63eb720
commit f5430c7
Showing
14 changed files
with
4,936 additions
and
2,055 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React from 'react' | ||
import { useStaticQuery, graphql } from 'gatsby' | ||
import Img from 'gatsby-image' | ||
|
||
import './logos.scss' | ||
|
||
const NonStretchedImg = props => { | ||
let normalizedProps = props | ||
if (props.fluid && props.fluid.presentationWidth) { | ||
normalizedProps = { | ||
...props, | ||
style: { | ||
...(props.style || {}), | ||
maxWidth: props.fluid.presentationWidth, | ||
margin: '0 auto', // Used to center the image | ||
}, | ||
} | ||
} | ||
|
||
return <Img {...normalizedProps} /> | ||
} | ||
|
||
export const squareImage = graphql` | ||
fragment squareImage on File { | ||
childImageSharp { | ||
fluid(maxWidth: 500, quality: 100) { | ||
...GatsbyImageSharpFluid | ||
presentationWidth | ||
} | ||
} | ||
} | ||
` | ||
|
||
export default () => { | ||
const data = useStaticQuery(graphql` | ||
query ImageQuery { | ||
moovel: file(relativePath: { eq: "logos/moovel.png" }) { | ||
...squareImage | ||
} | ||
omsi: file(relativePath: { eq: "logos/omsi.jpg" }) { | ||
...squareImage | ||
} | ||
ocf: file(relativePath: { eq: "logos/ocf.jpg" }) { | ||
...squareImage | ||
} | ||
city: file(relativePath: { eq: "logos/cityofportland.png" }) { | ||
...squareImage | ||
} | ||
county: file(relativePath: { eq: "logos/multnomahcounty.png" }) { | ||
...squareImage | ||
} | ||
gates: file(relativePath: { eq: "logos/gates.png" }) { | ||
...squareImage | ||
} | ||
} | ||
`) | ||
return ( | ||
<div className="LogosContainer"> | ||
<div className="Logos"> | ||
<NonStretchedImg fluid={data.gates.childImageSharp.fluid} /> | ||
<NonStretchedImg fluid={data.county.childImageSharp.fluid} /> | ||
<NonStretchedImg fluid={data.city.childImageSharp.fluid} /> | ||
<NonStretchedImg fluid={data.moovel.childImageSharp.fluid} /> | ||
<NonStretchedImg fluid={data.ocf.childImageSharp.fluid} /> | ||
<NonStretchedImg fluid={data.omsi.childImageSharp.fluid} /> | ||
</div> | ||
<p className="LogosThankYouText"> | ||
<strong>Thank you to our partners!</strong> | ||
</p> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.Logos { | ||
display: grid; | ||
grid-template-columns: repeat(3, 1fr); | ||
grid-template-rows: 1fr 1fr; | ||
div { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.LogosContainer { | ||
margin: 60px 0; | ||
} | ||
|
||
.LogosThankYouText { | ||
margin: 20px 0; | ||
} |
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,41 @@ | ||
import React from 'react' | ||
import { ReactTypeformEmbed } from 'react-typeform-embed' | ||
|
||
class TicketsForm extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.openForm = this.openForm.bind(this); | ||
} | ||
|
||
openForm() { | ||
this.typeformEmbed.typeform.open(); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="Typeform"> | ||
<button | ||
className="button" | ||
onClick={this.openForm} | ||
style={{ cursor: 'pointer' }} | ||
> | ||
Get your tickets now | ||
</button> | ||
<ReactTypeformEmbed | ||
popup | ||
autoOpen={false} | ||
url="https://ven386248.typeform.com/to/uIZ2AA" | ||
hideHeaders | ||
hideFooter | ||
buttonText="Submit!" | ||
style={{ height: '0%' }} | ||
ref={tf => { | ||
this.typeformEmbed = tf | ||
}} | ||
/> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
export default TicketsForm; |
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.
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.
Oops, something went wrong.