Skip to content

Commit

Permalink
s2
Browse files Browse the repository at this point in the history
  • Loading branch information
IftekharulAlam authored and IftekharulAlam committed Apr 14, 2021
1 parent a79d976 commit 6a16651
Show file tree
Hide file tree
Showing 9 changed files with 562 additions and 29 deletions.
Binary file modified ecommerce/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file modified ecommerce_site/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file modified ecommerce_site/__pycache__/views.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions ecommerce_site/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
path('contact.html',views.toContact, name='contact'),
path('shop.html', views.toShop, name='shop'),
path('shop-single.html',views.toShopSingle, name='shopsingle'),
path('login', views.toLogin, name="login"),
path('register', views.toRegister, name="register")
path('login.html', views.toLogin, name="login"),
path('register.html', views.toRegister, name="register")


]
2 changes: 1 addition & 1 deletion ecommerce_site/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Create your views here.
def toLogin(request):
return render(request, 'login.html')
return render(request, 'my.html')
def toRegister(request):
return render(request, 'register.html')
def toShopSingle(request):
Expand Down
23 changes: 12 additions & 11 deletions templates/contact.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{%load static%}
<!DOCTYPE html>
<html lang="en">

Expand All @@ -6,16 +7,16 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="assets/img/apple-icon.png">
<link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico">
<link rel="apple-touch-icon" href="{% static 'assets/img/apple-icon.png'%}">
<link rel="shortcut icon" type="image/x-icon" href="{% static 'assets/img/favicon.ico'%}">

<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/templatemo.css">
<link rel="stylesheet" href="assets/css/custom.css">
<link rel="stylesheet" href="{% static 'assets/css/bootstrap.min.css'%}">
<link rel="stylesheet" href="{% static 'assets/css/templatemo.css'%}">
<link rel="stylesheet" href="{% static 'assets/css/custom.css'%}">

<!-- Load fonts style after rendering the layout styles -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;700;900&display=swap">
<link rel="stylesheet" href="assets/css/fontawesome.min.css">
<link rel="stylesheet" href="{% static 'assets/css/fontawesome.min.css'%}">

<!-- Load map styles -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="" />
Expand Down Expand Up @@ -289,11 +290,11 @@ <h2 class="h2 text-light border-bottom pb-3 border-light">Further Info</h2>
<!-- End Footer -->

<!-- Start Script -->
<script src="assets/js/jquery-1.11.0.min.js"></script>
<script src="assets/js/jquery-migrate-1.2.1.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/templatemo.js"></script>
<script src="assets/js/custom.js"></script>
<script src="{% static 'assets/js/jquery-1.11.0.min.js'%}"></script>
<script src="{% static 'assets/js/jquery-migrate-1.2.1.min.js'%}"></script>
<script src="{% static 'assets/js/bootstrap.bundle.min.js'%}"></script>
<script src="{% static 'assets/js/templatemo.js'%}"></script>
<script src="{% static 'assets/js/custom.js'%}"></script>
<!-- End Script -->
</body>

Expand Down
7 changes: 7 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.html">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.html">Register</a>
</li>

</ul>
</div>
<div class="navbar align-self-center d-flex">
Expand Down
264 changes: 264 additions & 0 deletions templates/my.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
{%load static%}
<!DOCTYPE html>
<html lang="en">

<head>
<title>Zay Shop - Contact</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon" href="{% static 'assets/img/apple-icon.png'%}">
<link rel="shortcut icon" type="image/x-icon" href="{% static 'assets/img/favicon.ico'%}">

<link rel="stylesheet" href="{% static 'assets/css/bootstrap.min.css'%}">
<link rel="stylesheet" href="{% static 'assets/css/templatemo.css'%}">
<link rel="stylesheet" href="{% static 'assets/css/custom.css'%}">

<!-- Load fonts style after rendering the layout styles -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;700;900&display=swap">
<link rel="stylesheet" href="{% static 'assets/css/fontawesome.min.css'%}">

<!-- Load map styles -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin="" />
<!--
TemplateMo 559 Zay Shop
https://templatemo.com/tm-559-zay-shop
-->
</head>

<body>
<!-- Start Top Nav -->
<nav class="navbar navbar-expand-lg bg-dark navbar-light d-none d-lg-block" id="templatemo_nav_top">
<div class="container text-light">
<div class="w-100 d-flex justify-content-between">
<div>
<i class="fa fa-envelope mx-2"></i>
<a class="navbar-sm-brand text-light text-decoration-none" href="mailto:[email protected]">[email protected]</a>
<i class="fa fa-phone mx-2"></i>
<a class="navbar-sm-brand text-light text-decoration-none" href="tel:010-020-0340">010-020-0340</a>
</div>
<div>
<a class="text-light" href="https://fb.com/templatemo" target="_blank" rel="sponsored"><i class="fab fa-facebook-f fa-sm fa-fw me-2"></i></a>
<a class="text-light" href="https://www.instagram.com/" target="_blank"><i class="fab fa-instagram fa-sm fa-fw me-2"></i></a>
<a class="text-light" href="https://twitter.com/" target="_blank"><i class="fab fa-twitter fa-sm fa-fw me-2"></i></a>
<a class="text-light" href="https://www.linkedin.com/" target="_blank"><i class="fab fa-linkedin fa-sm fa-fw"></i></a>
</div>
</div>
</div>
</nav>
<!-- Close Top Nav -->


<!-- Header -->
<nav class="navbar navbar-expand-lg navbar-light shadow">
<div class="container d-flex justify-content-between align-items-center">

<a class="navbar-brand text-success logo h1 align-self-center" href="index.html">
Zay
</a>

<button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#templatemo_main_nav" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

<div class="align-self-center collapse navbar-collapse flex-fill d-lg-flex justify-content-lg-between" id="templatemo_main_nav">
<div class="flex-fill">
<ul class="nav navbar-nav d-flex justify-content-between mx-lg-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="shop.html">Shop</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.html">Contact</a>
</li>
<li class="nav-item">
<a class="nav-link" href="login.html">Login</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.html">Register</a>
</li>
</ul>
</div>
<div class="navbar align-self-center d-flex">
<div class="d-lg-none flex-sm-fill mt-3 mb-4 col-7 col-sm-auto pr-3">
<div class="input-group">
<input type="text" class="form-control" id="inputMobileSearch" placeholder="Search ...">
<div class="input-group-text">
<i class="fa fa-fw fa-search"></i>
</div>
</div>
</div>
<a class="nav-icon d-none d-lg-inline" href="#" data-bs-toggle="modal" data-bs-target="#templatemo_search">
<i class="fa fa-fw fa-search text-dark mr-2"></i>
</a>
<a class="nav-icon position-relative text-decoration-none" href="#">
<i class="fa fa-fw fa-cart-arrow-down text-dark mr-1"></i>
<span class="position-absolute top-0 left-100 translate-middle badge rounded-pill bg-light text-dark">7</span>
</a>
<a class="nav-icon position-relative text-decoration-none" href="#">
<i class="fa fa-fw fa-user text-dark mr-3"></i>
<span class="position-absolute top-0 left-100 translate-middle badge rounded-pill bg-light text-dark">+99</span>
</a>
</div>
</div>

</div>
</nav>
<!-- Close Header -->

<!-- Modal -->
<div class="modal fade bg-white" id="templatemo_search" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="w-100 pt-1 mb-5 text-right">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="" method="get" class="modal-content modal-body border-0 p-0">
<div class="input-group mb-2">
<input type="text" class="form-control" id="inputModalSearch" name="q" placeholder="Search ...">
<button type="submit" class="input-group-text bg-success text-light">
<i class="fa fa-fw fa-search text-white"></i>
</button>
</div>
</form>
</div>
</div>



<!-- Start Contact -->
<div class="container py-5">
<div class="row py-5">
<form class="col-md-9 m-auto" method="post" role="form" action="login">
{%csrf_token%}
<div class="mb-3">
<label for="inputsubject">User Name</label>
<input type="text" class="form-control mt-1" id="user_name" name="user_name" placeholder="User Name">
</div>
<div class="mb-3">
<label for="inputsubject">Password</label>
<input type="text" class="form-control mt-1" id="password" name="password" placeholder="Password">
</div>
<div class="row">
<div class="col text-end mt-2">
<button type="submit" class="btn btn-success btn-lg px-3">Login</button>
</div>
</div>
</form>
</div>
</div>
<!-- End Contact -->


<!-- Start Footer -->
<footer class="bg-dark" id="tempaltemo_footer">
<div class="container">
<div class="row">

<div class="col-md-4 pt-5">
<h2 class="h2 text-success border-bottom pb-3 border-light logo">Zay Shop</h2>
<ul class="list-unstyled text-light footer-link-list">
<li>
<i class="fas fa-map-marker-alt fa-fw"></i>
123 Consectetur at ligula 10660
</li>
<li>
<i class="fa fa-phone fa-fw"></i>
<a class="text-decoration-none" href="tel:010-020-0340">010-020-0340</a>
</li>
<li>
<i class="fa fa-envelope fa-fw"></i>
<a class="text-decoration-none" href="mailto:[email protected]">[email protected]</a>
</li>
</ul>
</div>

<div class="col-md-4 pt-5">
<h2 class="h2 text-light border-bottom pb-3 border-light">Products</h2>
<ul class="list-unstyled text-light footer-link-list">
<li><a class="text-decoration-none" href="#">Luxury</a></li>
<li><a class="text-decoration-none" href="#">Sport Wear</a></li>
<li><a class="text-decoration-none" href="#">Men's Shoes</a></li>
<li><a class="text-decoration-none" href="#">Women's Shoes</a></li>
<li><a class="text-decoration-none" href="#">Popular Dress</a></li>
<li><a class="text-decoration-none" href="#">Gym Accessories</a></li>
<li><a class="text-decoration-none" href="#">Sport Shoes</a></li>
</ul>
</div>

<div class="col-md-4 pt-5">
<h2 class="h2 text-light border-bottom pb-3 border-light">Further Info</h2>
<ul class="list-unstyled text-light footer-link-list">
<li><a class="text-decoration-none" href="#">Home</a></li>
<li><a class="text-decoration-none" href="#">About Us</a></li>
<li><a class="text-decoration-none" href="#">Shop Locations</a></li>
<li><a class="text-decoration-none" href="#">FAQs</a></li>
<li><a class="text-decoration-none" href="#">Contact</a></li>
</ul>
</div>

</div>

<div class="row text-light mb-4">
<div class="col-12 mb-3">
<div class="w-100 my-3 border-top border-light"></div>
</div>
<div class="col-auto me-auto">
<ul class="list-inline text-left footer-icons">
<li class="list-inline-item border border-light rounded-circle text-center">
<a class="text-light text-decoration-none" target="_blank" href="http://facebook.com/"><i class="fab fa-facebook-f fa-lg fa-fw"></i></a>
</li>
<li class="list-inline-item border border-light rounded-circle text-center">
<a class="text-light text-decoration-none" target="_blank" href="https://www.instagram.com/"><i class="fab fa-instagram fa-lg fa-fw"></i></a>
</li>
<li class="list-inline-item border border-light rounded-circle text-center">
<a class="text-light text-decoration-none" target="_blank" href="https://twitter.com/"><i class="fab fa-twitter fa-lg fa-fw"></i></a>
</li>
<li class="list-inline-item border border-light rounded-circle text-center">
<a class="text-light text-decoration-none" target="_blank" href="https://www.linkedin.com/"><i class="fab fa-linkedin fa-lg fa-fw"></i></a>
</li>
</ul>
</div>
<div class="col-auto">
<label class="sr-only" for="subscribeEmail">Email address</label>
<div class="input-group mb-2">
<input type="text" class="form-control bg-dark border-light" id="subscribeEmail" placeholder="Email address">
<div class="input-group-text btn-success text-light">Subscribe</div>
</div>
</div>
</div>
</div>

<div class="w-100 bg-black py-3">
<div class="container">
<div class="row pt-2">
<div class="col-12">
<p class="text-left text-light">
Copyright &copy; 2021 Company Name
| Designed by <a rel="sponsored" href="https://templatemo.com" target="_blank">TemplateMo</a>
</p>
</div>
</div>
</div>
</div>

</footer>
<!-- End Footer -->

<!-- Start Script -->
<script src="{% static 'assets/js/jquery-1.11.0.min.js'%}"></script>
<script src="{% static 'assets/js/jquery-migrate-1.2.1.min.js'%}"></script>
<script src="{% static 'assets/js/bootstrap.bundle.min.js'%}"></script>
<script src="{% static 'assets/js/templatemo.js'%}"></script>
<script src="{% static 'assets/js/custom.js'%}"></script>
<!-- End Script -->
</body>

</html>
Loading

0 comments on commit 6a16651

Please sign in to comment.