-
Notifications
You must be signed in to change notification settings - Fork 0
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 #13 from SuperViz/develop
Develop
- Loading branch information
Showing
42 changed files
with
1,054 additions
and
468 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,3 @@ | ||
{ | ||
"px-to-rem.px-per-rem": 16 | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,66 @@ | ||
.onboarding { | ||
padding: 2rem 1.5rem; | ||
|
||
.step { | ||
display: flex; | ||
flex-direction: column; | ||
height: calc(100vh - 56px - 6rem); | ||
text-align: center; | ||
|
||
.game-title { | ||
margin-top: auto; | ||
font-family: Roboto, Arial, sans-serif; | ||
|
||
h1 { | ||
font-size: 4.7608rem; | ||
font-weight: 900; | ||
line-height: 97%; | ||
margin-bottom: 2rem; | ||
|
||
span { | ||
display: block; | ||
color: #957AFF; | ||
} | ||
} | ||
} | ||
|
||
h2 { | ||
color: #957AFF; | ||
font-size: 1.5rem; | ||
margin-bottom: 1.5rem; | ||
font-weight: 900; | ||
} | ||
|
||
p { | ||
font-size: 1.5rem; | ||
font-weight: 400; | ||
margin-bottom: 1rem; | ||
line-height: 115%; | ||
} | ||
|
||
.step-counter { | ||
margin: 2rem auto; | ||
display: flex; | ||
gap: 1rem; | ||
|
||
.step-circle { | ||
width: 50px; | ||
height: 6px; | ||
background: #4C4C4C; | ||
border-radius: 3px; | ||
|
||
&.active { | ||
background-color: #957AFF; | ||
} | ||
} | ||
} | ||
|
||
img { | ||
margin: auto; | ||
} | ||
|
||
button { | ||
margin-top: auto; | ||
} | ||
} | ||
} |
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,93 @@ | ||
'use client' | ||
|
||
import { useState } from 'react' | ||
import './onboarding.scss' | ||
import Button from '@/components/Button' | ||
import Image from 'next/image' | ||
|
||
export default function GameOnboarding() { | ||
const [currentStep, setCurrentStep] = useState(0) | ||
|
||
const moveToGame = () => { | ||
window.open('/activations/game/play', '_self') | ||
} | ||
|
||
const moveNext = () => { | ||
if (localStorage.getItem('onboarding-finished')) | ||
moveToGame() | ||
else | ||
setCurrentStep(currentStep + 1) | ||
|
||
if (currentStep === 2) | ||
localStorage.setItem('onboarding-finished', 'true') | ||
} | ||
|
||
return ( | ||
<div className='onboarding'> | ||
{currentStep === 0 && ( | ||
<div className='step'> | ||
<div className='game-title'> | ||
<h1>Super<span>{'<Craft>'}</span></h1> | ||
<p>Combine e crie elementos</p> | ||
<p>🔥 💧 🍃 🌎</p> | ||
</div> | ||
|
||
<Button text={'Jogar'} type={'button'} onClick={moveNext} /> | ||
</div> | ||
)} | ||
|
||
{currentStep === 1 && ( | ||
<div className='step'> | ||
<div className='step-counter'> | ||
<div className='step-circle active'></div> | ||
<div className='step-circle'></div> | ||
<div className='step-circle'></div> | ||
</div> | ||
|
||
<div className='step-description'> | ||
<h2>Como jogar</h2> | ||
<p>Todos os jogadores começam com elementos básicos como Água, Vento, Terra e Fogo. Arraste os elementos e os combine para criar novos.</p> | ||
</div> | ||
|
||
<Button text={'Próximo'} type={'button'} onClick={moveNext} /> | ||
</div> | ||
)} | ||
|
||
{currentStep === 2 && ( | ||
<div className='step'> | ||
<div className='step-counter'> | ||
<div className='step-circle active'></div> | ||
<div className='step-circle active'></div> | ||
<div className='step-circle'></div> | ||
</div> | ||
|
||
<div className='step-description'> | ||
<h2>Como jogar</h2> | ||
<p>Ao descobrir elementos inéditos que nenhum jogador jamais encontrou, ganhe +1 ponto para concorrer ao prêmio!</p> | ||
</div> | ||
|
||
<Button text={'Próximo'} type={'button'} onClick={moveNext} /> | ||
</div> | ||
)} | ||
|
||
{currentStep === 3 && ( | ||
<div className='step'> | ||
<div className='step-counter'> | ||
<div className='step-circle active'></div> | ||
<div className='step-circle active'></div> | ||
<div className='step-circle active'></div> | ||
</div> | ||
|
||
<div className='step-description'> | ||
<h2>Como jogar</h2> | ||
<p>Você pode conseguir até 10 pontos e aumentar suas chances de levar o prêmio!</p> | ||
</div> | ||
|
||
<Image src={'/game-you.png'} alt={'Você'} width={101} height={141} /> | ||
|
||
<Button text={'Próximo'} type={'button'} onClick={moveToGame} /> | ||
</div> | ||
)} | ||
</div> | ||
) | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
export default function HackathonPage() { | ||
|
||
|
||
return ( | ||
<div className={`bg-[#313338] w-full h-full rounded-2xl p-4`}> | ||
<iframe | ||
src='https://47xzvrbdgjk.typeform.com/to/cqzci1gD' | ||
width="100%" | ||
height="100%" | ||
allowFullScreen | ||
> | ||
<p> | ||
<a href="https://superviz.com/"> | ||
Oops... algo deu errado! | ||
</a> | ||
</p> | ||
</iframe> | ||
sandbox='allow-scripts allow-same-origin allow-forms' | ||
></iframe> | ||
</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
File renamed without changes.
Oops, something went wrong.