-
Notifications
You must be signed in to change notification settings - Fork 2
/
Home.py
63 lines (53 loc) · 2.28 KB
/
Home.py
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
from kailo_beewell_dashboard.images import get_image_path
from kailo_beewell_dashboard.page_setup import blank_lines, page_footer, page_setup
import pickle
import streamlit as st
page_setup("public")
# Import data
with open("data/survey_data/nd_overall_counts.pkl", "rb") as f:
school_counts = pickle.load(f)
# Title and sub-title
st.title("The #BeeWell Survey")
st.markdown(
"""
<p style='text-align: center; font-weight: bold'>
This dashboard shares results from the #BeeWell survey<br>delivered by Kailo
in Northern Devon.</p>
""",
unsafe_allow_html=True,
)
# Image
st.image(get_image_path("home_image_3_transparent.png"), use_column_width=True)
# Introduction
st.markdown(f"""In the academic year 2023-24, {school_counts['total_pupils']}
pupils from {school_counts['total_schools']} schools across North Devon and
Torridge took part in the #BeeWell survey delivered by Kailo. There were
two versions of the survey:
* Standard #BeeWell survey - completed by {school_counts['standard_pupils']}
pupils in Years 8 and 10 at {school_counts['standard_schools']} mainstream
schools
* Symbol #BeeWell survey - completed by {school_counts['symbol_pupils']} pupils
Years 7 to 11 at {school_counts['symbol_schools']} non-mainstream schools""")
blank_lines(2)
# Pages of the dashboard
st.subheader("What each page of the dashboard can tell you")
st.markdown("""
There are six pages to see on this dashboard, which you can navigate to using
the sidebar on the left. These are:
* **About** - Read information on the #BeeWell survey, Kailo, and this
dashboard
* **Standard survey** - Explore overall topic scores by area, and view
the responses to each question overall or by pupil characteristics.
* **Symbol survey** - Explore responses to the ten questions overall or
by pupil characteristics.
* **Download PDF reports** - Export reports as PDF files.""")
blank_lines(2)
# #BeeWell pupil video
st.subheader("Introduction to the survey")
st.markdown("""
If you're unfamiliar with the #BeeWell survey or would like a reminder, you can
check out the video below. This video (which was designed for pupils) explains
what pupils could expect from taking part in the survey. For more information,
see the 'About' page of the dashboard.""")
st.video("https://youtu.be/jmYH7F2Bd4Q")
page_footer("schools in Northern Devon")