diff --git a/makeDB.sql b/makeDB.sql new file mode 100644 index 0000000000000000000000000000000000000000..5c2ead8053c669791df8f3ef8ad4d244a05faf4d --- /dev/null +++ b/makeDB.sql @@ -0,0 +1,40 @@ +drop table if exists Plushies; +CREATE table Plushies( + `plushieName` varchar(70), + `dateObtained` date, + `speciesName` varchar(70), + `talkingAboutThem` varchar(1500), + `imgSRC` varchar(70) +); +drop table if exists blogPosting; +create TABLE blogPosting( + `Title` varchar(100), + `rambles` varchar(2000), + `datePosted` date, + `imgSRC` varchar(70) + +); +drop table if exists cooking; +create Table cooking( + `mealName` varchar(100), + `recipe` varchar(300), + `dateAdded` date, + `review` varchar(500), + `imgSRC` varchar(70), + `imgSRC2` varchar(70) +); +drop table if exists mediaReview; +create TABLE mediaReview( + nameOfMedia varchar(100), + linktoIMDB varchar(200), + opinions varchar(2000), + imgSRC varchar(70), + dayReviewed date +); +drop table if exists Modelling; +create table Modelling( + dateMade date, + nameOfModel varchar(100), + imgSRC varchar(70), + description varchar(1000) +); \ No newline at end of file diff --git a/personalDB.db b/personalDB.db new file mode 100644 index 0000000000000000000000000000000000000000..33f9fd6dccbe4ed127f02b7344cac9a7b91412f3 Binary files /dev/null and b/personalDB.db differ diff --git a/server.py b/server.py index e79fbada1806b0aa20c1f36981f83b4fa4b62cb1..e2d4384e3ef292d33d6f533a89c8326b8618077a 100644 --- a/server.py +++ b/server.py @@ -5,6 +5,7 @@ import random from datetime import datetime import json app=Flask(__name__) +db= 'personalDB.db' try: with open('views.json','r') as f: views=json.loads(f.read()) @@ -24,7 +25,17 @@ def gohome(): @app.route('/home') def home(): increment() - return render_template('template2.html') + return render_template('home.html') +@app.route('/plushies') +def plushies(): + if request.method =='GET': + conn = sqlite3.connect(db) + cur = conn.cursor() + cur.execute('select * from Plushies order by dateObtained desc') + plushie = cur.fetchall() + print(plushie[0]) + return render_template('plushies.html',plosh=plushie) + if __name__ == '__main__': diff --git a/static/css/style.css b/static/css/style.css index 3adb414bc49eda6ff4067fe5355dd44736fafeba..8c52a9f58427dc5151419da9761dd9bedbf89f12 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -5,3 +5,46 @@ body { Â background-repeat: no-repeat; background-attachment: fixed; } +container-md { + + margin-left: auto; + margin-right: auto; + background: #ffffff; + width: 20em; + +} +h1 { + color: #53105e; +} +.softimage { + width: 30em; + height: 30em; + object-position: center; + border-radius: 10%; + object-fit: fill; +} +.container{ + background-color: #ffffff; + display: flex; + align-items: left; + justify-content: left; +} +p { + color: #53105e; + font-size: large; +} +.title{ + font-weight:1000; +} +h2 { + color: transparent; +} +.socialbutton { + width: 3em; + height: 3em; +} +button{ + border: none; + cursor: pointer; + appearance: none; +} \ No newline at end of file diff --git a/static/img/Models/00raiser.png b/static/img/Models/00raiser.png new file mode 100644 index 0000000000000000000000000000000000000000..97a90781b5315c390ff5386b8de20340c96a7908 Binary files /dev/null and b/static/img/Models/00raiser.png differ diff --git a/static/img/Models/sazabi.png b/static/img/Models/sazabi.png new file mode 100644 index 0000000000000000000000000000000000000000..0daae301a6eb690b3ae73163184c73a1f72bbcb5 Binary files /dev/null and b/static/img/Models/sazabi.png differ diff --git a/static/img/Plushies/amogus.jpg b/static/img/Plushies/amogus.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0d61797a74b3c4a01410c7e2f765622ad52db88e Binary files /dev/null and b/static/img/Plushies/amogus.jpg differ diff --git a/static/img/Plushies/sergey.jpg b/static/img/Plushies/sergey.jpg new file mode 100644 index 0000000000000000000000000000000000000000..12c952f93dd5d79752caf4335d4ce282960e853f Binary files /dev/null and b/static/img/Plushies/sergey.jpg differ diff --git a/static/img/blog/hog.jpg b/static/img/blog/hog.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f8163deb7bd79a5e4da81122c54393b114642849 Binary files /dev/null and b/static/img/blog/hog.jpg differ diff --git a/static/img/github.png b/static/img/github.png new file mode 100644 index 0000000000000000000000000000000000000000..9490ffc6d2e158b266f719d58365905c1c5060cb Binary files /dev/null and b/static/img/github.png differ diff --git a/static/img/twitter.png b/static/img/twitter.png new file mode 100644 index 0000000000000000000000000000000000000000..87c19ca3e619de49f8550b777b13cf4808c4db9d Binary files /dev/null and b/static/img/twitter.png differ diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000000000000000000000000000000000000..c14160ba5f91b2c542adaafc868031c4e372a4dd --- /dev/null +++ b/templates/home.html @@ -0,0 +1,16 @@ +{%extends 'template2.html'%} +{%block homepage %} +<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> + <img src="static/img/Adachi.png"> + +</div> + + </div> + +{%endblock%} + diff --git a/templates/plushies.html b/templates/plushies.html new file mode 100644 index 0000000000000000000000000000000000000000..1a5e81b757601ebe5fe112dcbdcbcd5bb843008c --- /dev/null +++ b/templates/plushies.html @@ -0,0 +1,27 @@ +{%extends 'template2.html'%} +{%block homepage %} +<div class="container bg-light"> + <div class="container-md"> + {%for cuddle in plosh %} + <div class="container"> + <img src={{cuddle[4]}} class="softimage"> + <div class="mt-3"><h2>_</h2></div> + <div class="mt-3"> + <p class="title"> {{cuddle[0].title()}}</p> + <p>{{cuddle[2]}}</p> + <p> obtained on {{cuddle[1]}}</p> + <p>{{cuddle[3]}}</p> + </div> + + + </div> + <br> + <br> +{%endfor%} + +</div> + + </div> + +{%endblock%} + diff --git a/templates/template2.html b/templates/template2.html index 8c9f64513c11522e1a62c9e227c8f2e1105022f9..5e65f75a86527e2d709ac2e04c9f5d6300177856 100644 --- a/templates/template2.html +++ b/templates/template2.html @@ -14,15 +14,15 @@ </head> {%block navbar%} -<nav class="navbar navbar-expand-md navbar-dark" style="background-color: #551a8b;"> +<nav class="navbar navbar-expand-md navbar-dark" style="background-color: #551a8c;"> <div class="container-fluid"> - <a class="navbar-brand" href="#">my website uwu</a> + <a class="navbar-brand" href="home">my website uwu</a> <ul class="navbar-nav "> <li class="nav-item"> - <a class="nav-link" href="/blog">Blogposting</a> + <a class="nav-link" href="/blog">Blogposting</a> </li> <li class="nav-item"> <a class="nav-link" href="/hottakes">Media review</a> @@ -45,6 +45,27 @@ </nav> {%endblock%} {%block bg%} - -<img src="/static/img/Adachi.png"> {%endblock%} +{%block homepage%} +{%endblock%} + {%block footer%} + <!-- 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> + + + </div> + + </div> + </section> + {%endblock%} + +</html> \ No newline at end of file diff --git a/views.json b/views.json index 2d73b5e3ba15b14f50c38dad75d5f05a9aa21301..396054452291e2e07fcd9f33cd76ea228a88aa3a 100644 --- a/views.json +++ b/views.json @@ -1 +1 @@ -152 \ No newline at end of file +220 \ No newline at end of file