Skip to content
Snippets Groups Projects

Lab 2 added client files

Merged Valency Colaco requested to merge master into main
4 files
+ 860
0
Compare changes
  • Side-by-side
  • Inline
Files
4
client/client.css 0 → 100644
+ 282
0
/* For the navigation part */
#content,
#contact,
#cars,
#hours {
display: none;
}
/* For the content part */
p {
font-size: 16px;
color: #333;
line-height: 1.5;
}
#welcome-paragraph {
font-weight: bold;
color: #007bff;
}
.extra-big {
font-size: 24px;
color: #ff6347;
}
.opening-hours li {
font-size: 18px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
}
.opening-hours li:nth-child(odd) {
background-color: #ff80ed; /* Light Purple */
}
.opening-hours li:nth-child(even) {
background-color: #80ffaa; /* Light Green */
}
/* For the pre-loader part */
/* https://codepen.io/niyazpoyilan/pen/PGQKeK */
.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
padding: 1rem;
}
@media (max-width: 567px) {
h1 {
font-size: 7vw;
text-align: center;
}
}
/* Loader Styles start here */
.loader-wrapper {
--line-width: 5px;
--curtain-color: #f1faee;
--outer-line-color: #a8dadc;
--middle-line-color: #457b9d;
--inner-line-color: #1d3557;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:1000;
}
.loader {
display:block;
position: relative;
top:50%;
left:50%;
/* transform: translate(-50%, -50%); */
width:150px;
height:150px;
margin:-75px 0 0 -75px;
border:var(--line-width) solid transparent;
border-top-color: var(--outer-line-color);
border-radius:100%;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
z-index:1001;
}
.loader:before {
content:"";
position: absolute;
top:4px;
left:4px;
right:4px;
bottom:4px;
border:var(--line-width) solid transparent;
border-top-color: var(--inner-line-color);
border-radius:100%;
-webkit-animation: spin 3s linear infinite;
animation: spin 3s linear infinite;
}
.loader:after {
content:"";
position: absolute;
top:14px;
left:14px;
right:14px;
bottom:14px;
border:var(--line-width) solid transparent;
border-top-color: var(--middle-line-color);
border-radius:100%;
-webkit-animation: spin 1.5s linear infinite;
animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spin {
0% {
-webkit-transform: rotate(0deg);
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.loader-wrapper .loader-section {
position:fixed;
top:0;
background:var(--curtain-color);
width:51%;
height:100%;
z-index:1000;
}
.loader-wrapper .loader-section.section-left {
left:0
}
.loader-wrapper .loader-section.section-right {
right:0;
}
/* Loaded Styles */
.loaded .loader-wrapper .loader-section.section-left {
transform: translateX(-100%);
transition: all 0.7s 0.3s cubic-bezier(0.645,0.045,0.355,1.000);
}
.loaded .loader-wrapper .loader-section.section-right {
transform: translateX(100%);
transition: all 0.7s 0.3s cubic-bezier(0.645,0.045,0.355,1.000);
}
.loaded .loader {
opacity: 0;
transition: all 0.3s ease-out;
}
.loaded .loader-wrapper {
visibility: hidden;
transform:translateY(-100%);
transition: all .3s 1s ease-out;
}
/* For the Contact Form Part */
form {
max-width: 400px;
margin: 0 auto;
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 8px;
}
input,
textarea {
width: 100%;
padding: 8px;
margin-bottom: 12px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
input[type="submit"] {
background-color: #4caf50;
color: #fff;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #45a049;
}
/* The cars table stuff */
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
input {
width: 100%;
}
button {
padding: 5px 10px;
margin-right: 5px;
}
/* For the Modal Stuff */
/* Modal styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.7);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fefefe;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 400px;
margin: 0 auto;
border-radius: 5px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
\ No newline at end of file
Loading