WebTheoryAss3(020,021)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

Comsats University Islamabad Attock

Campus

Department of Computer Science

Lab Assignment no: 03

Course title: WebTechnologies

Submitted by:

Nimbra bibi(Fa21-bse-020)

Wasifa Kanwal(Fa21-bse-021)

Submitted to: Mam Faiza Khan

Date: 12th Dec. 2024


Project Tile: Online grocery shopping website

Index.blade.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
<script src="script.js" defer></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">

</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>

<!-- Sign Up and Login Buttons on the Right -->


<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header >
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="#">Home</a></li>
<li><a href="/GroceryStore/about">About</a></li>
<li><a href="/GroceryStore/shop">Shop</a></li>
<li><a href="/GroceryStore/conatct">Contact</a></li>
</ul>
</nav>

<div class="icons">

<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>
<!-- Slider Section -->
<div class="slider">
<div class="slide"><img src=" {{ asset('assets/slide/veg.jfif') }}" alt="Slide
1"></div>
<div class="slide"><img src="{{ asset('assets/slide/cak.jfif') }}"alt="Slide
2"></div>
<div class="slide"><img src="{{ asset('assets/slide/drink.jfif') }}" alt="Slide
3"></div>
<div class="controls">
<button id="playBtn" class="control-btn">
<span class="material-icons">play_arrow</span>
</button>
<button id="pauseBtn" class="control-btn">
<span class="material-icons">pause</span>
</button>
</div>
</div>

<!-- Newest Arrival Section -->


<section class="new-arrivals">
<h2>Newest Arrivals</h2>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets/shop/product-07/04.jpg')}}" alt="Horlicks">
<p>Horlicks</p>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-02/01.webp')}}" alt="Dates">
<p>Dates</p>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-06/04.jpg')}}" alt="Choclate">
<p>Choclate</p>
</div>
</div>
</section>

<!-- Best Selling Section -->


<section class="best-selling">
<h2>Best Selling</h2>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets\shop\product-02\03.webp')}}" alt="Best Selling
1">
<p>Ajwa Khajoor</p>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-05/01.webp')}}" alt="Best Selling
2">
<p>Dove Soap</p>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-06/01.jpeg')}}" alt="Best Selling
3">
<p>Choclate</p>
</div>
</div>
</section>

<!-- Address and Information Section -->


<section class="info-section">
<div class="info-column">
<img src="{{asset('assets/logo (2).png')}}" alt="Logo" class="footer-
logo">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis
quo voluptatum officiis amet laborum cum quod totam, consequatur earum suscipit?</p>
</div>
<div class="info-column">
<h4>Featured</h4>
<ul>
<li>Home & Cleaning</li>
<li>Beauty Products</li>
<li>Kitchen Appliances</li>
<li>Health Products</li>
</ul>
</div>
<div class="info-column">
<h4>Our Policies</h4>
<ul>
<li>Privacy Policy</li>
<li>Shipping Policy</li>
<li>Return Policy</li>
<li>Refund Policy</li>
</ul>
</div>
<div class="info-column">
<h4>Contact Us</h4>
<p>+92 034-567890</p>
<p>info@example.com</p>
<p>Attock 1216</p>
<div class="social-icons">
<a href="#"><img src="https://img.icons8.com/ios/30/000000/facebook-
new.png" alt="Facebook"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/instagram-new.png" alt="Instagram"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/twitter.png" alt="Twitter"></a>
</div>
</div>
</section>
<!-- Top Bar with Contact Info -->
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp; </p>
</div>

</body>
</html>
Shop.blade.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us - My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>

<!-- Sign Up and Login Buttons on the Right -->


<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header>
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="/GroceryStore/index">Home</a></li>
<li><a href="/GroceryStore/about">About</a></li>
<li><a href="#">Shop</a></li>
<li><a href="/GroceryStore/conatct">Contact</a></li>
</ul>
</nav>
<div class="icons">
<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>
<!-- Shop Section -->
<h2 style="margin:10px; padding: 10px;">Our Products</h2><br>

<section class="shop-section">
<!-- Oil & Masala Category -->
<h3>Oil & Masala</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets/shop/product-11/02.jpg')}}" alt="Product 1">
<p>Oil Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,000</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-10/02.jpeg')}}" alt="Product 2">
<p>Oil Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 2,500</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-07/02.jpg')}}" alt="Product 3">
<p>Oil Product 3</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 3,000</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Beverages Category -->


<h3>Beverages</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets/shop/product-06/02.jpg')}}" alt="Product 4">
<p>Beverage Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 4,000</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-04/03.webp')}}" alt="Product 5">
<p>Beverage Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,500</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-12/01.jpg')}}" alt="Product 6">
<p>Beverage Product 3</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 2,200</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Food Grains Category -->


<h3>Food Grains</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets/shop/product-12/02.jpeg')}}" alt="Product 7">
<p>Food Grain Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 3,500</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-11/03.jpg')}}" alt="Product 8">
<p>Food Grain Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 4,500</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets/shop/product-11/02.jpg')}}" alt="Product 9">
<p>Food Grain Product 3</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,000</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Fruits & Veggies Category -->


<h3>Fruits & Veggies</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets\shop\product-11\01.jpeg')}}" alt="Product 10">
<p>Fruit Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 500</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-11\02.jpg')}}" alt="Product 11">
<p>Veggie Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 300</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-11\03.jpg')}}" alt="Product 12">
<p>Veggie Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 200</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Bakery Category -->


<h3>Bakery</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets\shop\product-09\02.jpg')}}" alt="Product 13">
<p>Bakery Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,200</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-09\04.jpeg')}}" alt="Product 14">
<p>Bakery Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 800</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-09\01.jpg')}}" alt="Product 17">
<p>Meat Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,800</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Snacks Category -->


<h3>Snacks</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets\shop\product-02\02.webp')}}" alt="Product 15">
<p>Snack Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 150</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-03\04.webp')}}" alt="Product 16">
<p>Snack Product 2</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 100</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-01\nestle-nescafe-classic-
instant-coffee-jar-50-gm (3).webp')}}" alt="Product 17">
<p>Meat Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,800</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>

<!-- Eggs, Meat & Fish Category -->


<h3>Beauty</h3>
<div class="product-row">
<div class="product-card">
<img src="{{asset('assets\shop\product-05\01.webp')}}" alt="Product 17">
<p>Meat Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,800</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-05\02.webp')}}" alt="Product 18">
<p>Fish Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 2,000</div>
<button class="add-to-cart">Add to Cart</button>
</div>
<div class="product-card">
<img src="{{asset('assets\shop\product-05\05.webp')}}" alt="Product 17">
<p>Meat Product 1</p>
<div class="rating">&#9733; &#9733; &#9733; &#9733;</div>
<div class="price">₨ 1,800</div>
<button class="add-to-cart">Add to Cart</button>
</div>
</div>
</section>

<!-- Address and Information Section -->


<section class="info-section">
<div class="info-column">
<img src="{{asset('assets/logo (2).png')}}" alt="Logo" class="footer-logo">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis quo
voluptatum officiis amet laborum cum quod totam, consequatur earum suscipit?</p>
</div>
<div class="info-column">
<h4>Featured</h4>
<ul>
<li>Home & Cleaning</li>
<li>Beauty Products</li>
<li>Kitchen Appliances</li>
<li>Health Products</li>
</ul>
</div>
<div class="info-column">
<h4>Our Policies</h4>
<ul>
<li>Privacy Policy</li>
<li>Shipping Policy</li>
<li>Return Policy</li>
<li>Refund Policy</li>
</ul>
</div>
<div class="info-column">
<h4>Contact Us</h4>
<p>+92 034-567890</p>
<p>info@example.com</p>
<p>Attock 1216</p>
<div class="social-icons">
<a href="#"><img src="https://img.icons8.com/ios/30/000000/facebook-
new.png" alt="Facebook"></a>
<a href="#"><img src="https://img.icons8.com/ios/30/000000/instagram-
new.png" alt="Instagram"></a>
<a href="#"><img src="https://img.icons8.com/ios/30/000000/twitter.png"
alt="Twitter"></a>
</div>
</div>
</section>
<!-- Footer Section -->
<footer>
<!-- Top Bar with Contact Info -->
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp; </p>
</div>
</footer>

</body>
</html>

Contact.blade.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>

<!-- Sign Up and Login Buttons on the Right -->


<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header>
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="/GroceryStore/index">Home</a></li>
<li><a href="/GroceryStore/about">About</a></li>
<li><a href="/GroceryStore/shop">Shop</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="icons">
<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>

<!-- Contact Section -->


<section class="contact-section">
<h2>Contact Us</h2>

<!-- Map Section -->


<div class="map-section">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d26594.921354012626!2d72.6
0579931083984!3d33.569866800000014!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1
s0x38df759c8e2df507%3A0x32b6ceeec0076f13!2sTaqwa%20Mart%2C%20Fateh%20Jang!5e0!3m2!1s
en!2s!4v1727367821727!5m2!1sen!2s"
width="100%"
height="400"
style="border:0;"
allowfullscreen=""
loading="lazy"></iframe>
</div>

<!-- Form Section -->


<div class="form-section">
<div class="form-column">
<form>
<label for="first-name">First Name</label>
<input type="text" id="first-name" name="first-name" required>

<label for="last-name">Last Name</label>


<input type="text" id="last-name" name="last-name" required>

<label for="email">Email</label>
<input type="email" id="email" name="email" required>

<label for="phone">Phone</label>
<input type="tel" id="phone" name="phone" required>

<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" required>
</form>
</div>
<div class="form-column">
<label for="message">Message</label>
<textarea id="message" name="message" rows="18 "
required></textarea>
<button class="send-message">Send Message</button>
</div>
</div>
</section>

<!-- Address and Information Section -->


<section class="info-section">
<div class="info-column">
<img src="{{asset('assets/logo (2).png')}}" alt="Logo" class="footer-
logo">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis
quo voluptatum officiis amet laborum cum quod totam, consequatur earum suscipit?</p>
</div>
<div class="info-column">
<h4>Featured</h4>
<ul>
<li>Home & Cleaning</li>
<li>Beauty Products</li>
<li>Kitchen Appliances</li>
<li>Health Products</li>
</ul>
</div>
<div class="info-column">
<h4>Our Policies</h4>
<ul>
<li>Privacy Policy</li>
<li>Shipping Policy</li>
<li>Return Policy</li>
<li>Refund Policy</li>
</ul>
</div>
<div class="info-column">
<h4>Contact Us</h4>
<p>+92 034-567890</p>
<p>info@example.com</p>
<p>Attock 1216</p>
<div class="social-icons">
<a href="#"><img src="https://img.icons8.com/ios/30/000000/facebook-
new.png" alt="Facebook"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/instagram-new.png" alt="Instagram"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/twitter.png" alt="Twitter"></a>
</div>
</div>
</section>

<!-- Footer Section -->


<footer>
<!-- Top Bar with Contact Info -->
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp;</p>
</div>
</footer>

</body>
</html>

About.blade.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us - My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>

<!-- Sign Up and Login Buttons on the Right -->


<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header>
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="/GroceryStore/index">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="/GroceryStore/shop">Shop</a></li>
<li><a href="/GroceryStore/conatct">Contact</a></li>
</ul>
</nav>
<div class="icons">
<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>

<!-- About Section -->


<section class="about-section">
<h2>About Us</h2>
<p>Welcome to My Online Shop! We are dedicated to providing our customers
with the best shopping experience possible. Our team works tirelessly to curate a
wide range of products that cater to all your needs, ensuring quality and value with
every purchase.</p>

<p>Founded in [Year], My Online Shop has grown to become a trusted name in


the e-commerce industry. Our commitment to customer satisfaction is unmatched, and
we strive to build lasting relationships with our customers by offering exceptional
service and support.</p>
<p>We understand the challenges of grocery shopping in today's fast-paced
world. That's why we offer a wide range of products to meet your daily needs, from
fresh fruits and vegetables to household essentials and personal care items. We work
hard to ensure that all of our products are sourced from trusted suppliers and are
of the highest quality.</p>

<!-- Address and Information Section -->


<section class="info-section">
<div class="info-column">
<img src="{{asset('assets/logo (2).png')}}" alt="Logo" class="footer-
logo">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis
quo voluptatum officiis amet laborum cum quod totam, consequatur earum suscipit?</p>
</div>
<div class="info-column">
<h4>Featured</h4>
<ul>
<li>Home & Cleaning</li>
<li>Beauty Products</li>
<li>Kitchen Appliances</li>
<li>Health Products</li>
</ul>
</div>
<div class="info-column">
<h4>Our Policies</h4>
<ul>
<li>Privacy Policy</li>
<li>Shipping Policy</li>
<li>Return Policy</li>
<li>Refund Policy</li>
</ul>
</div>
<div class="info-column">
<h4>Contact Us</h4>
<p>+92 034-567890</p>
<p>info@example.com</p>
<p>Attock 1216</p>
<div class="social-icons">
<a href="#"><img src="https://img.icons8.com/ios/30/000000/facebook-
new.png" alt="Facebook"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/instagram-new.png" alt="Instagram"></a>
<a href="#"><img
src="https://img.icons8.com/ios/30/000000/twitter.png" alt="Twitter"></a>
</div>
</div>
</section>

<!-- Footer Section -->


<footer>
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp; </p>
</div>
</footer>
<!-- Top Bar with Contact Info -->

</body>
</html>

Signin.blade.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign In - My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
<script src="script.js" defer></script>
</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>

<!-- Sign Up and Login Buttons on the Right -->


<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header>
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="/GroceryStore/index">Home</a></li>
<li><a href="/GroceryStore/about">About</a></li>
<li><a href="/GroceryStore/shop">Shop</a></li>
<li><a href="/GroceryStore/conatct">Contact</a></li>
</ul>
</nav>
<div class="icons">
<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>

<!-- Sign In Section -->


<section class="sign-in-section">
<h2>Sign In</h2>
<form class="sign-in-form">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" required>
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" required>
</div>
<div class="form-group">
<button type="submit" class="submit-button">Sign In</button>
</div>
</form>
</section>

<!-- Footer Section -->


<footer>
<!-- Top Bar with Contact Info -->
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp; </p>
</div>
</footer>

</body>
</html>

Signup.blade.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign Up - My Online Shop</title>
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">

</head>
<body>

<!-- Top Bar with Search, Nationwide Shipping, and Auth Buttons in One Row -->
<div class="top-bar1">
<!-- Search Box on the Left -->
<div class="search-box">
<input type="text" placeholder="Search..." />

</div>

<!-- Nationwide Shipping in the Center -->


<p class="shipping-info">Nationwide Shipping</p>
<!-- Sign Up and Login Buttons on the Right -->
<div class="auth-buttons">
<a href="/GroceryStore/signup" class="auth-button">Sign Up</a>
<a href="/GroceryStore/signin" class="auth-button">Login</a>
</div>
</div>

<!-- Header Section -->


<header>
<div class="logo"><img src="{{asset('assets/logo (2).png')}}"
alt="Logo"></div>
<nav class="navbar">
<ul>
<li><a href="/GroceryStore/index">Home</a></li>
<li><a href="/GroceryStore/about">About</a></li>
<li><a href="/GroceryStore/shop">Shop</a></li>
<li><a href="/GroceryStore/conatct">Contact</a></li>
</ul>
</nav>
<div class="icons">
<a href="/GroceryStore/conatct"><img
src="https://img.icons8.com/ios/50/000000/contact-card.png" alt="Contact"></a>
<a href="/GroceryStore/cart"><img
src="https://img.icons8.com/ios/50/000000/shopping-cart--v1.png" alt="Cart"></a>
</div>
</header>

<!-- Sign Up Section -->


<section class="sign-up-section">
<h2>Create an Account</h2>
<form class="sign-up-form" id="signUpForm">

<!-- Demographic Information -->


<fieldset>
<div class="form-group">
<label for="first-name">First Name:</label>
<input type="text" id="first-name" required>
</div>
<div class="form-group">
<label for="last-name">Last Name:</label>
<input type="text" id="last-name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" required>
</div>
<div class="form-group">
<label for="age">Age:</label>
<input type="number" id="age" min="0" required>
</div>
<div class="form-group">
<label for="gender">Gender:</label>
<select id="gender" required>
<option value="" disabled selected>Select your
gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
<div class="form-group">
<label for="income-range">Income Range:</label>
<select id="income-range" required>
<option value="" disabled selected>Select your income
range</option>
<option value="below-20k">Below Rs20,000</option>
<option value="20k-50k">Rs20,000 - Rs50,000</option>
<option value="50k-100k">Rs50,000 - Rs100,000</option>
<option value="above-100k">Above Rs100,000</option>
</select>
</div>
</fieldset>

<!-- Behavioral Information -->


<fieldset>
<div class="form-group">
<label for="shopping-frequency">Shopping Frequency:</label>
<select id="shopping-frequency" required>
<option value="" disabled selected>Select frequency</option>
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="monthly">Monthly</option>
<option value="annually">Annually</option>
</select>
</div>
<div class="form-group">
<label for="location">Location:</label>
<input type="text" id="location" required>
</div>
</fieldset>

<!-- Psychographic Information -->


<fieldset>
<div class="form-group">
<label for="interests">Interests (comma-separated):</label>
<input type="text" id="interests" placeholder="e.g., Cooking,
Fitness ,Health">
</div>
<div class="form-group">
<label for="lifestyle">Lifestyle Choices:</label>
<select id="lifestyle">
<option value="" disabled selected>Select your
lifestyle</option>
<option value="bakery">Bakery Products</option>
<option value="vegetarian">Vegetarian</option>
<option value="health-conscious">Health-conscious</option>
<option value="junk-food">Junk Food</option>
<option value="none">None</option>
</select>
</div>
<div class="form-group">
<label for="dietary-restrictions">Dietary Restrictions:</label>
<input type="text" id="dietary-restrictions" placeholder="e.g.,
Gluten-free, Nut allergy">
</div>
</fieldset>

<!-- Account Information -->


<fieldset>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" required>
</div>

<div class="form-group">
<button type="submit" class="submit-button">Sign Up</button>
<p>If you already have an account, click <span style="text-
decoration:underline; color: rgb(35, 35, 133);"><a href="/GroceryStore/signin">Sign
In</a></span></p>
</div>
</fieldset>

</form>
</section>

<!-- Footer Section -->


<footer>
<!-- Top Bar with Contact Info -->
<div class="top-bar">
<p>Phone: +123-456-7890 &nbsp;|| &nbsp;Address: 123 Main St, City &nbsp;||
&nbsp; Email: info@example.com&nbsp; </p>
</div>
</footer>

<script src="script.js"></script>

</body>
</html>

Web.php:
<?php

use Illuminate\Support\Facades\Route;

//Route::get('/student', 'App\Http\Controllers\AppController@index');
Route::get('GroceryStore/index', 'App\Http\Controllers\AppController@Home');
Route::get('GroceryStore/cart', 'App\Http\Controllers\AppController@cart');
Route::get('GroceryStore/signin', 'App\Http\Controllers\AppController@signin');
Route::get('GroceryStore/signup', 'App\Http\Controllers\AppController@signup');
Route::get('GroceryStore/shop', 'App\Http\Controllers\AppController@shop');
Route::get('GroceryStore/about', 'App\Http\Controllers\AppController@about');
Route::get('GroceryStore/conatct', 'App\Http\Controllers\AppController@contact');

AppController.php:
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class appController extends Controller
{
//
public function Home () {
return view('GroceryStore/index');}
public function cart () {
return view('GroceryStore/cart');
}
public function about () {
return view('GroceryStore/about');
}
public function contact () {
return view('GroceryStore/conatct');
}
public function shop () {
return view('GroceryStore/shop');
}
public function signin() {
return view('GroceryStore/signin');
}
public function signup () {
return view('GroceryStore/signup');
}

Styles:
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}

a {
text-decoration: none;
color: #000;
}
/* Top Bar Styling */
.top-bar1 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px 20px;
background-color: #28a745; /* Green background */
font-family: Arial, sans-serif;
font-size: 14px;
color: #fff;
}

/* Search Box Styling */

.search-box input {
display: flex;
align-items: center;
width: 100%;
margin-top: 2px;
font-size: 14px;
padding-left: 5px;
color: #333;
}

/* Nationwide Shipping Styling */


.shipping-info {
font-weight: bold;
font-size: 16px;
flex: 1;
text-align: center;
color: #fff; /* White text */
}

/* Auth Buttons Styling */


.auth-buttons {
display: flex;
gap: 10px;
}

.auth-button {
text-decoration: none;
color: #fff;
background-color: #c22b2b; /* Blue background for buttons */
padding: 5px 15px;
border-radius: 5px;
font-size: 14px;
height: 20px;
font-weight: bold;
transition: background-color 0.3s;
}
.auth-button:hover {
background-color: #c44636; /* Darker blue on hover */
}

/* Top Bar */
.top-bar {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
font-size: 14px;
margin-right: 5px ;
}

/* Header Styles */
header {
display: flex;
margin-top: 0%;
justify-content: space-between;
align-items: center;
padding: 10px 50px; /* Reduced padding */
background-color: #f8f8f8;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
height: 60px;

.navbar ul {
list-style: none;
display: flex;
gap: 20px;
}

.navbar ul li a {
padding: 10px 15px;
position: relative;
}

.navbar ul li a:hover {
color: #007BFF; /* Change color on hover */
}
.icons a {
margin-left: 15px;
}

.icons img {
width: 20px;
}

/* Slider Styles */
.slider {
width: 100%;
height: 400px;
overflow: hidden;
position: relative;
}

.slider .slide {
width: 100%;
height: 100%;

animation: slide 15s infinite; /* Simple slide animation */


}

.slider .slide img {


width: 100%;
height: 100%;
object-fit: cover;
}

/* Controls Styles */
.controls {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex; /* Use flexbox to align items */
gap: 10px; /* Space between buttons */
}

.control-btn {
width: 50px; /* Make buttons circular */
height: 50px; /* Match width and height */
border: none; /* Remove default button border */
border-radius: 50%; /* Circular shape */
display: flex; /* Center icon inside the button */
align-items: center;
justify-content: center;
background-color: #060706; /* Background color for buttons */
color: white; /* Icon color */
cursor: pointer; /* Pointer cursor on hover */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

.control-btn:hover {
background-color: #0056b3; /* Slightly darker on hover */
}

.control-btn .material-icons {
font-size: 24px; /* Icon size */
}

/* New Arrivals and Best Selling Sections */


section {
padding: 50px 50px;
}

h2 {
font-size: 28px;
margin-bottom: 20px;
}

.product-card {
display: inline-block;
width: 25%;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
text-align: center;
margin: 20px;
}

.product-card img {
width: 80%;
height: 200px;
object-fit: cover;
}
.product-card p {
margin-top: 10px;
}

.shop-section {
padding: 50px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.product-card {
width: 23%; /* Four cards in a row */
margin-bottom: 30px;
padding: 15px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
text-align: center;
}
.product-card img {
width: 100%;
height: auto;
object-fit: cover;
}
.rating {
color: gold; /* Gold stars for rating */
}
.price {
font-weight: bold;
margin-top: 10px;
}
.add-to-cart {
background-color: #28a745; /* Green button */
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
margin-top: 10px;
}
.add-to-cart:hover {
background-color: #218838; /* Darker green on hover */
}

/* Contact Section Styles */


.contact-section {
padding: 50px;
text-align: center;
}

.contact-section h2 {
font-size: 28px;
margin-bottom: 20px;
}

.map-section {
margin-bottom: 40px;
}

.form-section {
display: flex;
justify-content: space-between;
}

.form-column {
flex: 1;
margin: 0 20px; /* Space between columns */
}

.form-column label {
display: block;
margin-bottom: 5px;
}

.form-column input,
.form-column textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
}

.send-message {
background-color: #28a745; /* Green button */
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
}
.send-message:hover {
background-color: #218838; /* Darker green on hover */
}
/* Cart Section Styles */
.cart-section {
padding: 50px;
text-align: center;
}

.cart-section h2 {
font-size: 28px;
margin-bottom: 30px;
}

.cart-items {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

.cart-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 80%;
padding: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}

.cart-item img {
width: 100px;
height: auto;
object-fit: cover;
}

.item-details {
flex: 1;
padding: 0 15px;
text-align: left;
}

.item-details h4 {
margin: 0;
}

.price {
font-weight: bold;
margin: 5px 0;
}

.quantity {
width: 60px;
padding: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}

.remove-item {
background-color: #dc3545; /* Red */
color: white;
border: none;
padding: 8px 12px;
cursor: pointer;
border-radius: 4px;
}

Output:

You might also like