forked from dooman87/dddperth-website
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #7 from OpenDDD/feat/added-secret-link-page
Added secret comp page
- Loading branch information
Showing
11 changed files
with
43 additions
and
0 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,43 @@ | ||
import React from 'react' | ||
import { Main } from 'layouts/main' | ||
|
||
const form = | ||
'<iframe width="640px" height="480px" src="https://forms.office.com/Pages/ResponsePage.aspx?id=1Fl-EtxArEOMrZBBUn5pEsOsP0_dXbtBp9bJbYo9i1BUMkhQTVo3R0lFSUhTQVM2MlE0NDNHUk1QMi4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen > {\' \'} </iframe>' | ||
|
||
const SuperSecretLinkPage = (): JSX.Element => { | ||
const memeImages = [ | ||
'static/images/memes/meme1.png', | ||
'static/images/memes/meme2.png', | ||
'static/images/memes/meme3.png', | ||
'static/images/memes/meme4.jpg', | ||
'static/images/memes/meme5.png', | ||
'static/images/memes/meme6.png', | ||
'static/images/memes/meme7.jpg', | ||
'static/images/memes/meme8.jpg', | ||
'static/images/memes/meme9.jpg', | ||
'static/images/memes/meme10.jpg', | ||
] | ||
|
||
const randomlySelectedMemeImage = memeImages[Math.floor(Math.random() * memeImages.length)] | ||
|
||
return ( | ||
<Main title="Secret 🤫"> | ||
<div style={{ textAlign: 'center' }}> | ||
<img src={randomlySelectedMemeImage} width="300px" style={{ display: 'block', margin: '0 auto' }} /> | ||
|
||
<br /> | ||
<br /> | ||
|
||
<h1>You've found the super secret link!</h1> | ||
<p> </p> | ||
<h2>Submit the form below for a chance to win the super secret prize at the end of today.</h2> | ||
|
||
<p> </p> | ||
|
||
<div dangerouslySetInnerHTML={{ __html: form }}></div> | ||
</div> | ||
</Main> | ||
) | ||
} | ||
|
||
export default SuperSecretLinkPage |
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.
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.