Skip to content

Commit

Permalink
Add screenshots to front page carousel
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Sørlie Glomsaas <[email protected]>
  • Loading branch information
SuperManifolds committed Nov 5, 2024
1 parent 31c5fb9 commit 4d5a619
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 34 deletions.
Binary file added public/static/images/anja.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/boomer_soomer.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/calebdume.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/fiestypizza.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/joojoogamer.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/kamirov.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/kumakenji.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/lazylime.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/nlparadox.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/xman31.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
117 changes: 83 additions & 34 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,45 +43,94 @@ const CarouselSlides = {
position: '40% 50%',
filename: 'fenrishi.jpg',
},
}

anja: {
text: 'CMDR Anja',
position: '50% 50%',
filename: 'anja.jpg',
},
lazylime: {
text: 'CMDR LazyLime',
position: '50% 50%',
filename: 'lazylime.jpg',
},
kumakenji: {
text: 'CMDR KumaKenji',
position: '50% 50%',
filename: 'kumakenji.jpg',
},
xman31: {
text: 'CMDR Xman31',
position: '50% 50%',
filename: 'xman31.jpg',
},
fiestypizza: {
text: 'CMDR FiestyPizza',
position: '50% 50%',
filename: 'fiestypizza.jpg',
},
boomer: {
text: 'CMDR Boomer Soomer',
position: '50% 50%',
filename: 'boomer_soomer.jpg',
},
kamirov: {
text: 'CMDR Kamirov',
position: '50% 50%',
filename: 'kamirov.jpg',
},
calebdume: {
text: 'CMDR Caleb Dume',
position: '50% 50%',
filename: 'calebdume.jpg',
},
joojoogamer: {
text: 'CMDR JooJooGamer',
position: '50% 50%',
filename: 'joojoogamer.jpg',
},
nlparadox: {
text: 'CMDR NL Paradox',
position: '50% 50%',
filename: 'nlparadox.jpg',
},

function FuelRatsHome (props) {
const { authenticate, ...restQuery } = props.query
const dispatch = useDispatch()

useEffect(() => {
if (authenticate) {
dispatch(setFlag('showLoginDialog', true))
Router.replace(makeRoute('/', restQuery), undefined, { shallow: true })
}
// eslint-disable-next-line react-hooks/exhaustive-deps -- only run on authenticate change, we only care about the state of others when this value changes anyway.
}, [authenticate])

return (
<section className="hero">
<Carousel id="HomeImages" slides={CarouselSlides} />

<header>
<h1>{'We Have Fuel. '}<wbr />{"You\u00a0Don't."}</h1>
<h2>{'Any Questions?'}</h2>
</header>

<footer className="call-to-action">
<Link href="/i-need-fuel">
<a className="button tall">{'Get Fuel'}</a>
</Link>
</footer>
</section>
)
function FuelRatsHome(props) {
const { authenticate, ...restQuery } = props.query
const dispatch = useDispatch()

useEffect(() => {
if (authenticate) {
dispatch(setFlag('showLoginDialog', true))
Router.replace(makeRoute('/', restQuery), undefined, { shallow: true })
}
// eslint-disable-next-line react-hooks/exhaustive-deps -- only run on authenticate change, we only care about the state of others when this value changes anyway.
}, [authenticate])

return (
<section className="hero">
<Carousel id="HomeImages" slides={CarouselSlides} />

<header>
<h1>{'We Have Fuel. '}<wbr />{"You\u00a0Don't."}</h1>
<h2>{'Any Questions?'}</h2>
</header>

<footer className="call-to-action">
<Link href="/i-need-fuel">
<a className="button tall">{'Get Fuel'}</a>
</Link>
</footer>
</section>
)
}

FuelRatsHome.getPageMeta = () => {
return {
noHeader: true,
title: 'Home',
key: 'home',
}
return {
noHeader: true,
title: 'Home',
key: 'home',
}
}


Expand Down

0 comments on commit 4d5a619

Please sign in to comment.