Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mng 81 add pokemon choosing screen #9

Merged
merged 7 commits into from
Feb 3, 2021

Conversation

AleksandraCyp
Copy link
Collaborator

No description provided.

index.html Outdated
Comment on lines 34 to 49
<p><span>Sorry, but we couldn't wake up Snorlax... <br>Here you have 12 Pokemons ready to fight</span></p>
<p id='whoChoosesParagraph'><span>Ash chooses 1 (the last) pokemon</span></p>
<div class='choosePagePlayers' id='choosePagePlayer1'>
<h1 class='choosePagePlayersName fancyFont' id='choosePagePlayer1Name'>ASH</h1>
<img src='./assets/pokeball.png' alt='Pokeball'>
<img src='./assets/pokeball.png' alt='Pokeball'>
<img src='./assets/pokeball.png' alt='Pokeball'>
</div>
<div class='choosePagePlayers' id='choosePagePlayer2'>
<h1 class='choosePagePlayersName fancyFont' id='choosePagePlayer2Name'>MISTY</h1>
<img src='./assets/pokeball.png' alt='Pokeball'>
<img src='./assets/pokeball.png' alt='Pokeball'>
<img src='./assets/pokeball.png' alt='Pokeball'>
</div>
<h1 class='fancyFont' id='pokemonListHeader'><span>POKEMON LIST</span></h1>
<p class='smallFont' id='pokemonListParagraph'><span>Click on a pokemon to choose the best one for you!</span></p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why all paragraphs get span element?

justify-content: center;
align-content: center;
padding: 5vh 2.5vh;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

causes problems in desktop view. Try to set heigth of container to 100vh and justify-content to center

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what's the problem here, it looks like all is working well

flex: 1 1 20%;
text-align: center;
font-weight: 900;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imported font 'Bellota Text' got two weights Regular 400 and Bold 700


p {
font-size: 2.2vh;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont use vh or vw for font-size - this way is hard to control.
We set root (html) font-size to 10px so u can simply calculate it.
Default for body is atm 2.4 em = 24px.
If u want font-size be equal to 44px for h1 set it 4.4rem or for 28 px it will be 2.8rem

Copy link
Collaborator

@memeraki memeraki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try also set line-height to 1 in body it should help a bit with fit all items on screen for all views ;)

Copy link
Collaborator

@memeraki memeraki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only one little change is needed ;)

#choose-page {
width: 100%;
height: 100%;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

height needs be change to 100vh instead of 100% otherwise content dont fill all view height
image

Copy link
Collaborator

@memeraki memeraki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@memeraki memeraki merged commit 54b5fb1 into master Feb 3, 2021
@memeraki memeraki deleted the MNG-81-addPokemonChoosingScreen branch February 3, 2021 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants