-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
145 lines (114 loc) · 3.97 KB
/
home.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 'auth.php';
if (!$userid = checkAuth()) {
header('Location: login.php');
exit;
}
$username = $_SESSION['username'];
?>
<html>
<head>
<title>Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lobster&family=Work+Sans:ital,wght@0,100;0,400;0,500;0,600;1,100;1,400;1,500;1,600&display=swap" rel="stylesheet">
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css'>
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./stylesheets/main.css">
<link rel="stylesheet" href="./stylesheets/home.css">
<link rel="stylesheet" href="./stylesheets/navbar.css">
<link rel="stylesheet" href="./stylesheets/footer.css">
<link rel="stylesheet" href="./stylesheets/article_list.css">
<script src="./scripts/home.js" defer></script>
<script src="./scripts/sandwich_btn.js" defer></script>
</head>
<body>
<header id="navbar">
<a href="/hw1/home.php" id="title_link">
<img src="./assets/world.svg" id="logo">
<div id="title">
Globetrotters
</div>
</a>
<div id="link-group">
<a href="home.php" class="tabs">
<i class="fi fi-rr-house-blank"></i>
Home
</a>
<a href="article_list.php" class="tabs">
<i class="fi fi-rr-plane"></i>
Articoli
</a>
<a href="article_writing.php" class="tabs">
<i class="fi fi-rr-pen-nib"></i>
Scrivi un articolo
</a>
<a href="profile.php" class="tabs">
<i class="fi fi-rr-user"></i>
<?php echo $_SESSION["username"] ?>
</a>
<a id="logout_btn" href="logout.php">
Logout
</a>
</div>
<div id="sandwich_btn">
<i class="fi fi-rr-settings-sliders"></i>
</div>
</header>
<div id="sandwich">
<a href="home.php" class="tabs">
<i class="fi fi-rr-house-blank"></i>
Home
</a>
<a href="article_list.php" class="tabs">
<i class="fi fi-rr-plane"></i>
Articoli
</a>
<a href="article_writing.php" class="tabs">
<i class="fi fi-rr-pen-nib"></i>
Scrivi un articolo
</a>
<a href="profile.php" class="tabs">
<i class="fi fi-rr-user"></i>
<?php echo $_SESSION["username"] ?>
</a>
<a id="logout_btn" href="logout.php">
Logout
</a>
</div>
<div id="search_container">
<form name="search_form">
<div id="search_bar">
<label for="search_bar">
<button type="submit">
<i class="fi fi-rr-search-location"></i>
</button>
</label>
<input type="text" name="search_bar">
</div>
</form>
</div>
<section>
<div id="section-title">
Lasciati ispirare
</div>
<div id="section-subtitle">
Ultimi tweet dell'account <span class="hashtag">Trip Advisor</span> e articoli più popolari
</div>
<br>
<div id="article-container" class="page">
<div id="most_popular">
</div>
<div id="article-list">
</div>
</div>
<div id="hourglass">
<img src="./assets/hourglass.gif" class="hidden">
</div>
</section>
<footer>
Made by Daniele S. Cardullo - 1000014469 <a href="https://github.com/dan-crdll"><img src="./assets/github.png"></a>
</footer>
</body>
</html>