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
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

Binary file added HTML/.index.html.swp
Binary file not shown.
74 changes: 74 additions & 0 deletions HTML/index.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, initial-scale=1.0">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ"
crossorigin="anonymous">
<link rel="stylesheet"
href="../css/style.css">

<title>SingIn</title>
</head>
<body class="content">
<div class="container">
<div class="row">
<div class="col">
<h1>Let's talk about everything!</h1>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Ab
harum vel asperiores porro perspiciatis illo? Laborum,
magnam
enim vitae a nisi, quam soluta autem similique adipisci
error
quas tempore? Molestias?
</p>
<img src="../images/undraw-contact.svg"
alt="Background Image" width="500px">
<div class="mapouter">
<div class="gmap_canvas">
<iframe class="gmap_iframe" frameborder="0"
scrolling="no" marginheight="0" marginwidth="0"
src="https://maps.google.com/maps?width=600&amp;height=400&amp;hl=en&amp;q=bbs,baghdad,iraq&amp;t=&amp;z=14&amp;ie=UTF8&amp;iwloc=B&amp;output=embed"></iframe>
<a href="https://gachanox.io/">Gacha Nox</a>
</div>
</div>
</div>
<div class="col">
<form>
<div class="form-outline mb-2">
<input type="text" class="form-control"
placeholder="Your Name">
</div>
<div class="form-outline mb-2">
<input type="email" class="form-control"
placeholder="Email">
</div>
<div class="form-outline mb-2">
<input type="text" class="form-control"
placeholder="Subject">
</div>
<div class="form-outline mb-2">
<input type="text" class="form-control"
placeholder="Write your message">
</div>
<button type="button"
class="btn btn-primary btn-block mb-2">Send Message</button>
</form>
</div>
<div class="col-12">
<iframe width="878" height="494"
src="https://www.youtube.com/embed/hLQl3WQQoQ0"
title="Adele - Someone Like You (Official Music Video)"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe>
</div>
</div>
</div>
</body>
</html>
27 changes: 25 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.content {
padding: 7rem 0;
display: flex;
flex-wrap: wrap;
padding: 7rem 0 !important;
}

.form-control {
border: none;
background: #f3f3f3;
Expand Down Expand Up @@ -55,9 +58,29 @@
box-shadow: none;
}

.form-group{
.form-group {
margin-bottom: 1rem;
}

#message {
resize: vertical;
}

.mapouter {
position: relative;
text-align: right;
width: 600px;
height: 400px;
}

.gmap_canvas {
overflow: hidden;
background: none !important;
width: 600px;
height: 400px;
}

.gmap_iframe {
width: 600px !important;
height: 400px !important;
}
57 changes: 57 additions & 0 deletions signin_Grid/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>SingIn</title>
</head>
<body>
<div class="container">
<div class="item">
<h1>Let's talk about everything!</h1>
<p style="padding: 10px;">
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Ab
harum vel asperiores porro perspiciatis illo? Laborum,
magnam
enim vitae a nisi, quam soluta autem similique adipisci
error
quas tempore? Molestias?
</p>
<img src="undraw-contact.svg"
alt="Background Image" width="80%" height="80%">

</div>
<div class="form">
<form onsubmit="validationFrom(event)">
<div class="form-outline">
<input type="text" class="form-control" id="name"
placeholder="Your Name">
</div>
<div class="form-outline">
<input type="email" class="form-control" id="email"
placeholder="Email">
</div>
<div class="form-outline">
<input type="text" class="form-control" id="subject"
placeholder="Subject">
</div>
<div class="form-outline">
<textarea class="form-control" id="message"
placeholder="Write your message"></textarea>
</div>
<button type="submit" class="btn">
Send Message
</button>
<div id="errorMessage" style="display: none; color: red;">
</div>
<div id="successMessage" style="display: none;color: green;">
Successfully submitted data!
</div>
</form>
</div>
</div>
<script src="validaion.js"></script>
</body>
</html>
55 changes: 55 additions & 0 deletions signin_Grid/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.container {
margin: 20px;
padding: 3rem;
display: grid;
/* grid-template-columns: 50% 50%; */
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 50px;
align-items: center;
}

.item,
.form {
width: 90%;
}

.form-control {
border: none;
background: #f3f3f3;
width: 90%;
border-radius: 5px;
margin-bottom: 5px;
padding: 10px;
}

.form-control:active,
.form-control:focus {
outline: none;
-webkit-box-shadow: none;
box-shadow: none;
border-color: #000;
background: #f3f3f3;
border: 2px solid black
}

.col-form-label {
color: #000;
}

.btn,
.form-control {
height: 50px;
}

.btn {
border: none;
border-radius: 4px;
background: #3f3d56;
color: #fff;
padding: 15px 20px;
margin: 10px 0px 20px 0px;
}

/* .form-control:focus:invalid{
border: 2px solid red;
} */
1 change: 1 addition & 0 deletions signin_Grid/undraw-contact.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions signin_Grid/validaion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
function validationFrom(event) {
event.preventDefault();
let name = document.getElementById("name");
let email = document.getElementById("email");
let subject = document.getElementById("subject");
let message = document.getElementById("message");
let error = document.getElementById("errorMessage");
let success = document.getElementById("successMessage")

if (name.value == "") {
// alert("Enter your name");
name.focus();
name.style.borderColor = "red"
error.innerText = "ERROR: Enter your name";
error.style.display = "block";
setTimeout(function () { error.style.display = "none"; }, 2000);
return false;
}
if (email.value == "") {
// alert("Enter your email");
email.focus();
email.style.borderColor = "red"
error.innerText = "ERROR: Enter your email";
error.style.display = "block";
setTimeout(function () { error.style.display = "none"; }, 2000);
return false;
}
//Check email format
let emailFormat = /^[a-zA-Z0-9_][email protected]$/i;
if (!emailFormat.test(email.value)) {
// alert("ERROR: Invalid email format [Gmail account only]");
email.focus();
email.style.borderColor = "red";
error.innerText = "ERROR: Invalid email format [Gmail account only]";
error.style.display = "block";
setTimeout(function () { error.style.display = "none"; }, 2000);
return false;
}

if (subject.value == "") {
// alert("Enter the subject");
subject.focus();
subject.style.borderColor = "red"
error.innerText = "ERROR: Enter the subject";
error.style.display = "block";
setTimeout(function () { error.style.display = "none"; }, 2000);
return false;
}
if (message.value == "") {
// alert("Enter your message");
message.focus();
message.style.borderColor = "red"
error.innerText = "ERROR: Enter your message";
error.style.display = "block";
setTimeout(function () { error.style.display = "none"; }, 2000);
return false;
}
if ((name.value != "") && (email.value != "") && (subject.value != "") && (message.value != "")) {
success.style.display = "block";
setTimeout(function () { success.style.display = "none"; }, 2000);
}
}