-
Notifications
You must be signed in to change notification settings - Fork 0
/
homepage.php
145 lines (120 loc) · 3.92 KB
/
homepage.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
<?php
require_once('vendor/autoload.php');
$clientID = "716305721047-bqhs8stbfa0tp2j2l4alcmv62gaeejka.apps.googleusercontent.com";
$clientSecret = "I_AYXC7JW4SVh1q7By21gKPt";
$client = new Google_Client();
$client->setClientId($clientID);
$client->setClientSecret($clientSecret);
$client->setRedirectUri("http://localhost/TSHIRT-Tour---Ecommerce-Website/index.php");
$client->addScope('profile');
$client->addScope('email');
if(isset($_GET['code'])){
$token = $client->fetchAccessTokenWithAuthCode($_GET['code']);
$client->setAccessToken($token);
$auth = new Google_Service_Oauth2($client);
$google_info = $auth->userinfo->get();
$email = $google_info->email;
var_dump($email);exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style/index.css">
<link rel="stylesheet" href="style/homepage.css">
<link rel="stylesheet" href="/style/font/fontawesome-free-5.15.3-web/css/all.css">
<script src="https://kit.fontawesome.com/70196224ec.js" crossorigin="anonymous"></script>
<!-- jQuery start -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js"></script>
<!-- jQuery End -->
</head>
<body>
<!-- Header Start -->
<div class="navBx">
<div class="header">
<!-- Logo -->
<div class="logo">
<h1>Logo</h1>
</div>
</div>
<!-- Categories -->
<div class="category">
<ul>
<li><a href="#women">WOMEN</a></li>
<li><a href="#men">MEN</a></li>
<li><a href="#kidsG">KIDS GIRL</a></li>
<li><a href="#kidsB">KIDS BOY</a></li>
<li><a href="#">BRANDS</a></li>
</ul>
</div>
</div>
<!-- Header End -->
<!-- Body Start -->
<div class="contentBx">
</div>
<div class="contentBx">
<h1 id="men">Men</h1>
</div>
<div class="contentBx">
<h1 id="women">Women</h1>
</div>
<div class="contentBx">
<h1 id="kidsG">Kids Girl</h1>
</div>
<div class="contentBx">
<h1 id="kidsB">Kids Boy</h1>
</div>
<!-- Body End -->
<!-- Footer Start -->
<div class="footerBx">
<div class="footer">
<div class="cat">
<h1>TShirt Tour</h1>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing, elit. Quisquam reiciendis laborum quas voluptatem consequatur explicabo vitae dignissimos, labore temporibus, vero quo repudiandae repellat harum dolorum, optio quidem vel nisi accusantium.</p>
</div>
<div class="cat">
<h3>Customer Service</h3>
<!-- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Et exercitationem nihil, doloremque aperiam nulla, sed, nam commodi at consectetur cupiditate quos, dolores dolorum doloribus modi. Laborum odit voluptas, voluptatibus sapiente!</p> -->
<br>
<ul class="customer">
<li><a href="#">FAQ </a></li>
<li><a href="#">Size Guide </a></li>
<li><a href="#">Exchanges & Returns </a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="cat">
<h3>About Us</h3>
<br>
<ul class="customer">
<li><a href="#">Who We Are </a></li>
<li><a href="#">Terms & Condtions </a></li>
<li><a href="#">Privacy & Policy</a></li>
</ul>
</div>
<div class="cat">
<h3>Social Media</h3>
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="smallFooter">
<label for="">© Tshirt Tour 2021</label>
</div>
</div>
<!-- Footer End -->
<style>
.error {
color: red;
}
</style>
<script type="text/javascript" src="frontendvalidation/verifySignup.js"></script>
</style>
</body>
</html>