diff --git a/server.py b/server.py index e2d4384e3ef292d33d6f533a89c8326b8618077a..b62f67a1feefcc779345c602b223a7844544b141 100644 --- a/server.py +++ b/server.py @@ -19,13 +19,14 @@ def increment(): views += 1 with open('views.json','w') as f: json.dump(views,f) + return views @app.route('/') def gohome(): return redirect('home') @app.route('/home') def home(): - increment() - return render_template('home.html') + x = increment() + return render_template('home.html',view=x) @app.route('/plushies') def plushies(): if request.method =='GET': diff --git a/static/css/style.css b/static/css/style.css index 8c52a9f58427dc5151419da9761dd9bedbf89f12..530fe469ef82de51cd365d6ab1bf2546ae498abd 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -40,11 +40,16 @@ h2 { color: transparent; } .socialbutton { - width: 3em; - height: 3em; + cursor: pointer; + width: 25px; + height: 25px; } button{ border: none; cursor: pointer; appearance: none; +} +td th { + padding-right: 20px; + cursor: pointer; } \ No newline at end of file diff --git a/static/img/discord.png b/static/img/discord.png new file mode 100644 index 0000000000000000000000000000000000000000..e9dc50d7feed9b4e50265cdf12a52a8e3f0b2b59 Binary files /dev/null and b/static/img/discord.png differ diff --git a/static/img/reddit.png b/static/img/reddit.png new file mode 100644 index 0000000000000000000000000000000000000000..cc7c396948c2162565219c8e4e9c5cc0e7198819 Binary files /dev/null and b/static/img/reddit.png differ diff --git a/templates/home.html b/templates/home.html index c14160ba5f91b2c542adaafc868031c4e372a4dd..43ea5d519cfc2b03f3421b62a557550f4992753e 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,11 +1,13 @@ {%extends 'template2.html'%} {%block homepage %} +<title>hOwOme</title> <div class="container bg-light"> <div class="container-md"> <h1> Hiiiiiiiiiiiiiii </h1> <h1>Welcome to my website </h1> <h1>Its still under construction </h1> <h1>sorry </h1> + <h1>This website has {{view}} views</h1> <img src="static/img/Adachi.png"> </div> diff --git a/templates/plushies.html b/templates/plushies.html index 1a5e81b757601ebe5fe112dcbdcbcd5bb843008c..d5be402d769c7198bcf25d959c0fe9faab1a8cfa 100644 --- a/templates/plushies.html +++ b/templates/plushies.html @@ -1,5 +1,6 @@ {%extends 'template2.html'%} {%block homepage %} +<title>Plushies:3</title> <div class="container bg-light"> <div class="container-md"> {%for cuddle in plosh %} diff --git a/templates/template2.html b/templates/template2.html index 5e65f75a86527e2d709ac2e04c9f5d6300177856..81426658bdd1e6fbce72249547a74578bf951ac5 100644 --- a/templates/template2.html +++ b/templates/template2.html @@ -7,7 +7,7 @@ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <link rel="stylesheet" href="/static/css/style.css"> - <title>hOwOme</title> + <link rel="shortcut icon" type="image/png" href="img/Adachi.png"/> @@ -52,20 +52,24 @@ <!-- bg-green --> <section class="footer"> <div class="container"> - <h1> Socials :3</h1> - <div class="col mt-4 mb-3"> -<br> - </div> - <div class="col-md-6"> - <button onclick="window.open('https://twitter.com/elliemoding')"><img class="socialbutton" src="static/img/twitter.png"></button> - <button onclick="window.open('https://github.com/HSTSellie')"><img class="socialbutton" src="static/img/github.png"></button> - <button onclick="window.open('https://www.reddit.com/user/pillarstar5')"><img class="socialbutton" src="static/img/twitter.png"></button> + <table height = "20" style="padding: 20px;"> + <td style="padding: 20px;"> + <a onclick="window.open('https://twitter.com/elliemoding')"><img class="socialbutton" src="static/img/twitter.png"> <h1 style="cursor:pointer">@elliemoding </h1></a></div> + </td> + <td style="padding: 20px;"> + <a onclick="window.open('https://github.com/HSTSellie')"><img class="socialbutton" src="static/img/github.png"><h1 style ="cursor: pointer;"> HSTSellie </h1></a></div> + </td> + <td style="padding: 20px;"> + <a onclick="window.open('https://www.reddit.com/user/pillarstar5')"><img class="socialbutton" src="static/img/reddit.png"><h1 style="cursor: pointer;"> u/pillarstar5 </h1></a> +</td> - </div> - + <td style="padding: 20px;"> + <a onclick="window.open('https://discord.gg/user/Elliex3#6275')"><img class="socialbutton" src="static/img/discord.png"><h1 style="cursor: pointer;"> Elliex3#6275 </h1></a> +</td> +</table> </div> </section> {%endblock%} -</html> \ No newline at end of file +</html> diff --git a/views.json b/views.json index 396054452291e2e07fcd9f33cd76ea228a88aa3a..c72784c8c508343b406600858d9969525d9bf7fe 100644 --- a/views.json +++ b/views.json @@ -1 +1 @@ -220 \ No newline at end of file +235 \ No newline at end of file