-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
143 lines (131 loc) · 4.92 KB
/
index.php
File metadata and controls
143 lines (131 loc) · 4.92 KB
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
<?php session_start();
if(!isset($_SESSION['user_id'])){
header("Location: login.php");
exit();
} ?>
<!DOCTYPE html>
<html lang="el">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Αρχική Σελίδα</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
#header {
width: 100%;
background-color: #333;
color: white;
padding: 10px 0;
text-align: center;
position: fixed;
top: 0;
z-index: 1000;
}
#header h1 {
margin: 0;
}
#container {
display: flex;
margin-top: 60px;
}
#sidebar {
width: 20%;
background-color: #f0f0f0;
padding: 10px;
position:fixed;
top: 60px;
bottom: 0;
overflow-y: auto;
}
#content {
flex: 1;
margin-left: 25%;
padding: 20px;
}
#sidebar button {
display: block;
width: 100%;
margin-bottom: 20px;
padding: 10px;
border: none;
background-color: #e7e7e7;
cursor: pointer;
text-align: center;
}
#sidebar button:hover {
background-color: #d7d7d7;
}
#topButton {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #333;
color: white;
padding: 10px 15px;
text-decoration: none;
font-size: 14px;
border-radius: 5px;
}
/* */
#topButton:hover {
background-color: #555;
}
#logout-btn {
position: fixed;
top: 60px;
right: 20px;
background-color: red;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
border-radius: 5px;
font-weight: bold;
}
#logout-btn:hover {
background-color: darkred;
}
</style>
</head>
<body>
<div id="header">
<h1>Αρχική Σελίδα</h1>
</div>
<div id="container">
<?php include 'sidebar.php'; ?>
<div id="content">
<h2>Καλωσορίσατε στο μάθημα "Web Development"!</h2>
<p>Σας καλωσορίζουμε σε αυτό το συναρπαστικό ταξίδι στον κόσμο της ανάπτυξης ιστοσελίδων.</p>
<h3>Στόχοι Μαθήματος</h3>
<ul>
<li>Κατανόηση των βασικών εννοιών HTML, CSS και JavaScript.</li>
<li>Εξοικείωση με τη δημιουργία διαδραστικών ιστοσελίδων.</li>
<li>Εισαγωγή στις σύγχρονες τεχνολογίες ανάπτυξης ιστοσελίδων (π.χ. frameworks).</li>
<li>Εφαρμογή πρακτικών βέλτιστης ανάπτυξης (best practices).</li>
<li>Δημιουργία ενός τελικού έργου (project) με βάση τις γνώσεις που αποκτήθηκαν.</li>
</ul>
<h3>Πλοήγηση στο Site</h3>
<p>Η ιστοσελίδα αυτή περιέχει τις εξής ενότητες:</p>
<ul>
<li><strong>Ανακοινώσεις:</strong> Ενημερωθείτε για όλες τις σημαντικές πληροφορίες σχετικά με το μάθημα.</li>
<li><strong>Επικοινωνία:</strong> Βρείτε πληροφορίες για το πώς να επικοινωνήσετε με τον διδάσκοντα ή τους βοηθούς διδασκαλίας.</li>
<li><strong>Έγγραφα Μαθήματος:</strong> Πρόσβαση σε σημειώσεις, διαφάνειες και άλλο εκπαιδευτικό υλικό.</li>
<li><strong>Εργασίες:</strong> Δείτε τις αναθέσεις εργασιών και τις οδηγίες υποβολής.</li>
</ul>
<img src="image1.png" alt="Web Development" style="width:100%; max-width:600px; display:block; margin:20px auto;">
</div>
<?php if (isset($_SESSION["user_id"])): ?>
<form action="logout.php" method="post">
<button type="submit" id="logout-btn">Αποσύνδεση</button>
</form>
<?php else:
?>
<a href="login.php" class="btn">Σύνδεση</a>
<?php endif; ?>
<a href="#" id="topButton">Top</a>
</body>
</html>