diff --git a/app/main/routes.py b/app/main/routes.py
index 01b8a13..a253fd8 100644
--- a/app/main/routes.py
+++ b/app/main/routes.py
@@ -1,6 +1,7 @@
from app import db
from app.main import main
from app.users.models import User
+from app.campaigns.models import Campaign
# from forms import LoginForm, RequestResetForm, ResetPasswordForm, EditUserForm, AddUserForm
from flask import render_template, redirect, url_for, flash, request
from flask_login import login_required, login_user, current_user, logout_user
@@ -12,6 +13,7 @@ import os
@main.route('/homepage')
-def homepage():
-
- return render_template('homepage.html')
\ No newline at end of file
+def homepage():
+ active_campaigns = Campaign.query.filter_by(active=True).all()
+ return render_template('homepage.html',
+ active_campaigns=active_campaigns)
\ No newline at end of file
diff --git a/app/main/templates/homepage.html b/app/main/templates/homepage.html
index 8aad2a0..69dd62b 100644
--- a/app/main/templates/homepage.html
+++ b/app/main/templates/homepage.html
@@ -1,2 +1,37 @@
{% extends 'base.html' %}
-{% block title %}Customer Search{% endblock title %}
\ No newline at end of file
+{% block title %}Homepage{% endblock title %}
+
+{% block stylesheet %}
+
+{% endblock stylesheet %}
+{% block content %}
+
+
+
Visit Campaigns
+
+
+
+
+ | Title |
+ Campaign Link |
+
+
+
+ {% for campaign in active_campaigns %}
+
+ | {{campaign.title}} |
+ See campaign details |
+
+ {% endfor %}
+
+
+
+
+
+{% endblock content %}
\ No newline at end of file