-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro.php
executable file
·284 lines (259 loc) · 10 KB
/
intro.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?php
include 'core/config.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MotoJoy - Intro</title>
<meta name="description" content="MotoJoy">
<link rel="icon" href="<?php echo IMGS_PATH . 'icon.png' ?>">
<?php
//Bootstrap CSS
Assets::loadCSS_Assets('bootstrap4/bootstrap.min');
//Font-awesome
Assets::loadCSS_Assets('font-awesome/font-awesome.min');
Assets::loadCSS_Custom('intro');
//Jquery
Assets::loadJS_Assets('jquery/jquery-3.2.1.min');
//Scroll Revealer
Assets::loadJS_Assets('scrollreveal/scrollreveal.min');
Assets::loadJS_Custom('intro');
?>
<script type="text/javascript">
window.sr = ScrollReveal({ reset: true });
</script>
</head>
<body>
<div class="jumbotron">
<video id="video-background" autoplay loop muted>
<source type="video/mp4" src="<?php echo ASSETS_PATH . 'video/intro2.mp4'; ?>">
</video>
<div class="container">
<h1 id="vid_title">We live, We ride!</h1>
<h3 class="red_text">Moto <b>Joy</b></h3>
<div class="arrow">
<a href="#intro"><i class="fa fa-chevron-down" style="color: #000;"></i></a>
</div>
</div>
</div>
<div class="redline"></div>
<div id="intro">
<div class="container">
<h2>Bem vindo ao Hub <b>Motojoy</b></h2>
<p>Podes fazer as tuas compras, acompanhar todas as novidades do nosso mundo e ainda aprender mais sobre a tua máquina.</p>
<div class="line mb-4"></div>
<a href="index" class="btn btn-danger btn-lg btn-block mb-4" id="btn-home" role="button" aria-pressed="true">Continuar</a>
<div class="line mb-4"></div>
<div class="row category h-90">
<div class="col-md-4 cat">
<div class="card" id="card_loja">
<div class="card-img">
<div class="uk-cover-container">
<img class="card-img-top d-block w-100 img-fluid w-100 h-100" src="<?php echo IMGS_PATH . 'panigale.png'; ?>" alt="panigale" uk-cover>
</div>
</div>
<div class="card-block">
<h4 class="card-title">Compra connosco</h4>
<p class="card-text">Precisas de alguma peça ou acessório para a tua mota? Estamos ao ao teu dispor !</p>
<a href="<?php echo STORE_PATH; ?>" class="btn btn-outline-danger mb-4 w-50">Loja</a>
</div>
</div>
</div>
<div class="col-md-4 cat">
<div class="card" id="card_noticias">
<div class="card-img">
<div class="uk-cover-container">
<img class="card-img-top d-block w-100 img-fluid w-100 h-100" src="<?php echo IMGS_PATH . 'default.png'; ?>" alt="r1m" uk-cover>
</div>
</div>
<div class="card-block">
<h4 class="card-title">Notícias do nosso mundo</h4>
<p class="card-text">Tens aqui as notícias mais recentes do mundo motard. Acompanha todas já !</p>
<a href="<?php echo URL_PATH . 'news'; ?>" class="btn btn-outline-primary mb-4 w-50">Notícias</a>
</div>
</div>
</div>
<div class="col-md-4 cat">
<div class="card" id="card_aprende">
<div class="card-img">
<div class="uk-cover-container">
<img class="card-img-top d-block w-100 img-fluid w-100 h-100" src="<?php echo IMGS_PATH . 'r6.png'; ?>" alt="r6" uk-cover>
</div>
</div>
<div class="card-block">
<h4 class="card-title">Aprende connosco!</h4>
<p class="card-text">Queres aprender a mexer na tua própria mota? Vê e aprende connosco !</p>
<a href="<?php echo URL_PATH . 'tipstricks'; ?>" class="btn btn-outline-success mb-4 w-50">Aprende connosco</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="contact" style="background: url('<?php echo IMGS_PATH . 'dirt.png'; ?>') fixed no-repeat; background-size: cover; min-height: 350px;">
</div>
<footer>
<div class="flash_messages"></div>
<div class="container">
<div class="top-footer">
<div class="row">
<div class="col-md-5">
<address>
<strong>Marco Escaleira</strong><br>
Travessa da Seara 61 3ºDT<br>
Matosinhos, Porto<br>
<abbr title="Phone">+351 912766624</abbr>
</address>
</div>
<div class="col-md-7">
<h3>Marco Escaleira.</h3>
<p>Sou um jovem que adora o desenvolvimento de plataformas online. Sou determinado e gosto de novos desafios. Prazer, sou eu... Marco Escaleira</p>
</div>
</div>
</div>
<div class="main-footer">
<div class="row">
<div class="col-md-4 col-sm-12 social">
<a href="#"><i class="fa fa-facebook"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-google-plus"></i></a>
<a href="#"><i class="fa fa-instagram"></i></a>
</div>
<div class="col-md-4 col-sm-12 year">
<p>Marco Escaleira. 2017</p>
<p>Todos os direitos reservados.</p>
</div>
<div class="col-md-4 col-sm-12 copyright">
<p>Copyrights © Marco Escaleira</p>
</div>
</div>
</div>
</div>
</footer>
<!--<div id="overlay">
<div class="spinner"></div>
</div>-->
<div id="loader-wrapper">
<div class="loader">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="subline"></div>
<div class="subline"></div>
<div class="subline"></div>
<div class="subline"></div>
<div class="subline"></div>
<div class="loader-circle-1"><div class="loader-circle-2"></div></div>
<div class="needle"></div>
<div class="loading">Carregando</div>
</div>
</div>
<script type="text/javascript">
sr.reveal('#vid_title', {
duration: 2500,
origin:'top',
distance: '100px'
});
sr.reveal('.red_text', {
duration: 1500,
origin: 'left',
distance: '200px'
});
sr.reveal('#btn-home', {
duration: 1000,
origin: 'bottom',
distance: '100px'
});
sr.reveal('#card_loja', {
duration: 1700,
origin: 'right',
rotate: {x: 50}
});
sr.reveal('#card_noticias', {
duration: 1700,
origin: 'bottom',
rotate: {x: 50},
delay: 250
});
sr.reveal('#card_aprende', {
duration: 1700,
origin: 'right',
rotate: {x: 50},
delay: 500
});
</script>
<?php
Assets::loadJS_Assets('validation/dist/jquery.validate.min');
Assets::loadJS_Assets('validation/dist/additional-methods.min');
?>
<script type="text/javascript">
$(function() {
var validation = $("#con_form").validate({
rules: {
'con_email': {
required: true,
email: true
},
'con_msg': {
required: true
}
},
messages: {
'con_email': {
required: 'É necessário definir um email',
email: 'Insira um email válido'
},
'con_msg': {
required: 'É necessário escrever uma mensagem',
}
},
submitHandler: function (form, event) {
event.preventDefault();
//Pegar campos dos inputs
var con_email = $('#con_email').val();
var con_msg = $('#con_msg').val();
var form = $('#con_form');
var update = $.ajax({
url: 'intro.php',
type: 'post',
data: form.serialize(),
dataType: 'json',
success:function(response) {
alert('aqui');
$('.flash_messages').html('<div class="alert alert-success text-center" role="alert">'+
'<i class="fa fa-trash-o"></i> ' + response.messages +
'</div>');
$(".alert-success").delay(400).slideDown(10, function() {
$(this).delay(2000).slideUp('slow', function() {
$(this).remove();
});
}); // /.alert
$('#con_email').html('');
$('#con_msg').html('');
}
}); // Edit ajax
},
highlight: function(element) {
$(element).closest('.form-control').addClass('is-invalid');
},
unhighlight: function(element) {
$(element).closest('.form-control').removeClass('is-invalid');
},
errorElement: 'div',
errorClass: 'invalid-feedback mb-3',
errorPlacement: function(error, element) {
if(element.parent('.form-group').length) {
error.insertAfter(element.parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</body>
</html>