-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
123 lines (114 loc) · 5.05 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php $page = "home"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'php-templates/head.php'; ?>
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<title>Home</title>
<link href="https://raw.githubusercontent.com/daneden/animate.css/master/animate.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<?php include "css/index-css.php" ?>
<!-- Core theme CSS (includes Bootstrap)-->
<?php include "css/styles-css.php" ?>
</head>
<body>
<!-- Navigation -->
<?php include 'php-templates/navbar.php'; ?>
<!-- Header-->
<div id="myCarousel" class="carousel slide carousel-fade" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<div class="mask flex-center">
<div class="container">
<div class="row align-items-center">
<div class="col-md-7 col-12 order-md-1 order-2" style="top: 190px;">
<h4>High-Quality <br>
Sleeping Essentials <br>Just For You</h4>
<p>Providing you with comfy and classy sleepwears without breaking your pocket!</p>
<p>DTI Registered.</p>
<a href="products.php">View Products</a>
</div>
<div class="mySlides fadein col-md-5 col-12 order-md-2 order-1 ">
<?php
// display images from directory
$dir = "assets/img/banner/";
$scan_dir = scandir($dir); //list files inside the directory
foreach($scan_dir as $img):
if(in_array($img,array('.','..'))){
continue;
}
?>
<img src="<?php echo $dir.$img ?>" class="mx-auto" style="height: 640px;" alt="<?php echo $img ?>">
<?php endforeach; ?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--slide end-->
<section class="product-category section">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="title text-center">
<h2> Product Categories </h2>
</div>
</div>
<div class="col-md-6">
<div class="category-box">
<a href="products.php?filter=sleepwear&search=">
<img src="assets/img/2.jpg" alt="" />
<div class="content">
<h3>Sleepwear</h3>
</div>
</a>
</div>
</div>
<div class="col-md-6">
<div class="category-box">
<a href="products.php?filter=sleepingessentials&search=">
<img src="assets/img/pillowcase3.jpg" alt="" />
<div class="content">
<h3>Essentials</h3>
</div>
</a>
</div>
</div>
</div>
</div>
</section>
<!-- Icons Grid-->
<section class="features-icons bg-light text-center">
<div class="container">
<div class="row">
<?php
$img = ['assets/icons/handwash.png','assets/icons/detergent.png','assets/icons/bleach.png'];
$h3 = [ 'hand wash only','use mild detergent','no bleach'];
for ($i = 0; $i < 3; $i++) {
?>
<div class="col-lg-4">
<div class="features-icons-item mx-auto mb-5 mb-lg-0 mb-lg-3">
<div class="hover-spin features-icons-icon d-flex mb-4"><img src="<?php echo $img[$i] ?>" width="100" class="m-auto text-primary" alt=""></div>
<h3 style="color: #bfad6d"><?php echo $h3[$i] ?></h3>
</div>
</div>
<?php } ?>
</div>
</section>
<!-- Footer-->
<?php include 'php-templates/footer.php'; ?>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function() {
$('.fadein img:gt(0)').hide();
setInterval(function() {
$('.fadein :first-child').fadeOut().next('img').fadeIn().end().appendTo('.fadein');
}, 5000);
});
</script>
</body>
</html>