Skip to content
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
212 changes: 212 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
* {
margin: 0%;
padding: 0%;
}
body {
background-image: url(./pic/bg.jpg);
background-repeat: no-repeat;
background-size: cover;
}
#container {
width: 100vw;
height: 100vh;
}
#nav {
width: 100%;
height: 25%;
display: flex;
justify-content: space-between;
}
#logo {
width: 60px;
height: 60px;
cursor: pointer;
}
#logoa {
margin-left: 2%;
margin-top: 5%;
width: min-content;
height: min-content;
text-decoration: none;
}
#pokemonlogo {
padding-top: 2%;
padding-left: 4%;
}
#homeabout {
cursor: pointer;
width: min-content;
height: 50%;
font-size: 40px;
color: #ffcb05;
stroke: #395ca6;
}
#homea {
text-decoration: none;
margin-right: 3%;
margin-top: 5%;
width: min-content;
height: min-content;
}

/* another div */
#content {
width: 100%;
height: 75%;
display: flex;
flex-direction: row;
}
#left {
width: 65%;
height: 100%;
display: flex;
flex-direction: column;
gap: 30px;
align-items: center;
justify-content: center;
}
#textabout {
width: 60%;
height: 60%;
border-radius: 70px;
background-color: white;
}
#textabout p {
width: 90%;
height: 90%;
font-size: larger;
text-align: center;
line-height: 50px;
padding-top: 6%;
padding-left: 3%;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
#btn-about {
width: 40%;
height: 10%;
background-color: white;
border-radius: 70px;
border: none;
font-size: larger;
cursor: pointer;
}
#btn-about a {
text-decoration: none;
color: black;
}
#btn-about:hover {
cursor: pointer;
box-shadow: 14px 8px 32px -10px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 14px 8px 32px -10px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 14px 8px 32px -10px rgba(0, 0, 0, 0.75);
transform: scale(0.9, 0.9);
transition-duration: 0.5s;
transition-timing-function: 1s;
transition-delay: 100ms;
}
#right {
width: 35%;
height: 100%;
}
#ash {
width: 90%;
height: 80%;
position: relative;
top: 20%;
}

@media (max-width: 767px) {
#homea {
display: none;
}
#pokemonlogo {
width: 200px;
height: 100px;
}
#nav {
display: flex;
justify-content: space-around;
}
#left {
margin: auto;
margin-bottom: 50px;
}
#textabout {
width: 90%;
height: auto;
background-color: rgb(255, 203, 5, 0.7);
color: white;
}
#textabout p {
font-size: medium;
line-height: 40px;
}
#right {
display: none;
}
#btn-about {
margin-bottom: 30px;
background-color: rgb(255, 203, 5, 0.7);
}
}

@media (min-width: 768px) and (max-width: 991px) {
#pokemonlogo {
display: none;
}
#nav {
display: flex;
justify-content: space-between;
}
#homea {
padding-right: 30px;
}
#pokemonlogo {
padding-left: 40px;
}
#textabout {
width: 70%;
height: 60%;
}
#textabout p {
font-size: medium;
line-height: 40px;
}
#left {
width: 80%;
height: auto;
}
#right {
width: 40%;
}
}
@media (min-width: 992px) and (max-width: 1200px) {
#pokemonlogo {
display: none;
}
#nav {
display: flex;
justify-content: space-between;
}
#homea {
padding-right: 30px;
}
#pokemonlogo {
padding-left: 40px;
}
#textabout {
width: 70%;
height: 45%;
}
#textabout p {
font-size: medium;
line-height: 40px;
}
#left {
width: 60%;

}
#right {
width: 40%;
}
}
41 changes: 41 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pokemon</title>
<link rel="stylesheet" href="./about.css">
</head>

<body>
<div id="container">
<div id="nav">
<a id="logoa" href="./home.html">
<img id="logo" src="./pic/logo.png" alt="logo">
</a>
<img id="pokemonlogo" src="./pic/pok.png" alt="pokemon">
<a id="homea" href="./home.html">
<h1 id="homeabout"> Pokemons </h1>
</a>
</div>
<div id="content">
<div id="left">
<div id="textabout">
<p>
Welcome to the world of Pokemon!
We are here to present to you the details of the main characters of the series in a distinctive
manner and full of exciting information.
On this site, you will find everything you need to know about the beloved Pokemon characters.
</p>
</div>
<button id="btn-about" type="button"><a href="./home.html">Pokemons</a></button>
</div>
<div id="right">
<img id="ash" src="./pic/ash.png" alt="ash">
</div>
</div>
</div>
</body>

</html>
137 changes: 137 additions & 0 deletions details.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
* {
margin: 0%;
padding: 0%;
}
body {
background-image: url(./pic/bg3.jpg);
background-repeat: no-repeat;
background-size: cover;
/* height: 100vh;
background-color: #407b8b; */
}
#container {
width: 100%;
height: 100vh;
}
#nav {
/* background-color: aqua; */
width: 100%;
height: 20%;
display: flex;
justify-content: space-between;
margin-bottom: 5%;
}
#logo {
width: 60px;
height: 60px;
cursor: pointer;
}
#logoa {
margin-left: 2%;
margin-top: 5%;
width: min-content;
height: min-content;
text-decoration: none;
}
#pokemonlogo {
padding-top: 2%;
padding-left: 4%;
}
#homeabout {
cursor: pointer;
width: min-content;
height: 50%;
font-size: 40px;
color: #ffcb05;
stroke: #395ca6;
}
#homea {
text-decoration: none;
margin-right: 3%;
margin-top: 5%;
width: min-content;
height: min-content;
}
#main-container {
width: 80%;
height: 55%;
margin: auto;
display: flex;
justify-content: space-around;
}
#text-container {
/* margin-left: 15%;
margin-top: 5%; */
background-color: #ecc971;
border-radius: 30px;
position: relative;
width: 50%;
box-shadow: 33px 28px 33px 0px rgba(0, 0, 0, 0.75);
-webkit-box-shadow: 33px 28px 33px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 33px 28px 33px 0px rgba(0, 0, 0, 0.75);
}
#txt-details {
/* border: 1px solid black; */
width: max-content;
font-size: 30px;
text-align: left;
margin-left: 10%;
margin-top: 5%;
font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
#pok-name {
font-weight: bolder;
color: #125063;
}
#img {
position: absolute;
left: 50%;
top: 45%;
}
#img img {
width: 400%;
height: auto;
}
@media (max-width: 767px) {
#text-container {
height: 70%;
width: 90%;
}
#pokemonlogo {
width: 200px;
height: 100px;
display: none;
}
#nav {
display: flex;
justify-content: space-around;
margin-bottom: 30%;
}
#txt-details {
text-align: left;
font-size: 30px;
}
#img-pok {
bottom: 25%;
right: 20%;
}
#img-pok img {
width: 200%;
height: 200%;
}
}
@media (min-width: 768px) and (max-width: 1000px) {
#txt-details {
text-align: left;
font-size: 30px;
line-height: 50px;
}
#img-pok {
bottom: 10%;
right: 6%;
}
#img-pok img {
width: 100%;
height: 100%;
}
}
Loading