-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
136 lines (134 loc) · 5.97 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
129
130
131
132
133
134
135
136
<?php ?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Club MS8</title>
<link rel="icon" href="assets/img/favicon.png" sizes="16x16">
<meta name="author" content="Samartha">
<meta name="description" content="ClubMS8 is a group of auto-mototive enthusiast in the town of sagar. To be specific, we are the group of proud MS800 owners.">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/styles.css">
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- lightbox -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.js" integrity="sha512-YibiFIKqwi6sZFfPm5HNHQYemJwFbyyYHjrr3UT+VobMt/YBo1kBxgui5RWc4C3B4RJMYCdCAJkbXHt+irKfSA==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.min.js" integrity="sha512-Y2IiVZeaBwXG1wSV7f13plqlmFOx8MdjuHyYFVoYzhyRr3nH/NMDjTBSswijzADdNzMyWNetbLMfOpIPl6Cv9g==" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/5.3.0/ekko-lightbox.css" integrity="sha512-Velp0ebMKjcd9RiCoaHhLXkR1sFoCCWXNp6w4zj1hfMifYB5441C+sKeBl/T/Ka6NjBiRfBBQRaQq65ekYz3UQ==" crossorigin="anonymous" />
<!-- aos -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
</head>
<body>
<?php include 'header.php'; ?>
<div class="content">
<section class="full-page-section bg-image">
<div class="container hero-con hero-home">
<div class="row" data-aos="fade-up" data-aos-delay="0">
<div class="col-md-12">
<h1 class="big-text">MS800 Hub</h1>
<h4 class="tag">GLORY FOR THE CLASSIC</h4>
</div>
</div>
<div class="row" data-aos="fade-up" data-aos-delay="400">
<div class="col-md-6">
<p class="">MS800 Hub is a group of auto-mototive enthusiast in the town of sagar.
To be specific, we are the group of proud MS800 owners. <strong>MS800Hub</strong></p>
</div>
</div>
<div class="row" data-aos="fade-up" data-aos-delay="800">
<div class="col-md-6">
<a href="about.php" class="btn btn-primary">read more</a>
<a href="signup.php" class="btn btn-outline-primary">signup</a>
</div>
</div>
<a href="#feed_section" id="swipe_down">
<div class="arrow">
<div class="chevron"></div>
<div class="chevron"></div>
<div class="chevron"></div>
</div>
</a>
</div>
</section>
<section id="feed_section">
<br><br><br>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h2 class="big-text">FEED</h2>
</div>
</div>
<div class="row">
<?php
include 'assets/php/db_connect.php';
$feed_query="SELECT a.*, b.name, b.username from blog a, users b where a.active=1 and a.author_id=b.id order by a.image desc limit 3";
$feed_exec=mysqli_query($conn,$feed_query);
$delay=0;
while($feed_row=mysqli_fetch_array($feed_exec)){
$delay+=300;
$i=$feed_row["id"];
?>
<div class="col-md-4" data-aos="fade-right" data-aos-delay="<?php echo $delay ?>">
<div class="feed-card">
<div class="feed-card-img">
<img src="assets/img/blog/<?php echo $feed_row["image"] ?>" alt="Card image cap">
</div>
<div class="feed-card-body">
<div class="row">
<div class="col-9">
<h5><?php echo $feed_row["title"] ?></h5>
</div>
<div class="col-3 text-center">
<a href="blog.php?bid=<?php echo $feed_row["id"] ?>" class="btn btn-primary">more</a>
</div>
</div>
</div>
</div>
</div><?php } ?>
</div>
</div>
</section>
</div>
<br>
<?php include 'footer.php'; ?>
<script type="text/javascript">
document.getElementById('index').classList.add('active2');
</script>
<script>
$(document).ready(function(){
$("#swipe_down").on('click', function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 800, function(){
window.location.hash = hash;
});
}
});
});
</script>
<script type="text/javascript">
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
</script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
once: true,
duration: 1000,
});
</script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
</body>
</html>