diff --git a/servicePoints/templates/blood.html b/servicePoints/templates/blood.html new file mode 100644 index 0000000000000000000000000000000000000000..5a1043e4118cad9414112ebd5000f2833d1f4ced --- /dev/null +++ b/servicePoints/templates/blood.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html> +<head> + <link rel="stylesheet" type="text/css" href="/css/style.css"> + <title>Blood Drives</title> + + <a href="/">Home</a> +</head> +<body> + <h1 style="text-align:center">Blood Drives</h1> + + +</body> + +</html> diff --git a/servicePoints/templates/food.html b/servicePoints/templates/food.html new file mode 100644 index 0000000000000000000000000000000000000000..e2033c4c7795fe4bd3438bb5646e2f7db940ce60 --- /dev/null +++ b/servicePoints/templates/food.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html> +<head> + <link rel="stylesheet" type="text/css" href="/css/style.css"> + <title>Food Drives</title> + + <a href="/">Home</a> +</head> +<body> + <h1 style="text-align:center">Food Drives</h1> + + + +</body> + +</html> diff --git a/servicePoints/templates/index.html b/servicePoints/templates/index.html index 49bb50a9ec36a7c25e6430b1dd27d870381f2a94..45eae1167e75261f2717df101e1955aa37153414 100644 --- a/servicePoints/templates/index.html +++ b/servicePoints/templates/index.html @@ -12,11 +12,11 @@ <a href="/accounts/mask/"> <img src=/images/mask.png alt="mask"> </a> - <a href="/accounts/mask/"> - <img src=/images/blood.png alt="mask"> + <a href="/accounts/blood/"> + <img src=/images/blood.png alt="blood"> </a> - <a href="/accounts/mask/"> - <img src=/images/food.png alt="mask"> + <a href="/accounts/food/"> + <img src=/images/food.png alt="food"> </a> <a href="/accounts/tutorsu/"> <img src=/images/tutor.png alt="tutorsu"> diff --git a/servicePoints/views/accounts.py b/servicePoints/views/accounts.py index 0e404e66bfefa16c5e738adf98b3b76d2447aba2..7ae7cf54926f175b83e8f4f0c35fb0f74de23c2f 100644 --- a/servicePoints/views/accounts.py +++ b/servicePoints/views/accounts.py @@ -253,6 +253,16 @@ def mask(): context = {} return render_template('mask.html', **context) +@servicePoints.app.route('/accounts/blood/') +def blood(): + context = {} + return render_template('blood.html', **context) + +@servicePoints.app.route('/accounts/food/') +def food(): + context = {} + return render_template('food.html', **context) + @servicePoints.app.route('/images/<path:filename>', methods=['GET', 'POST']) def images(filename): if "username" in flask.session: