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
202 changes: 202 additions & 0 deletions src/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
*{
margin: 0;
padding: 0;
}
:root {
--font-primary: "Bebas Neue", cursive;
--font-secondary: "Inter", sans-serif;
--color-dark-800: #212529;
--color-gray-400: #dddddd;
--base-transition: 0.4s ease;
--radius-10: 10px;
--color-purple-600: #7c27ce;
--color-light-100: #fff;
}


.firstPage{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
transition: var(--base-transition);
}

.page-heading {
font-family: var(--font-secondary);
font-size: 4rem;
letter-spacing: 2px;
text-align: center;
margin-bottom: 1rem;
color:greenyellow;
}

.input_container{
display: flex;
flex-direction: column;
margin-bottom: 1rem;
}


label,
input {
font-family: var(--font-secondary);
}

label{
margin-left: 2%;
color: greenyellow;
}


.lift-sim_input {
padding: 5px 10px;
font-size: 1rem;
border-radius: var(--radius-10);
margin-top: 5px;
min-width: 250px;
border: 2px solid var(--color-gray-400);
transition: var(--base-transition);
border-color: greenyellow;
}

.lift-sim_input:focus {
border-color: var(--color-dark-800);
}

.createLiftFloorButton{
margin-top: 1rem;
padding: 5px 10px;
font-size: 1.5rem;
font-family: var(--font-secondary);
border: 2px solid var(--color-gray-400);
border-radius: var(--radius-10);
cursor: pointer;
transition: var(--base-transition);
color: greenyellow;

}

.createLiftFloorButton:hover{
background-color: black;
color:white;
}

.buttonLift{
display: flex;
}

.button{
width:50px;
display: flex;
flex-direction: column;
margin: 11px 18px;
}

.button button{
margin: 2px;
}
.up{
font-size: 13px;
border-radius: 4px;
transition-duration: 0.4s;
background-color: white;
color: greenyellow
}
.down{
font-size: 13px;
border-radius: 4px;
transition-duration: 0.4s;
background-color: white;
color: greenyellow
}
.up:hover{
background-color: black;
color: white;
}
.down:hover{
background-color: black;
color: white;
}

.mainLift{
display: flex;
margin-left: 10px;
}
.lift{
width: 50px;
height: 60px;
background-color: greenyellow;
border: 2px solid black;
margin-right: 5px;
transition-property:transform;
transition-timing-function:ease-in;
}

.gates{
display: flex;

}
.gate1 , .gate2{
width: 25px;
height: 60px;
margin: 1px;
background-color:black;
transition: width 2.5s ease-in-out;
}
.gate1-move{
transform: translateX(-100%);
}

.gate2-move{
transform: translateX(100%);
}

/* second page ko none krh de rha hai */
.secondPage{
display: none;
margin: 4% auto;
}
.hrfloorName{
display: flex;
flex-direction: row;
margin: 3px;
}
hr{
flex-grow:1;
height: 1px;
border-top: 2px solid black;
}

h2 {
width: 100%;
text-align: center;
border-bottom: 1px solid #000;
line-height: 0.1em;
margin: 10px 0 20px;
}

h2 span {
background:#fff;
padding:0 10px;
}

.goToFirstPage{
font-size: 18x;
margin: 5px 0 10px 3px ;
background-color:rgb(15, 4, 4);
color: greenyellow;
width: 80px;
height: 30px;
cursor: pointer;
}

@media (width>500px){
.lift{
margin-right: 55px;
}
.mainLift{
margin-left: 50px;
}
}
30 changes: 30 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/main.css" />
<title>Linked List</title>
</head>

<body>
<div class="firstPage">
<h1 class="page-heading" >Lift Simulation</h1>
<div class="noOfFloor input_container">
<label for="floorNumber">Number of floors</label>
<input type="Number" id="floorNumber" class="lift-sim_input" placeholder="Enter Upto 7 floors" required/>
</div>
<div class="noOfLift input_container">
<label for="liftNumber">Number of lifts</label>
<input type="Number" id="liftNumber" class="lift-sim_input" placeholder="Enter Atleast 2 lifts" required/>
</div>
<button class="createLiftFloorButton">Simulate</button>
</div>
<div class="secondPage">
<button class="goToFirstPage">Back</button>
</div>
<script src="js/main.js"></script>
</body>
</html>
Loading