Skip to content

Commit

Permalink
Merge pull request #7 from Anubhavprogramer/Anubhav
Browse files Browse the repository at this point in the history
Home page Complete and next page added ...
  • Loading branch information
MSami625 authored Aug 25, 2023
2 parents 276e21a + b54c4a8 commit 02df812
Show file tree
Hide file tree
Showing 7 changed files with 453 additions and 175 deletions.
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
}
219 changes: 112 additions & 107 deletions countries/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,124 +9,129 @@

</head>
<body>

<div class="container">
<div class="card1">

<h2 class="heading">Where in the World?</h2>
<button class="mode">&#127769 Dark mode</button>

<div class="mode-container ">
<img class="night-mode"src="noun-dark-mode-4066359.png" alt="">
<button class="mode">Dark mode</button>
</div>
<div class="card2">
</div>
<div class="container-2">
<div class="card2 ">
<div class="search-bar">
<input type="text" id="searchInput" placeholder="&#128269 Search for a country...">
</div>
<div class="select-bar">
<select id="continentSelect">
<option value="" selected >Select a region</option>
<option value="Africa">Africa</option>
<option value="Asia">Asia</option>
<option value="Europe">Europe</option>
<option value="America">North America</option>
<option value="Ocenia">South America</option>
</select>
<button id="searchButton"><img src="searchbar.png" alt="Search"></button>
<input type="text" id="searchInput" placeholder="search for a country...">
</div>
</div>
<select id="continentSelect">
<option value="Africa">Africa</option>
<option value="Asia">Asia</option>
<option value="Europe">India</option>
<option value="America">North America</option>
<option value="Ocenia">South America</option>
</select>

</div>


<!-- card part -->
<div class="card-container">
<div class="first-deck">
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>




<!-- card part -->
<div class="card-container">
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="second-deck">
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<strong>Region:</strong><span>Europe</span>
<strong>Population:</strong><span>999999999</span>
<strong>Capital:</strong><span>Berlin</span>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
<div class="card">
<div class="flag-container">
<img src="germany-flag.png" alt="">
</div>
<div class="country-container">
<h4>Germany</h4>
<span><strong>Population:</strong>999999999</span>
<span><strong>Region:</strong>Europe</span>
<span><strong>Capital:</strong>Berlin</span>
</div>
</div>
</div>




<!-- js link -->
Expand Down
150 changes: 150 additions & 0 deletions countries/src/next_page.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
* {
padding: 0;
margin: 0;
background-color: hsl(207, 26%, 17%);
}
.container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px 11%;
background-color: hsl(209, 23%, 22%);
}

.heading {
background-color: hsl(209, 23%, 22%);
color: white;
font-family: Nunito Sans;
}

.mode-container {
background-color: hsl(209, 23%, 22%);
display: flex;
align-items: center;
}

.night-mode {
width: 15px;
}

.mode {
background-color: hsl(209, 23%, 22%);
padding: 0px 12px;
color: #fff;
border: none;
cursor: pointer;
font-family: Nunito Sans;
}

.container-2 {
padding: 15px 11%;
display: flex;
justify-content: space-between;
align-items: center;
}
.back{
width: 130px;
height: 35px;
border: none;
color: white;
border-radius: 5px;
background-color: hsl(209, 23%, 22%);
box-shadow: 0px 0px 10px 0px black;
font-family: Nunito Sans;
}
.data-container{
display: flex;
justify-content: space-between;
align-items: center;
color: white;
font-family: Nunito Sans;
padding: 0px 11%;
height: 100vh;
}
.flag-container {
width: 500px;
overflow: hidden;
}

.flag-container > img {
width: 100%;
height: 100%;
}
.country-data{
/* padding-top: 40px; */
padding-left: 70px;
width: 50%;
height: 300px;
}
.country-data > h4{
font-size: 30px;
}
.data{
display: flex;
flex-wrap: wrap;
justify-content: left;
}
.data > span{
padding-right: 130px;
padding-top: 10px;
font-size: 13px;
}
.footer{
padding-top: 20px;
margin-top: 10px;
}
.footer> strong{
padding-right: 10px;
}
.footer > span{
font-size: 13px;
margin-top: 200px;
padding: 5px 30px;
background-color: hsl(209, 23%, 22%);
}

@media screen and (max-width: 1340px) {
.data > span{
padding-right: 100px;
}
}
@media screen and (max-width:1235px) {
.data > span{
padding-right: 60px;
}

.flag-container {
width: 400px;
overflow: hidden;
}
.data-container{
display: flex;
justify-content: left;
padding: 4px 11%
}
.country-data{
padding-top: 40px;
padding-left: 20px;
}

}
@media screen and (max-width:1007px) {
.data-container{
flex-direction: column;
}
.flag-container {
width: 400px;
overflow: hidden;
}
.country-data{
/* padding-top: 40px; */
padding-left: 10px;
}

}
@media screen and (max-width:777px) {
.data-container{
justify-content: left;
}

}
Loading

0 comments on commit 02df812

Please sign in to comment.