Journal
Journal
Ans :
Default.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="Hostel._Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Hostel Information Form</title>
<link href ="Styles.css" rel ="stylesheet" type ="text/css" />
<script src ="Validation.js" type ="text/javascript" /> </script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Personal Profile</h2>
<table>
<tr>
<td>Hosteler ID:</td>
<td><asp:TextBox ID="txtHostelerID"
runat="server"></asp:TextBox></td>
<td>DOB:</td>
<td><asp:TextBox ID="txtDOB" runat="server"></asp:TextBox></td>
</tr>
<tr>
<h3>Guardian Information</h3>
<table>
<tr>
<td>Guardian Name:</td>
<td><asp:TextBox ID="txtGuardianName"
runat="server"></asp:TextBox></td>
<td>Phone:</td>
<td><asp:TextBox ID="txtGuardianPhone"
runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>Address:</td>
<td><asp:TextBox ID="txtGuardianAddress"
runat="server"></asp:TextBox></td>
</tr>
</table>
Default.aspx.vb
Public Class _Default
Inherits System.Web.UI.Page
End Sub
Result.aspx
Public Class _Default
Inherits System.Web.UI.Page
End Sub
Result.aspx.vb
Public Class Result
Inherits System.Web.UI.Page
End Class
Validation.js
// Validation.js
function validateForm() {
var isValid = true;
// Hosteler ID
var hostelerID = document.getElementById("txtHostelerID").value;
if (hostelerID == "") {
document.getElementById("errorHostelerID").innerHTML = "Hosteler ID is
required";
isValid = false;
}
// Hosteler Name
var hostelerName = document.getElementById("txtHostelerName").value;
if (hostelerName == "") {
document.getElementById("errorHostelerName").innerHTML = "Hosteler Name is
required";
isValid = false;
}
// Email validation
var email = document.getElementById("txtEmail").value;
var emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (email == "" || !emailPattern.test(email)) {
document.getElementById("errorEmail").innerHTML = "Valid Email is
required";
isValid = false;
}
// Phone validation
var phone = document.getElementById("txtPhone").value;
var phonePattern = /^[0-9]{10}$/;
if (phone == "" || !phonePattern.test(phone)) {
return isValid;
}
OUTPUT :
Ans :
Register
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Register.aspx.vb"
Inherits="WebApplication4.Register" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Registration Page</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<form id="form1" runat="server">
<div class="form-container">
<h2>Registration Page</h2>
<label for="txtPassword">Password:</label>
<asp:TextBox ID="txtPassword" runat="server"
TextMode="Password"></asp:TextBox>
<label>Gender:</label>
<asp:RadioButton ID="rbtnMale" runat="server" GroupName="Gender"
Text="Male" />
<asp:RadioButton ID="rbtnFemale" runat="server" GroupName="Gender"
Text="Female" />
<label>Date of Birth:</label>
<asp:TextBox ID="txtDOB" runat="server" TextMode="Date"></asp:TextBox>
<label for="txtAddress">Address:</label>
<asp:TextBox ID="txtAddress" runat="server"
TextMode="MultiLine"></asp:TextBox>
<label for="ddlCountry">Country:</label>
<asp:DropDownList ID="ddlCountry" runat="server">
<asp:ListItem>India</asp:ListItem>
<asp:ListItem>USA</asp:ListItem>
<asp:ListItem>UK</asp:ListItem>
</asp:DropDownList>
<div class="form-buttons">
<asp:Button ID="btnSubmit" runat="server" Text="Submit"
OnClick="Submit_Click" />
<asp:Button ID="btnReset" runat="server" Text="Reset" />
</div>
</div>
</form>
</body>
</html>
Behind Register
Partial Class Register
Inherits System.Web.UI.Page
End Sub
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Login Page</title>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<form id="form1" runat="server">
<div class="form-container">
<h2>Login Page</h2>
<label for="txtPassword">Password:</label>
<asp:TextBox ID="txtPassword" runat="server"
TextMode="Password"></asp:TextBox>
<div class="form-buttons">
<asp:Button ID="btnLogin" runat="server" Text="Login"
OnClick="Login_Click" />
</div>
</div>
</form>
</body>
</html>
Behind login
Public Class Login
Inherits System.Web.UI.Page
End Sub
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Welcome Page</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.navbar {
background-color: #333;
overflow: hidden;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 20px;
text-decoration: none;
}
.navbar a:hover {
background-color: #ddd;
color: black;
}
.header {
padding: 30px;
text-align: center;
background-color: lightgray;
}
.header h1 {
font-size: 50px;
}
.footer {
padding: 20px;
text-align: center;
background: #333;
color: white;
position: fixed;
width: 100%;
bottom: 0;
}
</style>
</head>
<body>
<div class="navbar">
<a href="#home">Home</a>
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
<div class="content">
<p><h3>This is where your main content will go.</h3></p>
</div>
<div class="footer">
<p>Footer Content Here</p>
</div>
</body>
</html>
OUTPUT :
Medical = 1% of basic
PF = 12% of basic
Ans :
Default.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb"
Inherits="_3._Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Employee Salary Slip Generator</title>
<style type="text/css">
/* Global Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f7f9fc;
margin: 0;
padding: 0;
color: #333;
}
/* Container */
.container {
max-width: 600px;
margin: 60px auto;
background-color: #fff;
padding: 40px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
border-radius: 12px;
border: 1px solid #e0e0e0;
}
/* Header */
h2 {
/* Table Styles */
table {
width: 100%;
border-collapse: separate;
border-spacing: 0 15px;
}
th, td {
padding: 15px 20px;
text-align: left;
font-size: 16px;
}
th {
font-size: 18px;
color: #555;
}
td {
background-color: #f7f9fc;
border-radius: 8px;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}
.form-control:focus {
border-color: #3498db;
outline: none;
box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}
/* Button Styles */
.btn-primary {
display: block;
width: 100%;
padding: 15px;
background-color: #3498db;
color: white;
font-size: 18px;
font-weight: 600;
border: none;
.btn-primary:hover {
background-color: #2980b9;
transform: translateY(-2px);
}
/* Note Section */
.note {
margin-top: 30px;
font-size: 14px;
color: #888;
text-align: center;
background-color: #eef2f5;
padding: 15px;
border-radius: 8px;
border: 1px solid #ccd1d9;
}
/* Responsive Design */
@media (max-width: 600px) {
.container {
padding: 20px;
}
h2 {
font-size: 24px;
}
th, td {
padding: 10px 15px;
font-size: 14px;
}
.btn-primary {
padding: 12px;
font-size: 16px;
}
.form-control {
padding: 10px 15px;
}
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="container">
<h2>Employee Salary Slip Generator</h2>
<table>
<tr>
<td><asp:Label ID="lblEmpNo" runat="server" Text="Employee
No:" /></td>
<td><asp:TextBox ID="txtEmpNo" runat="server" CssClass="form-
control" /></td>
</tr>
<tr>
SalarySlip.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SalarySlip.aspx.vb"
Inherits="_3.SalarySlip" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Employee Salary Slip</title>
<style>
/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif; /* Fallback for 'Segoe UI' */
}
body {
background-color: #f5f5f5;
/* Form Styles */
#form1 {
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 5px;
padding: 25px;
max-width: 600px;
width: 100%;
animation: fadeIn 1s ease-out;
transition: transform 0.3s ease;
}
#form1:hover {
transform: translateY(-3px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
h2 {
text-align: center;
font-size: 20px; /* Adjusted for better scaling */
font-weight: 600;
margin-bottom: 20px;
}
/* Table Styles */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
th,
td {
padding: 12px 18px; /* Adjusted padding for better spacing */
border-bottom: 1px solid #ddd;
font-size: 16px;
}
th {
background-color: #f0f4f8;
color: #555;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.05em;
}
td {
color: #666; /* Slightly lighter for readability */
font-weight: 400;
}
tr:nth-child(even) {
background-color: #fafafa; /* Alternate row background */
}
/* Responsive Design */
@media (max-width: 768px) {
#form1 {
padding: 20px;
}
th,
td {
font-size: 14px;
padding: 10px 15px;
}
h2 {
font-size: 18px;
}
}
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>Employee Salary Slip</h2>
<table>
<tr>
<th>Employee No</th>
<td><asp:Label ID="lblEmpNo" runat="server" /></td>
</tr>
<tr>
<th>Employee Name</th>
<td><asp:Label ID="lblEmpName" runat="server" /></td>
</tr>
<tr>
<th>Designation</th>
<td><asp:Label ID="lblDesignation" runat="server" /></td>
</tr>
<tr>
<th>Basic Salary</th>
<td><asp:Label ID="lblBasicSalary" runat="server" /></td>
</tr>
<tr>
<th>DA (80%)</th>
<td><asp:Label ID="lblDA" runat="server" /></td>
</tr>
<tr>
SalarySlip.aspx.vb
Public Class SalarySlip
Inherits System.Web.UI.Page
End Class
Ans :
Login
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Login.aspx.vb"
Inherits="WebApplication3.Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Login</title>
</head>
<body>
<div>
<h2>Login</h2>
AssociatedControlID="txtUsername">
</asp:Label>
<br />
AssociatedControlID="txtPassword">
</asp:Label>
<br />
<br />
</div>
</form>
</body>
</html>
Behind Login
Imports System.Data.SqlClient
Inherits System.Web.UI.Page
End Sub
Exit Sub
End If
Exit Sub
End If
System.Configuration.ConfigurationManager.ConnectionStrings("CourierServiceConnectionString").C
on
nectionString
cmd.Parameters.AddWithValue("@Username", txtUsername.Text.Trim())
conn.Open()
Response.Redirect("Inquiry.aspx")
Else
End If
End Using
End Sub
End Class
Inquiry
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Inquiry.aspx.vb"
Inherits="WebApplication3.Inquiry" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Courier Inquiry</title>
</head>
<body>
<br />
<br />
<br />
<br />
<br />
OnClick="btnInquire_Click" />
</form>
<span id="popupMessage"></span>
</div>
</body>
</html>
Behind Inquiry
Imports System.Data.SqlClient
Inherits System.Web.UI.Page
End Sub
lblStatus.ForeColor = Drawing.Color.Red
Exit Sub
End If
System.Configuration.ConfigurationManager.ConnectionStrings("CourierServiceConnectionString").C
on
OrderNumber=@OrderNumber", conn)
cmd.Parameters.AddWithValue("@OrderNumber", txtOrderNumber.Text.Trim())
conn.Open()
If String.IsNullOrEmpty(status) Then
lblStatus.ForeColor = Drawing.Color.Red
Else
lblStatus.Text = status
lblStatus.ForeColor = Drawing.Color.Green
End If
End Using
End Sub
End Class
Ans :
Register.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb"
Inherits="WebApplication4.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
.login-container {
background-color: #ffffff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 10px;
width: 100%;
max-width: 400px;
text-align: center;
.login-container h2 {
margin-bottom: 20px;
color: #333333;
font-size: 24px;
font-weight: 600;
}
.input-group {
margin-bottom: 20px;
.input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
border-radius:20px;
.input:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.btn {
width: 100%;
padding: 10px;
font-size: 18px;
background-color: #007bff;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
border-radius:20px;
}
.btn:hover {
background-color: #0056b3;
}
.message {
margin-bottom: 15px;
color: red;
font-size: 14px;
}
.options-container {
display: flex;
justify-content:center;
align-items: center;
}
.remember-me {
margin-right:10px;
}
.remember-me input {
margin-right: 5px;
}
.forgot-password a {
color: #007bff;
text-decoration: none;
font-size: 14px;
}
.forgot-password {
margin-left: 20px; /* Adjust the space as needed */
}
.forgot-password a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="login-container">
<h2>Register</h2>
<div class="input-group">
<asp:Button ID="btnLogin" runat="server" CssClass="btn"
Text="Register"/>
</div>
<div class="options-container">
<div class="remember-me">
<label for="chkRememberMe">I already have an Acoount</label>
</div> <!-- Close the remember-me div here -->
<div class="forgot-password">
<asp:HyperLink ID="lnkForgotPassword" runat="server"
NavigateUrl="~/ForgotPassword.aspx">Login</asp:HyperLink>
</div>
</div>
</div>
</form>
</body>
</html>
Login.aspx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
.login-container {
background-color: #ffffff;
padding: 40px;
border-radius: 10px;
box-shadow: 0 0 10px;
width: 100%;
max-width: 400px;
text-align: center;
.login-container h2 {
margin-bottom: 20px;
color: #333333;
font-size: 24px;
font-weight: 600;
}
.input-group {
margin-bottom: 20px;
.input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
border-radius:20px;
}
.input:focus {
border-color: #007bff;
outline: none;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.btn {
width: 100%;
padding: 10px;
font-size: 18px;
background-color: #007bff;
border: none;
border-radius: 5px;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top:40px;
border-radius:20px;
}
.btn:hover {
background-color: #0056b3;
}
.remember-me {
margin-right:10px;
}
.remember-me input {
margin-right: 5px;
}
.forgot-password a {
color: #007bff;
text-decoration: none;
font-size: 14px;
}
.forgot-password {
margin-left: 20px; /* Adjust the space as needed */
}
.forgot-password a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="login-container">
<h2>Login</h2>
<asp:Label ID="lblMessage" runat="server" CssClass="message"></asp:Label>
<div class="input-group">
<asp:TextBox ID="txtUsername" runat="server" CssClass="input"
placeholder="Username"></asp:TextBox>
</div>
<div class="input-group">
<asp:TextBox ID="txtPassword" runat="server" CssClass="input"
TextMode="Password" placeholder="Password"></asp:TextBox>
</div>
<div class="options-container">
<div class="remember-me">
<asp:CheckBox ID="chkRememberMe" runat="server" />
<label for="chkRememberMe">Remember Me</label>
</div> <!-- Close the remember-me div here -->
<div class="forgot-password">
<asp:HyperLink ID="lnkForgotPassword" runat="server"
NavigateUrl="~/ForgotPassword.aspx">Forgot your password?</asp:HyperLink>
</div>
</div>
<div class="input-group">
<asp:Button ID="btnLogin" runat="server" CssClass="btn" Text="Login"
/>
</div>
Home.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm4.aspx.vb"
Inherits="WebApplication4.WebForm4" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style>
body {
font-family: Arial, sans-serif;
background-color:lightgray;
margin: 0;
padding: 0;
display: flex; /* Use flexbox for horizontal arrangement */
justify-content: center; /* Center products horizontally */
align-items: center; /* Center products vertically */
overflow: auto;
height: 100vh;
align-items: flex-start;
min-height: 100vh;
}
.sidebar {
width: 250px;
background-color: #333;
color: #fff;
padding: 20px;
position: fixed;
top: 80px;
left: -250px; /* Initially hide the sidebar off-screen */
height: calc(100% - 80px);
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
z-index: 999;
transition: left 0.3s ease; /* Smooth transition for sliding effect */
}
.sidebar.active {
left: 0; /* Move sidebar into view */
}
.sidebar h2 {
font-size: 1.5em;
margin-bottom: 20px;
border-bottom: 1px solid #444;
padding-bottom: 10px;
}
.sidebar ul {
.sidebar ul li {
margin: 10px 0;
}
.sidebar ul li a {
color: #fff;
text-decoration: none;
font-size: 1.1em;
transition: color 0.3s ease;
}
.sidebar ul li a:hover {
color: #ff9800;
}
.content {
margin-left: 0; /* Adjust for toggling */
padding: 20px;
width: 100%; /* Adjust for toggling */
transition: margin-left 0.3s ease; /* Smooth transition for content shift */
}
.content.shifted {
margin-left: 270px; /* Adjust content when sidebar is active */
}
.product-container-wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: stretch;
margin-left:70px;
}
.product-image {
width: 300px;
border-radius: 20px;
}
.product-container {
background: linear-gradient(135deg, #ffffff, #f3f3f3);
padding: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
text-align: left;
border-radius: 15px;
width: 300px;
box-shadow: 0 0 10px;
margin: 15px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
overflow: hidden;
position: relative;
margin-top: 120px;
}
.product-container:hover {
transform: translateY(-10px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
.product-container:hover .product-image {
transform: scale(1.1);
}
.product-title {
font-size: 1.5em;
margin: 15px 0;
text-align: center;
}
.product-description {
font-size: 1em;
margin: 10px 0;
text-align: center;
color: #666;
}
.product-price {
font-size: 1.2em;
color: #333;
text-align: center;
margin: 15px 0;
font-weight: bold;
}
.buy-button {
height: 40px;
width: 120px;
border-radius: 20px;
color: aliceblue;
background-color: Highlight;
display: block;
margin: 10px auto;
cursor: pointer;
border: none;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.buy-button:hover {
background-color: #0056b3;
transform: scale(1.05);
}
.auto-style1 {
background-color: #fff;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
text-align: center;
border-radius: 10px;
width: 300px;
box-shadow: 0 0 10px;
margin: 10px;
}
.auto-style2 {
text-align: center;
}
header {
width: 100%;
nav a {
color: #fff;
margin: 0 15px;
text-decoration: none;
font-family: sans-serif;
position: relative;
transition: color 0.3s ease;
}
nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
background-color: #ff9800;
left: 0;
bottom: -5px;
transition: width 0.3s ease-in-out;
}
nav a:hover {
color: #ff9800;
}
nav a:hover::after {
width: 100%;
}
.logo {
display: flex;
align-items: center;
margin-left: 50px;
.logo img {
height: 70px;
width:70px;
.auth-buttons {
display: flex;
align-items: center;
margin-right: 20px;
color:aliceblue;
}
.auth-buttons button:hover {
background-color: #777;
transform: scale(1.1);
}
.toggle-button {
background-color: #333;
color: #fff;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
position: fixed;
top: 10px;
left: 10px;
z-index: 1001;
}
.toggle-button:hover {
background-color: #555;
}
footer {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
position: relative;
bottom: 0;
width: 100%;
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}
footer p {
margin: 10px 0;
}
footer a {
color: #ff9800;
text-decoration: none;
transition: color 0.3s ease;
}
footer a:hover {
color: #fff;
}
</style>
</head>
<body>
<header>
<div class="logo">
<div class="product-container">
<img src="https://img.freepik.com/premium-photo/running-shoes-white-
background_10541-635.jpg" alt="Product Image" class="product-image">
<h1 class="product-title">Nike E-Series</h1>
<p class="product-description">Everyday comfort gets a modern look..</p>
<p class="product-price">₹550</p>
<button type="button" class="buy-button">Buy Now</button>
</div>
<div class="product-container">
<img src="https://thumbs.dreamstime.com/b/sport-shoes-isolated-white-
background-running-training-116201104.jpg" alt="Product Image" class="product-
image">
<h1 class="product-title">Adidas GALAXY 6</h1>
<p class="product-description">Very GreateFull Product.</p>
<p class="product-price">₹890</p>
<button type="button" class="buy-button">Buy Now</button>
</div>
<div class="product-container">
<div class="product-container">
<img src="https://img.freepik.com/premium-photo/running-shoes-realistic-
4k-white-background_839182-6781.jpg" alt="Product Image" class="product-image">
<h1 class="product-title">CRUISER</h1>
<p class="product-description">This is a great product.</p>
<p class="product-price">₹650</p>
<button type="button" class="buy-button">Buy Now</button>
</div>
<div class="product-container">
<img
src="https://t3.ftcdn.net/jpg/00/82/88/66/360_F_82886619_a4xje5obM5bAajAjnx6ZzWb0I
s70kSQA.jpg" alt="Product Image" class="product-image">
<h1 class="product-title">FLYNCE Sneakers e</h1>
<p class="product-description">High Quality Synthetic Leather as upper
material and Airmax.</p>
<p class="product-price">₹1200</p>
<button type="button" class="buy-button">Buy Now</button>
</div>
<footer>
<p>© 2024 Your Company Name. All rights reserved.</p>
<p><a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a></p>
</footer>
</div>
</div>
<script>
function toggleSidebar() {
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
if (sidebar.classList.contains('active')) {
sidebar.classList.remove('active');
content.classList.remove('shifted');
} else {
sidebar.classList.add('active');
content.classList.add('shifted');
}
}
</script>
</body>
</html>