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

Adicionados os detalhes do Pokémon e algumas modificações. #275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
# Trilha JS Developer - Pokedex

Esse projeto da Pokédex foi desenvolvido durante o Bootcamp da [Digital Innovation One - DIO]([URL](https://web.dio.me/home)) sobre Desenvolvimento Frontend com Angular. Trata-se de uma aplicação que utiliza a [PokeApi](https://pokeapi.co/) para apresentar detalhes sobre os Pokémon, incluindo suas habilidades. O desenvolvimento da aplicação foi utilizando JavaScript, HTML e CSS. A Pokédex proporciona aos usuários a oportunidade de selecionar e explorar informações sobre um Pokémon específico. Esse projeto teve como inspiração o projeto da [Camila Correia](https://github.com/Camesis/js-developer-pokedex), onde foi compreendido e aplicando conforme desejado.

### * Homepage
![Home](/assets/img/pokemons-home.png)

### * Detalhe do Pokémon
![Detalhes do Pokémon](/assets/img/details-pokemon.png)

267 changes: 267 additions & 0 deletions assets/css/details-pokemon.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
body {
overflow: hidden;
}

h1 {
text-transform: capitalize;
}

.poke-wrapper {
max-width: 992px;
margin: 0 auto;
}

.content-pokemon {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}

.content-pokemon .normal {
background-color: #a6a877;
}

.content-pokemon .grass {
background-color: #77c850;
}

.content-pokemon .fire {
background-color: #ee7f30;
}

.content-pokemon .water {
background-color: #678fee;
}

.content-pokemon .electric {
background-color: #f7cf2e;
}

.content-pokemon .ice {
background-color: #98d5d7;
}

.content-pokemon .ground {
background-color: #dfbf69;
}

.content-pokemon .flying {
background-color: #a98ff0;
}

.content-pokemon .poison {
background-color: #a040a0;
}

.content-pokemon .fighting {
background-color: #bf3029;
}

.content-pokemon .psychic {
background-color: #f65687;
}

.content-pokemon .dark {
background-color: #725847;
}

.content-pokemon .rock {
background-color: #b8a137;
}

.content-pokemon .bug {
background-color: #a8b720;
}

.content-pokemon .ghost {
background-color: #6e5896;
}

.content-pokemon .steel {
background-color: #b9b7cf;
}

.content-pokemon .dragon {
background-color: #6f38f6;
}

.content-pokemon .fairy {
background-color: #f9aec7;
}

.content-pokemon img {
width: 15rem;
height: 15rem;
padding: 1rem;
}

.content-pokemon .types {
padding: 0;
margin: 0;
list-style: none;
}

.content-pokemon .description {
margin: 2rem 3rem;
text-align: center;
padding: 0;
font-size: 0.9rem;
font-weight: 400;
color: #2d2d2d;
}

.content-pokemon .types .type {
color: #fff;
padding: 0.25rem 0.5rem;
margin: 0.25rem 0;
min-width: 5rem;
font-size: 0.9rem;
border-radius: 1rem;
filter: brightness(1.1);
text-align: center;
}

.pokemon-detail-footer {
width: 100%;
margin: 0rem 3rem;
background-color: #ffff;
border-radius: 50px;
height: 100dvh;
}

.pokemon-detail-footer ul {
margin: 0 3rem;
padding: 0;
list-style: none;
text-transform: uppercase;
}

.pokemon-detail-footer .stats-container .stats {
display: flex;
align-items: center;
gap: 1rem;
}
.pokemon-detail-footer .stats-container .stats p {
min-width: 30px;
}

.pokemon-detail-footer .stats-container .progress-bar {
width: 100%;
height: 2rem;
background-color: #dddddd;
border-radius: 6px;
position: relative;
}
.pokemon-detail-footer .stats-container .progress-bar .progress {
height: 100%;
border-radius: 6px;
position: absolute;
}

.pokemon-detail-footer .stats-container .stats :first-child {
flex: 1;
}

.pokemon-detail-footer .stats-container .stats :nth-child(2) {
flex: 1;
}

.pokemon-detail-footer .stats-container .stats :nth-child(3) {
flex: 9;
}

#nav {
display: flex;
justify-content: space-around;
align-items: center;
gap: 1rem;
padding: 1rem;
}

.nav-button {
background-color: #2d2d2d;
color: #ffffff;
padding: .4rem;
border-radius: 6rem;
height: 50px;
width: 100px;
display: flex;
justify-content: center;
align-items: center;
font-weight: 700;
font-size: 18px;
cursor: pointer;
}

.navbar .normal {
background-color: #a6a877;
}

.navbar .grass {
background-color: #77c850;
}

.navbar .fire {
background-color: #ee7f30;
}

.navbar .water {
background-color: #678fee;
}

.navbar .electric {
background-color: #f7cf2e;
}

.navbar .ice {
background-color: #98d5d7;
}

.navbar .ground {
background-color: #dfbf69;
}

.navbar .flying {
background-color: #a98ff0;
}

.navbar .poison {
background-color: #a040a0;
}

.navbar .fighting {
background-color: #bf3029;
}

.navbar .psychic {
background-color: #f65687;
}

.navbar .dark {
background-color: #725847;
}

.navbar .rock {
background-color: #b8a137;
}

.navbar .bug {
background-color: #a8b720;
}

.navbar .ghost {
background-color: #6e5896;
}

.navbar .steel {
background-color: #b9b7cf;
}

.navbar .dragon {
background-color: #6f38f6;
}

.navbar .fairy {
background-color: #f9aec7;
}
11 changes: 10 additions & 1 deletion assets/css/global.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
* {
font-family: 'Roboto', sans-serif;
font-family: "Roboto", sans-serif;
box-sizing: border-box;
}

a {
text-decoration: none;
color: #2d2d2d;
}

body {
background-color: #f6f8fc;
}
Expand All @@ -14,6 +19,10 @@ body {
background-color: #fff;
}

.content h1 {
color: #2d2d2d;
}

@media screen and (min-width: 992px) {
.content {
max-width: 992px;
Expand Down
Loading