251 lines
4.2 KiB
CSS
251 lines
4.2 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
body {
|
|
height: 100vh;
|
|
background-color: #000;
|
|
background-image: url(https://www.callofduty.com/content/dam/atvi/callofduty/cod-touchui/blog/hero/mwiii/MWIII-OCM-TOUT.jpg);
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
li {
|
|
list-style: none;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
}
|
|
|
|
a:hover {
|
|
color: orange;
|
|
}
|
|
/* header */
|
|
header {
|
|
position: relative;
|
|
padding: 2rex;
|
|
}
|
|
|
|
.navbar {
|
|
width: 100%;
|
|
height: 60px;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
align-self: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.navbar .logo a {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.navbar .links {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
.navbar .toggle-btn {
|
|
color: #fff;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
display: none;
|
|
}
|
|
|
|
.action_btn {
|
|
background-color: orange;
|
|
color: #fff;
|
|
padding: 0.5rem 1rem;
|
|
border: none;
|
|
outline: none;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: scale 0.2 ease;
|
|
}
|
|
|
|
.action_btn:hover {
|
|
scale: 1.05;
|
|
color: #fff;
|
|
}
|
|
|
|
.action_btn:active {
|
|
scale: 0.95;
|
|
}
|
|
|
|
.login {
|
|
scale: 1.2;
|
|
background-color: orange;
|
|
margin: 1.5;
|
|
}
|
|
|
|
/* DROPDOWN MENU */
|
|
.dropdown_menu {
|
|
display: none;
|
|
position: absolute;
|
|
right: 2rem;
|
|
top: 60px;
|
|
height: 0;
|
|
width: 300px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(15px);
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
}
|
|
|
|
.dropdown_menu.open {
|
|
height: 240px;
|
|
}
|
|
|
|
.dropdown_menu li {
|
|
padding: 0.7rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.dropdown_menu .action_btn {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
|
|
/* HERO */
|
|
section#hero {
|
|
height: calc(100vh - 60px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
color: #fff;
|
|
}
|
|
|
|
#hero h1 {
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* RESPONSIVE DESIGN */
|
|
@media(max-width: 992px){
|
|
.navbar .links,
|
|
.navbar .action_btn {
|
|
display: none;
|
|
}
|
|
|
|
.navbar .toggle-btn{
|
|
display: block;
|
|
}
|
|
|
|
.dropdown_menu {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
/* footer */
|
|
footer {
|
|
background-color: #000000;
|
|
color: #fff;
|
|
padding: 20px 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.footer-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: left;
|
|
font-size: small;
|
|
}
|
|
|
|
.footer-links {
|
|
list-style: none;
|
|
padding: 0;
|
|
font-size: small;
|
|
}
|
|
|
|
.footer-links li {
|
|
display: inline-block;
|
|
margin: 0 10px;
|
|
}
|
|
|
|
.footer-links li a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer-links li a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* login and signup */
|
|
|
|
.login-container {
|
|
width: 300px;
|
|
margin: 100px auto;
|
|
padding: 20px;
|
|
background-color: #007bff;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
color: white;
|
|
background-image: url(https://pics.craiyon.com/2023-09-23/f73785344017460394781c52dda41e30.webp);
|
|
}
|
|
|
|
h2 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
color: #fff;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
input[type="email"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid #000000;
|
|
border-radius: 3px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
input[type="submit"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
background-color: #007bff;
|
|
border: none;
|
|
border-radius: 3px;
|
|
color: #fff;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="submit"]:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
.signup-container {
|
|
width: 300px;
|
|
margin: 100px auto;
|
|
padding: 20px;
|
|
background-color: #007bff;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
color: #fff;
|
|
background-image: url(https://pics.craiyon.com/2023-09-23/f73785344017460394781c52dda41e30.webp);
|
|
}
|