-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.php
239 lines (198 loc) · 5.15 KB
/
message.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
<!DOCTYPE html>
<html>
<head>
<title>Blog</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Cabin Sketch' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Alegreya Sans' rel='stylesheet'>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
img {
width: 100%;
height: 100%;
}
body {
margin: 0;
background-color: #f1f1f1;
font-family: Arial, Helvetica, sans-serif;
}
#navbar {
font-family: 'Alegreya Sans';font-size: 22px;
background-color: #333;
position: fixed;
top: -50px;
width: 97.5%;
display: block;
transition: top 0.3s;
background-image: linear-gradient(to bottom, #4285F4,cyan);
border: 3px solid #000000;
border-radius: 25px;
margin-left: auto;
margin-right: auto;
}
#navbar a {
float: left;
display: block;
color: #000000;
text-align: center;
padding: 15px;
text-decoration: none;
font-size: 17px;
}
#navbar a:hover {
background-color: #ffffff;
color: black;
border-radius: 25px;
font-family: 'Cabin Sketch';font-size: 22px;
}
* {
box-sizing: border-box;
}
/* Add a gray background color with some padding */
body {
font-family: Arial;
padding: 20px;
background-image: linear-gradient(to right, #4285F4,cyan);
}
/* Header/Blog Title */
.header {
padding: 30px;
font-size: 40px;
text-align: center;
background: white;
border-radius: 25px;
background: #787878;
border: 3px solid #ffffff;
padding: 20px;
margin-left: auto;
margin-right: auto;
font-family: 'Cabin Sketch';font-size: 22px;
font-size: 22px;
background-image: linear-gradient(to top, white,#4285F4);
}
/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
float: left;
width: 75%;
}
/* Right column */
.rightcolumn {
float: left;
width: 25%;
padding-left: 20px;
}
/* Fake image */
/* Add a card effect for articles */
.card {
background-color: white;
padding: 20px;
margin-top: 20px;
border-radius: 25px;
border: 3px solid #C0C0C0;
}
/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}
/* Footer */
.footer {
padding: 30px;
font-size: 40px;
text-align: center;
background: white;
border-radius: 25px;
background: #787878;
border: 3px solid #ffffff;
padding: 20px;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
font-family: 'Alegreya Sans';font-size: 22px;
font-size: 22px;
background-image: linear-gradient(to top, white,#4285F4);
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
.leftcolumn, .rightcolumn {
width: 100%;
padding: 0;
}
}
#rcorners {
border-radius: 25px;
background: #787878;
border: 5px solid #505050;
padding: 20px;
width: 80%;
height: 100%;
margin-left: auto;
margin-right: auto;
font-family: "Sofia";
font-size: 22px;
background-image: linear-gradient(to bottom, white,#787878);
}
</style>
</head>
<body>
<div id="navbar">
<a href="Home.html"><i class="fa fa-globe"> Home</i></a>
<a href="Blog.html"><i class="fa fa-align-left"> Blog</i></a>
<a href="message.php"><i class="fa fa-align-center"> User's Blog</i></a>
<a href="contact.php"><i class="fa fa-align-right"> Write something!</i></a>
<a href="#"><i class="fa fa-angle-double-up">Back to top</i></a>
</div>
<div class="header">
<h2>BLOG POST</h2>
</div>
<?php include("config.php") ?>
<body>
<div class="card">
<h1 style="color:#00000;font-weight: bold;font-size:40px"><center><u>User's Blog </u></center></h1>
<div class="row">
<form method="get">
<div class="col-md-5 col-sm-5 col-xs-12 gutter modal-sm " >
<div class="container" >
<?php include("display_msg.php") ?>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="footer">
<footer class="text-light" >
<div class="container" style="top:2000px">
<div class="row">
<div class="col-md-3 col-lg-4 col-xl-3">
<h5>About</h5>
<hr class="bg-white mb-2 mt-0 d-inline-block mx-auto w-25">
<p class="mb-0">
Publish your passions, your way
Create a unique and beautiful blog. It’s easy and free.
</p>
</div>
</div>
</div>
</footer>
</div>
<script>
// When the user scrolls down 20px from the top of the document, slide down the navbar
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("navbar").style.top = "0";
} else {
document.getElementById("navbar").style.top = "-50px";
}
}
</script>
<?php
include('config.php');
?>
</body>
</html>