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

Project5 #217

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
71 changes: 71 additions & 0 deletions Project_1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Portfolio</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>

<header>
<div class="header">
<a href="#default" class="logo">Portfolio</a>
<div class="header-right">
<a class="active" href="#home">Home</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#about">Blog</a>
</div>
</div> 
</header>

<img src="https://cdn.pixabay.com/photo/2016/03/09/09/17/computer-1245714_960_720.jpg" alt="Img"/>

<h3>Contact Form</h3>

<div class="container">
<form action="">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email..">

<label for="lname">number</label>
<input type="number" id="number" name="number" placeholder="Your number..">

<label for="fname">fname</label>
<input type="fname" id="fname" name="fname" placeholder="Your Name..">

<label for="fname">Lname</label>
<input type="Lname" id="Lname" name="Lname" placeholder="Your Lname..">
<input type="submit" value="Submit">
</form>
</div>


<h2>HTML Table</h2>

<table>
<tr>
<th>project</th>
<th>language used</th>
<th>Dec</th>
</tr>
<tr>
<td>Sortlink</td>
<td>Nodejs</td>
<td>short the links</td>
</tr>


</table>


<footer>
<p>Author: Mahendra singh</p>
<p><a href="#">Contact</a></p>
</footer>

</body>
</html>
110 changes: 110 additions & 0 deletions Project_2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css" />

</head>
<body>

<div class="topnav" id="myTopnav">
<h1><a href="">Portfolio</a></h1>
<a href="#home">Home</a>
<a href="#contact">Contact</a>
<a href="#about">About</a>
<a href="#">Blog</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">
<i class="fa fa-bars"></i>
</a>
</div>




<center>
<img src="https://cdn.pixabay.com/photo/2016/03/09/09/17/computer-1245714_960_720.jpg" alt="Img" class="responsive"/>
</center>




<center>
<form action="">
<div class="container">
<form action="/action_page.php">
<div class="row">
<div class="col-25">
<label for="fname">Email</label>
</div>
<div class="col-75">
<input type="email" id="email" name="email" placeholder="Your email..">
</div>
</div>
<div class="row">
<div class="col-25">
<label for="lname">Number</label>
</div>
<div class="col-75">
<input type="number" id="lname" name="number" placeholder="Your Number..">
</div>
</div>

<div class="row">
<div class="col-25">
<label for="lname">First name</label>
</div>
<div class="col-75">
<input type="text" id="Fname" name="fname" placeholder="Your First name..">
</div>
</div>

<div class="row">
<div class="col-25">
<label for="lname">Last name</label>
</div>
<div class="col-75">
<input type="text" id="Fname" name="lname" placeholder="Your last name..">
</div>
</div>
<input type="submit" value="Submit" class="submit">
</form>
</center>

<h2>HTML Table</h2>

<table>
<tr>
<th>project</th>
<th>language used</th>
<th>discretion</th>
</tr>
<tr>
<td>Sortlink</td>
<td>Nodejs</td>
<td>short the links</td>
</tr>


</table>


<footer>
<p>Author: Mahendra singh</p>
<p><a href="#">Contact</a></p>
</footer>


<script>
function myFunction() {
var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
</script>

</body>
</html>
159 changes: 159 additions & 0 deletions Project_2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}

.topnav {
overflow: hidden;
background: linear-gradient(to right, #c94b4b, #4b134f);
}

.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

.topnav a:hover {
background-color: #ddd;
color: black;
}



.topnav .icon {
display: none;
}

@media screen and (max-width: 600px) {
.topnav a:not(:first-child) {display: none;}
.topnav a.icon {
float: right;
display: block;
}
}

@media screen and (max-width: 600px) {
.topnav.responsive {position: relative;}
.topnav.responsive .icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
}

.responsive {
max-width: 100%;
height: auto;
}


input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}
input[type=email], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}

input[type=number], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}

label {
padding: 12px 12px 12px 0;
display: inline-block;
}

input[type=submit] {
background-color: #4CAF50;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
float: right;
}

input[type=submit]:hover {
background-color: #45a049;
}

.container {
border-radius: 5px;
padding: 20px;
color:white;
}

.col-25 {
float: left;
width: 25%;
margin-top: 6px;
}

.col-75 {
float: left;
width: 75%;
margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.col-25, .col-75, input[type=submit] {
width: 100%;
margin-top: 5px;
}
}
.submit{
margin-top:10px;
}

table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
padding: 20px;
margin-right: 30px;

}

th, td {
text-align: left;
padding: 16px;
}
footer {
text-align: center;
padding: 3px;
background: linear-gradient(to right, #ed213a, #93291e);
color: white;
}
Loading