Skip to content

Commit

Permalink
Merge pull request #209 from MastersAcademy/3-forms_igor0806
Browse files Browse the repository at this point in the history
add file form.css, form.html and succes.html
  • Loading branch information
anna-vrana-moc authored Oct 30, 2023
2 parents 74267c0 + 809be78 commit dfad82a
Show file tree
Hide file tree
Showing 7 changed files with 307 additions and 5 deletions.
74 changes: 74 additions & 0 deletions homeworks/igor.orel_igor0806/GamesProject/form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!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>Form</title>
<link rel="stylesheet" href="styles/form.css">
</head>
<body>

<!-- Header -->
<header class="intro">
<div class="nav">
<div class="logo">
<img src="icon/logo.svg" alt="img">
</div>

<div class="nav-menu">
<ul class="link_list">

<li class="link">
<a class="nav-link" href="./games.html">Games</a>
</li>

<li class="link">
<a class="nav-link" href="./index.html">About</a>
</li>

<li class="link">
<a class="nav-link" href="./form.html">Login</a>
</li>

</ul>
</div>
</div>
</header>

<h1 class="login_title">Login page</h1>
<form class="login_form" action="./succes.html">
<label for="email">Email</label>
<input type="email" class="login_input" id="email" name="email" placeholder="Enter your email address" required>
<label for="password">Password</label>
<input type="password" class="login_input" id="password" name="password" placeholder="Enter your password" required="">
<input type="checkbox" id="robot" name="not_a_robot" required="">
<label for="robot">I’m not a robot</label>
<input type="submit" value="Login">
</form>

<footer class="footer">
<div class="social">
<a href="#">
<img src="icon/facebook.svg" alt="img">
</a>

<a href="#">
<img src="icon/in.svg" alt="img">
</a>

<a href="#">
<img src="icon/insta.svg" alt="img">
</a>
</div>

<p class="footer_text">
Made with 💗 on course <a class="footer_link" href="https://www.mastersacademy.education/frontend-
for-beginners-it">'Frontend for beginners' from Masters Academy in 2023,</a> by Igor</p>

</footer>
</body>
</html>
37 changes: 35 additions & 2 deletions homeworks/igor.orel_igor0806/GamesProject/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>About</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="styles/style.css">
</head>

<body>
Expand All @@ -32,14 +32,47 @@
</li>

<li class="link">
<a class="nav-link" href="#">Login</a>
<a class="nav-link" href="./form.html">Login</a>
</li>

</ul>
</div>
</div>
</header>

<form class="form_games" action="#">
<div class="filter_select">
<label for="Name"></label>
<select id="Name" name="select">
<option value="genre" selected disabled>Genre</option>
<option value="sport">Sport</option>
<option value="shooter">Shooter</option>
<option value="racing">Racing</option>
<option value="horror">Horror</option>
</select>
</div>

<div class="filter_radio">
<input type="radio" id="platform" name="radio" value="Platform">
<label for="platform">Platform</label>
<input type="radio" id="online" name="radio" value="Online_games">
<label for="online">Online games</label>
</div>

<div class="filter_boxes">
<input type="checkbox" class="filter_checkbox" id="New" name="New" value="New">
<label for="new">New</label>
<input type="checkbox" class="filter_checkbox" id="Old" name="Old" value="Old">
<label for="old">Old</label>
</div>

<div class="filter_search">
<input type="search" id="search" name="search" placeholder="Search">
<input type="submit" value="Apply">
</div>

</form>

<h2 class="title_about">Study project "Games"</h2>

<div class="card_cards">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions homeworks/igor.orel_igor0806/GamesProject/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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>GamesProject</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>

Expand All @@ -30,7 +30,7 @@
</li>

<li class="link">
<a class="nav-link" href="#">Login</a>
<a class="nav-link" href="./form.html">Login</a>
</li>

</ul>
Expand Down
125 changes: 125 additions & 0 deletions homeworks/igor.orel_igor0806/GamesProject/styles/form.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

body {
font-family: "Roboto", sans-serif;
color: #221F1F;
margin: 0;
}

.nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
background-color: #EF4934;
}

.link_list {
list-style: none;
color: #FFF;
display: flex;
gap: 50px;
}

.link:hover {
text-decoration: underline;
}

.nav-link {
text-decoration: none;
color: #FFF;
font-size: 16px;
font-weight: 500;
}

.login_title {
text-align: center;
font-weight: 700;
font-size: 48px;
margin-top: 70px;
margin-bottom: 40px;
}

.login_form {
margin: 0 auto;
max-width: 533px;
}

.login_input {
width: 535px;
border-radius: 7px;
border: .006em solid #A9A9A9;
font-size: 14px;
}

input[type="email"],
input[type="password"] {
display: block;
margin: 20px 0 40px;
padding: 30px 20px;
color: #A9A9A9;
font-weight: 400;
font-size: 14px;
}

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

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

input[type="checkbox"] {
border: #EF4934;
margin-bottom: 40px;
font-size: 14px;
font-weight: 400;
color: #221F1F;
}

input[type="submit"] {
width: 575px;
font-weight: 600;
font-size: 22px;
background-color: #EF4934;
color: #FFF;
padding: 27px 0;
margin-bottom: 170px;
border: none;
border-radius: 6px;
}

/* Footer */

.footer {
background-color: #221F1F;
padding: 30px;
}

.social {
display: flex;
justify-content: center;
gap: 20px;
}

.footer_text {
color: #FFF;
text-align: center;
}

a {
text-decoration: none;
}

.footer_link {
color: #FFF;
}

.center_title {
text-align: center;
padding-top: 200px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,51 @@ body {
font-weight: 500;
}

/* Form */

.form_games {
background-color: #221F1F;
padding: 15px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}

input[type="radio"] {
margin-left: 70px;
border: #F2F2F2;
}

label[for="platform"],
label[for="online"],
label[for="new"],
label[for="old"] {
color: #FFF;
}


input[type="submit"] {
background-color: #EF4934;
color: #FFF;
margin: 0;
padding: 12px 20px;
border-radius: 0 6px 6px 0;
}

.filter_search {
display: flex;
}

input[type="search"] {
background-image: url("../icon/search_form.svg");
background-position: 11px 7px;
background-repeat: no-repeat;
padding: 10px 90px 10px 50px;
border-radius: 6px;
margin-right: -7px;
}
/* --------- */

.hero {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -68,7 +113,7 @@ body {

.footer {
background-color: #221F1F;
padding: 20px;
padding: 30px;
}

.social {
Expand Down
21 changes: 21 additions & 0 deletions homeworks/igor.orel_igor0806/GamesProject/succes.html
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>Success!</title>
<link rel="stylesheet" href="styles/form.css">
</head>
<body class="body_success">
<main class="center_title">
<h1>Success!</h1>
<form action="games.html">
<input type="submit" value="Login">
</form>
</main>
</body>
</html>

0 comments on commit dfad82a

Please sign in to comment.