Skip to content

Commit

Permalink
Merge pull request #7 from OpenDDD/feat/added-secret-link-page
Browse files Browse the repository at this point in the history
Added secret comp page
  • Loading branch information
dooman87 authored Mar 14, 2024
2 parents 4aca6a0 + 6c7b5df commit 4741eee
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pages/supersecretlink.tsx
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>&nbsp;</p>
<h2>Submit the form below for a chance to win the super secret prize at the end of today.</h2>

<p>&nbsp;</p>

<div dangerouslySetInnerHTML={{ __html: form }}></div>
</div>
</Main>
)
}

export default SuperSecretLinkPage
Binary file added public/static/images/memes/meme1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme7.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/static/images/memes/meme9.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4741eee

Please sign in to comment.