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
104 changes: 101 additions & 3 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ body {
height: 100vh;
flex-direction: column;
backdrop-filter: blur(10px);
position: relative;
width: 50%;
height: 450px;
top: 5%;
margin: auto;
margin-top: 100px;
padding: 10px;
background: rgb(255, 255, 255, 0.4);
position: absolute;
left: 25%;
background: transparent;
color: #000;
margin-bottom: 100px;
left: 2%;
text-align: center;
border-radius: 5px;
}
Expand Down Expand Up @@ -72,3 +76,97 @@ button:hover {
padding: 0px;
margin: 0px;
}

.footer{
display: flex;
width: 100%;
height: 150px;
margin-top:530%;
position: relative;
justify-content: space-around;
background-color: white;
border-top:rgb(215 220 218);
border-top-style: solid;
border-width: 0.01px;
}
.footname{
padding-top: 2px;
color: black;
}
.footside2{
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 50px;
margin-top:-10px;
}
.footside p{
font-size: 5em;
color: white;
position: relative;
padding-top: 300;
}
.social{
position: relative;
display: flex;
padding-left: 0px;
padding-top: 0px;
}
.social_icon{
position: relative;
background-color: rgb(215 220 218);
margin-left: 10px;
width: 20px;
height: 20px;
padding-left: 2px;
padding-top:2px ;
align-items: center;
}
.social_icon img{
width: 15px;
height: 15px;
}
.footer_text{
font-size: 13px;
}
@media(max-width:672px){
.footer{
display: flex;
width: 150%;
height: 100px;
justify-content: space-around;
background-color: rgb(147, 40, 40);
}
.passenger-detail {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column;
backdrop-filter: blur(10px);
position: relative;
width: 70%;
height: 550px;
top: 5%;
margin: auto;
margin-top: 100px;
padding: 10px;
background: transparent;
color: #000;
margin-bottom: 100px;
left: 2%;
text-align: center;
border-radius: 5px;
}
.footside2{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 150px;
margin-top: -40px;
padding-top: 7px;
}
}

67 changes: 46 additions & 21 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width", initial-scale="1">
<http-equiv="X-UA-Compatible" content="IE=edge">
<title>Passenger Counter</title>
<link rel="stylesheet" href="index.css" >
<link rel="icon" type="image/x-icon" href="/train.ico">
</head>
<body>
<div class="passenger-detail">
<h1><strong>People Entered:</strong></h1>
<h2 id="count-el">0</h2>
<button id="increment-btn" onclick="increment(), adultincrement()">INCREMENT</button>

<Button id="save-btn" onclick="save()">SAVE</button>

Hey there kid: <button id="increment-btn" onclick="childincrement(), increment()">INCREMENT</button>

<p id="save-el">Previous Entries : </p>
<h3>Total Passenger Entries 👥 : </h3>
<p class="total" id="total-el"></p>

<h3>Adults entered :</h3>
<p class="total" id="adult-el"></p>

<h3>Children entered :</h3>
<p class="total" id="child-el"></p>


</div>
<div class="passenger-detail">
<h1><strong>People Entered:</strong></h1>
<h2 id="count-el">0</h2>
<button id="increment-btn" onclick="increment()">INCREMENT</button>
<Button id="save-btn" onclick="save()">SAVE</button>
<p id="save-el">Previous Entries : </p>
<h3>Total Passenger Entries 👥 : </h3>
<p class="total" id="total-el"></p>
</div>
<div className="footer">
<div className="footside">
<p class="footname">Passenger Counter</p>
</div>
<div class="footside2">
<p class="footer_text">
Connect with us
</p>
<div class="social">
<div className="social_icon">
<a title="FB" href="https://good.com">
<img alt="lo" src="https://res.cloudinary.com/slmedia/image/upload/v1652302113/samples/food/facebook-16x16-761599_vlf1xl.png"/>
</a>
</div>
<div className="social_icon">
<a title="LI" href="https://good.com">
<img alt="lo" src="https://res.cloudinary.com/slmedia/image/upload/v1652302113/samples/food/linkedin-16x16-761611_a8dv2c.png"/>
</a>
</div>
<div className="social_icon">
<a title="TW" href="https://good.com">
<img alt="lo" src="https://res.cloudinary.com/slmedia/image/upload/v1652302113/samples/food/fa_twitter-16x16-761629_rhy95g.png"/>
</a>
</div>
<div className="social_icon">
<a title="GH" href="https://github.com/HridoyHazard/BetterColor">
<img alt="lo" src="https://res.cloudinary.com/slmedia/image/upload/v1664749375/samples/food/github-16x16-761603_vwximd.png"/>
</a>
</div>
</div>
</div>
</section>
<script src="index.js"></script>

</body>
</html>