-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
128 lines (124 loc) · 2.69 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
124
125
126
127
128
<?php
require 'common.php';
if (isset($_SESSION['email']))
{
header('location: products.php');
}
?>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<!--jQuery library-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!--Latest compiled and minified JavaScript-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#banner_image
{
padding-top: 75px;
padding-bottom: 50px;
text-align: center;
color: #f8f8f8;
background: url("intro-bg_1.jpg") no-repeat center center;
background-size: cover;
}
#banner_content
{
position: relative;
padding-top: 6%;
padding-bottom: 6%;
margin-top: 12%;
margin-bottom: 12%;
background-color: rgba(0, 0, 0, 0.7);
max-width: 660px;
}
.containerimg
{
width:90%;
margin:auto;
overflow:hidden;
}
.item
{
width:30%;
display: block;
padding: 4px;
margin-bottom: 20px;
line-height: 1.42857143;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
float:left;
margin-left:1%;
}
.caption
{
color:#000;
padding:0px 10px 10px;
font-weight: bold;
text-align: center;
}
.thumbnail
{
display: block;
max-width: 100%;
height: auto;
}
#footer
{
padding: 10px 0;
background-color: #101010;
color:#9d9d9d;
bottom: 0;
width: 100%;
}
</style>
<title>Index</title>
</head>
<body>
<?php
require 'header.php';
?>
<div id="banner_image">
<div class="container">
<center>
<div id="banner_content">
<h1> We sell lifestyle</h1>
<p>Flat 40% OFF on premium brands </p>
<a href="product.php"><button class="btn btn-danger btn-lg active">Shop Now</button></a><!--link the page product-->
</div>
</center>
</div>
</div>
<br>
<div class="containerimg">
<div class="item">
<img src="1.jpg" class="thumbnail">
<div class="caption">
<h2>Camera</h2>
<p>Choose among the best available in the world.</p>
</div>
</div>
<div class="item">
<img src="7.jpg" class="thumbnail">
<div class="caption">
<h2>Watches</h2>
<p>Origianl watches from the best brands.</p>
</div>
</div>
<div class="item">
<img src="8.jpg" class="thumbnail">
<div class="caption">
<h2>Shirts</h2>
<p>Our exclusive collection of shirts.</p>
</div>
</div>
</div>
<div id="footer">
<?php
require 'footer.php';
?>
</div>
</body>
</html>