Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3-forms Dmytro Shevchenko. Added Login Page and filter. #205

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,55 @@
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<body class="game-page">
<header>
<img src="images/logo.svg" alt="Logo">
<div class="nav">
<ul class="nav-items">
<li>
<a class="cards-link" href="cards.html" title="Cards">Games</a>
<a class="cards-link" href="cards.html">Games</a>
</li>
<li>
<a class="about-link" href="index.html" title="About">About</a>
<a class="about-link" href="index.html">About</a>
</li>
<li>
<a class="login-link" href="login.html">Login</a>
</li>
</ul>
</div>
</header>
<main>
<section class="filter">
<form class="filter-form">
<div class="filter-select">
<label for="Name"></label>
<select id="Name" name="select" class="select-name">
<option value="Genre" disabled selected>Genre</option>
<option value="Race>">Race</option>
<option value="Action">Action</option>
<option value="OpenWorld">Open World</option>
</select>
</div>
<div class="filter-radio">
<input type="radio" id="Platform" name="Radio">
<label for="Platform">Platform</label>
<input type="radio" id="Online" name="Radio">
<label for="Online">Online Games</label>
</div>
<div class="filter-boxes">
<input type="checkbox" id="New" name="New" value="New" class="filter-checkbox">
<label for="New">New</label>
<input type="checkbox" id="Old" name="Old" value="Old" class="filter-checkbox">
<label for="Old">Old</label>
</div>
<div class="filter-search">
<input type="text" id="Search" name="Search" placeholder="Search" class="search-input">
<label for="Search"></label>
<input type="submit" value="Apply" class="search-button">
</div>
</form>
</section>

<h1 class="cards-h1">
Study project "Games"
</h1>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<body class="about-page">
<header>
<img src="images/logo.svg" alt="Logo">
<div class="nav">
<ul class="nav-items">
<li>
<a href="cards.html">Games</a>
<a class="cards-link" href="cards.html">Games</a>
</li>
<li>
<a href="index.html">About</a>
<a class="about-link" href="index.html">About</a>
</li>
<li>
<a class="login-link" href="login.html">Login</a>
</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Login Page</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body class="login-page">
<header>
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved
<img src="images/logo.svg" alt="Logo">
<div class="nav">
<ul class="nav-items">
<li>
<a class="cards-link" href="cards.html">Games</a>
</li>
<li>
<a class="about-link" href="index.html">About</a>
</li>
<li>
<a class="login-link" href="login.html">Login</a>
</li>
</ul>
</div>
</header>
<main class="login-main">
<h1 class="login-h1">
Login Page
</h1>
<section class="login-section">
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved
<form class="login-form" action="success-page.html">
<div class="form-group">
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email address" required>
</div>
<div class="form-group">
<label for="password">Password</label>
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved
<input type="password" id="password" name="password" placeholder="Enter your password" required>
</div>
<div class="checkbox-group">
<input type="checkbox" id="check" name="robot" class="login-checkbox" required>
<label for="check">I'm not a robot</label>
</div>
<input type="submit" value="Login" class="submit-button">
</form>
</section>
</main>
</body>
</html>
171 changes: 161 additions & 10 deletions homeworks/dmytro.shevchenko_dmytro-shevchenko1/GamesProject/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ body {
header {
max-width: 100%;
background-color: #EF4934;
margin-bottom: 50px;
display: flex;
align-items: center;
justify-content: space-between;
Expand All @@ -28,11 +27,25 @@ header {
text-decoration: none;
}

/*.nav-items a:visited {
.game-page .nav-items .cards-link {
text-decoration: underline;
text-underline-offset: 5px;
text-decoration-thickness: 0.01em;
}*/
text-underline-offset: 7px;
text-decoration-thickness: 1px;
}

.about-page .nav-items .about-link {
text-decoration: underline;
text-underline-offset: 7px;
text-decoration-thickness: 1px;
}

.login-page .nav-items .login-link {
text-decoration: underline;
text-underline-offset: 7px;
text-decoration-thickness: 1px;
}

/*about page*/

.intro {
color: #221F1F;
Expand All @@ -44,6 +57,7 @@ header {
gap: 70px;
padding-left: 53px;
padding-right: 53px;
margin-top: 60px;
}

.about-h1 {
Expand All @@ -54,17 +68,67 @@ header {
margin-top: 0;
}

.link {
color: #EF4934;
}

/*cards page*/

.filter {
background-color: #221F1F;
padding: 12px 53px;
font-size: 14px;
font-weight: 400;
color: #FFF;
}

.filter-form {
display: flex;
align-items: center;
justify-content: space-between;
}

.filter-search {
display: flex;
}

.search-input {
margin-right: 0;
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
padding: 12px 100px 12px 45px;
background-image: url("./images/search_logo.svg");
background-repeat: no-repeat;
background-position: 10px 9px;
border: #FFF;
}

.search-button {
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
margin-left: 0;
color: #FFF;
background-color: #EF4934;
border: none;
padding-left: 20px;
padding-right: 20px;
}

.select-name {
border-radius: 6px;
padding: 13px;
background-color: #333;
color: #FFF;
}

.cards-h1 {
color: #221F1F;
font-size: 48px;
font-weight: 700;
line-height: 32px;
margin-top: 40px;
margin-left: 53px;
margin-bottom: 50px;
}

.link {
color: #EF4934;
margin-bottom: 40px;
}

.cards {
Expand Down Expand Up @@ -112,3 +176,90 @@ header {
line-height: 18px;
margin-left: 10px;
}

/* login page */

.login-h1 {
font-size: 48px;
font-weight: 700;
margin-top: 80px;
margin-bottom: 60px;
}

.login-main {
display: flex;
flex-direction: column;
align-items: center;
}

.login-form {
display: flex;
flex-direction: column;
}
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved

.checkbox-group {
display: flex;
justify-content: flex-start;
font-size: 14px;
gap: 12px;
}

label[for="email"],
label[for="password"],
label[for="checkbox"] {
display: flex;
font-size: 22px;
font-weight: 600;
margin-bottom: 22px;
}

input[type="email"],
input[type="password"],
.login-checkbox {
padding: 30px 450px 30px 20px ;
margin-bottom: 40px;
font-size: 14px;
border: .006rem solid #A9A9A9;
border-radius: 6px;
}

input[type="email"]:focus,
input[type="password"]:focus {
border-bottom: 5px solid #EF4934;
}

.submit-button {
padding: 27px;
font-size: 22px;
font-weight: 600;
color: #FFF;
background-color: #EF4934;
border: none;
border-radius: 6px;
}
anna-vrana-moc marked this conversation as resolved.
Show resolved Hide resolved

/*success login page*/

.successful-page {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.successful-form {
display: flex;
flex-direction: column;
align-items: center;
}

.back-button {
padding: 27px;
font-size: 22px;
font-weight: 600;
color: #FFF;
background-color: #EF4934;
border: none;
border-radius: 6px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Succsess Login</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body class="successful-page">
<section class="successful-section">
<form action="cards.html">
<div class="successful-form">
<h1>Successful Login</h1>
<input type="submit" value="Back to the game page" class="back-button">
</div>
</form>
</section>
</body>
</html>