Skip to content

Commit c6b5208

Browse files
committed
more breakdown into components for easier maintainability
1 parent 84f5604 commit c6b5208

19 files changed

+475
-597
lines changed

mps_site/content.py

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,7 @@
2525
}
2626
]
2727

28-
dcufm_stats_data = [
29-
{
30-
"id": "store",
31-
"icon_class": "fa-solid fa-hand-holding-heart",
32-
"number": "€1,570",
33-
"description": "Raised for CRY Ireland during the 12 Hour Broadcast in 2023"
34-
},
35-
{
36-
"id": "twitch",
37-
"icon_class": "fa-brands fa-twitch",
38-
"number": "1125",
39-
"description": "Followers on the DCUfm <a href=\"https://twitch.tv/dcufm\" target=\"_blank\">Twitch Channel</a>"
40-
},
41-
{
42-
"id": "shows",
43-
"icon_class": "fa-solid fa-hand-holding-heart",
44-
"number": "€2,658",
45-
"description": "Raised for ALONE during the 12 Hour Broadcast in 2022"
46-
}
47-
]
28+
4829

4930
index_subgroups = {
5031
"title": "MPS Sub-Groups",
@@ -86,39 +67,7 @@
8667
]
8768
}
8869

89-
dcufm_subgroups = {
90-
"title": "Our Flagships",
91-
"subtitle": "Get to know our flagship FM shows!",
92-
"groups": [
93-
{
94-
"name": "Action Replay",
95-
"image": "assets/fm/flagships/AR.png",
96-
"alt_text": "DCUfm Flagship",
97-
"description": "Sports Flagship<br>Thursdays @ 1PM",
98-
"social_links": [
99-
{"url": "https://www.instagram.com/actionreplayfm/", "icon_class": "fa-brands fa-instagram"}
100-
]
101-
},
102-
{
103-
"name": "Limelight",
104-
"image": "assets/fm/flagships/LL.png",
105-
"alt_text": "DCUfm Flagship",
106-
"description": "Pop-culture Flagship<br>Mondays @ 11AM",
107-
"social_links": [
108-
{"url": "https://www.instagram.com/limelightdcu/", "icon_class": "fa-brands fa-instagram"}
109-
]
110-
},
111-
{
112-
"name": "Newswire",
113-
"image": "assets/fm/flagships/NW.png",
114-
"alt_text": "DCUfm Flagship",
115-
"description": "News Flagship<br>Fridays @ 2PM",
116-
"social_links": [
117-
{"url": "https://www.instagram.com/newswiredcu/", "icon_class": "fa-brands fa-instagram"}
118-
]
119-
}
120-
]
121-
}
70+
12271

12372

12473
merch = {

mps_site/data/dcufm.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
dcufm_stats_data = [
2+
{
3+
"id": "store",
4+
"icon_class": "fa-solid fa-hand-holding-heart",
5+
"number": "1570",
6+
"description": "Raised for CRY Ireland during the 12 Hour Broadcast in 2023"
7+
},
8+
{
9+
"id": "twitch",
10+
"icon_class": "fa-brands fa-twitch",
11+
"number": "1125",
12+
"description": "Followers on the DCUfm <a href=\"https://twitch.tv/dcufm\" target=\"_blank\">Twitch Channel</a>"
13+
},
14+
{
15+
"id": "shows",
16+
"icon_class": "fa-solid fa-hand-holding-heart",
17+
"number": "2658",
18+
"description": "Raised for ALONE during the 12 Hour Broadcast in 2022"
19+
}
20+
]
21+
22+
dcufm_subgroups = {
23+
"title": "Our Flagships",
24+
"subtitle": "Get to know our flagship FM shows!",
25+
"groups": [
26+
{
27+
"name": "Action Replay",
28+
"image": "assets/fm/flagships/AR.png",
29+
"alt_text": "DCUfm Flagship",
30+
"description": "Sports Flagship<br>Thursdays @ 1PM",
31+
"social_links": [
32+
{"url": "https://www.instagram.com/actionreplayfm/", "icon_class": "fa-brands fa-instagram"}
33+
]
34+
},
35+
{
36+
"name": "Limelight",
37+
"image": "assets/fm/flagships/LL.png",
38+
"alt_text": "DCUfm Flagship",
39+
"description": "Pop-culture Flagship<br>Mondays @ 11AM",
40+
"social_links": [
41+
{"url": "https://www.instagram.com/limelightdcu/", "icon_class": "fa-brands fa-instagram"}
42+
]
43+
},
44+
{
45+
"name": "Newswire",
46+
"image": "assets/fm/flagships/NW.png",
47+
"alt_text": "DCUfm Flagship",
48+
"description": "News Flagship<br>Fridays @ 2PM",
49+
"social_links": [
50+
{"url": "https://www.instagram.com/newswiredcu/", "icon_class": "fa-brands fa-instagram"}
51+
]
52+
}
53+
]
54+
}

mps_site/data/dcutv.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
dcutv_carousel = [
2+
{'url': 'assets/img/slideshow/tv/2.JPG', 'alt': 'DCUtv Slideshow Image 1'},
3+
{'url': 'assets/img/slideshow/tv/1.JPG', 'alt': 'DCUtv Slideshow Image 2'},
4+
{'url': 'assets/img/slideshow/tv/3.jpg', 'alt': 'DCUtv Slideshow Image 3'},
5+
{'url': 'assets/img/slideshow/tv/4.JPG', 'alt': 'DCUtv Slideshow Image 4'},
6+
{'url': 'assets/img/slideshow/tv/5.jpg', 'alt': 'DCUtv Slideshow Image 5'},
7+
]
8+
9+
dcutv_stats_data = [
10+
{
11+
"id": "donation",
12+
"icon_class": "fa-solid fa-hand-holding-heart",
13+
"number": "12820",
14+
"description": "Raised for Jack & Jill Children’s Foundation during the 24 Hour Broadcast"
15+
},
16+
{
17+
"id": "youtube",
18+
"icon_class": "fa-brands fa-youtube",
19+
"number": "2110",
20+
"description": "YouTube Subscribers on the DCU MPS <a href=\"https://youtube.com/@dcumps\" target=\"_blank\">YouTube Channel!</a>"
21+
},
22+
{
23+
"id": "views",
24+
"icon_class": "fa-regular fa-eye",
25+
"number": "1600000",
26+
"description": "Views on the DCU MPS <a href=\"https://youtube.com/@dcumps\" target=\"_blank\">YouTube Channel!</a>"
27+
}
28+
]

mps_site/data/homepage.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
homepage_carousel = [
2+
{'url': 'assets/img/slideshow/ClubsAndSocs-36.jpg', 'alt': 'DCU MPS Slideshow Image 1'},
3+
{'url': 'assets/img/slideshow/DSC_0004.JPG', 'alt': 'DCU MPS Slideshow Image 2'},
4+
{'url': 'assets/img/slideshow/IMG_8407.jpg', 'alt': 'DCU MPS Slideshow Image 3'},
5+
{'url': 'assets/img/slideshow/DSC02140.JPG', 'alt': 'DCU MPS Slideshow Image 4'},
6+
{'url': 'assets/img/slideshow/DSC00472.JPG', 'alt': 'DCU MPS Slideshow Image 5'},
7+
{'url': 'assets/img/slideshow/DSC_0066.JPG', 'alt': 'DCU MPS Slideshow Image 6'},
8+
]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% load static %}
2+
3+
<div id="carousel-title-page" class="carousel slide" data-ride="carousel" style="margin-left: 10%; margin-right: 10%; margin-top: 2%;">
4+
<div class="carousel-inner" style="border-radius: 25px;">
5+
{% for image in images %}
6+
<div class="carousel-item {% if forloop.first %}active{% endif %}">
7+
<img src="{% static image.url %}" class="d-block w-100" alt="{{ image.alt }}" style="aspect-ratio: 16 / 9;">
8+
</div>
9+
{% endfor %}
10+
</div>
11+
<div style="text-align:center; margin-bottom: 50px; z-index: 300;">
12+
<ol class="carousel-indicators">
13+
{% for image in images %}
14+
<li data-target="#carousel-title-page" data-slide-to="{{ forloop.counter0 }}" {% if forloop.first %}class="active"{% endif %}></li>
15+
{% endfor %}
16+
</ol>
17+
</div>
18+
</div>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<div id="dcutv-recent">
2+
<div class="container">
3+
<h1>Most Recent DCUtv Productions</h1>
4+
<h5><i>Check out the recent content DCUtv are creating!</h5></i>
5+
<div class="row justify-content-center">
6+
<div class="col-md-12 custom-box">
7+
<div class="center-contents">
8+
<div class="container mt-4">
9+
<div class="row">
10+
{% for id in most_recent_videos %}
11+
<div class="col-md-4">
12+
<div style="width: 100%; min-width: 200px; max-width: 800px; margin: 0 auto; padding-bottom: 25px;">
13+
<div style="position: relative; width: 100%; overflow: hidden; padding-top: 56.25%;">
14+
<p><iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none; border-radius: 25px;" src="https://www.youtube.com/embed/{{ id }}" width="560" height="315" allowfullscreen="allowfullscreen" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe></p>
15+
</div>
16+
</div>
17+
</div>
18+
{% endfor %}
19+
</div>
20+
</div>
21+
<a class="btn btn-primary custom-button" href="/youtube" target="_blank">YouTube Channel</a>
22+
</div>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
</div>
28+
</div>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<div class="container">
2+
<h1>About Us</h1>
3+
<div class="row justify-content-center">
4+
5+
<div class="col-md-12 custom-box shadow-lg p-3 mb-5 bg-body">
6+
<div class="row">
7+
<div class="col-md-6">
8+
9+
<p>DCU’s Media Production Society was founded in 1985, with the aim of operating as a creative and social outlet to a broad variety of students within the university. Composed of three strands, MPS offers the opportunity for its members to gain practical experience in their chosen field of media and collaborate with other, like-minded creatives. Over our 39 years of experience, MPS has thrived across the board, winning a variety of awards at both a University and a National level.<br><br>
10+
DCUtv offers members the opportunity to fully immerse themselves in the world of visual media. DCUtv not only encourages all MPS members to create video content, but also to gain hands-on experience in the more technical aspects of video production. Through annual events run by our TV team, such as the DCUtv 24 hour broadcast, MPS offers the chance to our members to come together and create, catering to all experience levels and interests, both in front of and behind the camera. In 2023, our DCUtv Team won “Best Promotional Video” at the BICS, which are the National Society Awards.
11+
</p>
12+
</div>
13+
<div class="col-md-6">
14+
<img src="static/assets/img/other/MPS_Logo_WHT.png" alt="MPS Logo" class="img-container" width="450px" style="border-radius: 25px; padding-top: 5px;">
15+
</div>
16+
<div class="col-md-12"> <!-- style="background-color: #202E4E; padding: 10px; border-radius: 25px;"-->
17+
<p>DCUfm is Ireland’s Best Student Radio Station. DCUfm is run by our members and their wonderful ideas - you give us your concept and we show you how to take it on air. Additionally, our fantastic podcasting equipment allows members to continue their audio endeavours outside of the studio. DCUfm instils a profound love for audio creation in all of its members, with many of the station’s alumni currently working in stations such as Spin 103.8, Newstalk and FM104.<br><br>
18+
The College View is DCU’s student newspaper. TCV offers members a way to enhance their writing skills and explore different types of journalism - from hard news to wacky satire, from the latest sports scores to reviewing what’s in the cinema. Stories are published online on www.thecollegeview.ie. There’s opportunities to attend and cover events across campus and outside DCU - with the Editorial Team always looking for writers to give their own edge on what’s going on in the University.<br><br>
19+
After 39 years, thousands of members, (and not to mention a global pandemic), MPS continues to grow in numbers and talent year on year. This year, our passionate and dedicated Committee aims to see MPS succeed and function at the highest possible level, with weekly events, workshops and activities for all of our members. MPS seeks to present exciting opportunities to our members, both creatively and socially, and foster the immense potential within DCU students. We hope to continue to do so as we move forward in years to come.
20+
</p>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
</div>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<h1>Awards History</h1>
2+
<div class="container">
3+
<div class="row justify-content-center">
4+
<div class="col-md-8 custom-box shadow-lg bg-body">
5+
<div class="awards">
6+
<div class="center-contents shadow-lg bg-body"
7+
style="background-color: #202E4E; border-radius: 15px; padding-top: 10px; padding-bottom: 10px;">
8+
<ul
9+
style="padding-left: 10px; padding-right: 10px; list-style: none; text-align: left;">
10+
{% for award in awards %}
11+
<li>{{ award.award_description }}</li>
12+
{% endfor %}
13+
<ul></ul>
14+
</div>
15+
</div>
16+
</div>
17+
</div>
18+
</div>
19+
</div>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="container">
2+
<h1>Follow Our Socials!</h1>
3+
<h5><i>Keep updated with all things MPS!</h5></i>
4+
<div class="row justify-content-center">
5+
<div class="col-md-7 custom-box" style="text-align: center;">
6+
<div class="social-icons">
7+
<ul>
8+
<li><a href="https://chat.whatsapp.com/EBupVbTpWX01uJvBp5r24D" target="_blank" aria-label="DCU MPS WhatsApp Group"><i class="fa-brands fa-whatsapp hvr-bounce-in"></i></a></li>
9+
<li><a href="http://youtube.com/dcumps" target="_blank" aria-label="DCU MPS YouTube Channel"><i class="fa-brands fa-youtube hvr-bounce-in"></i></a></li>
10+
<li><a href="https://www.tiktok.com/@dcumps" target="_blank" aria-label="DCU MPS TikTok"><i class="fa-brands fa-tiktok hvr-bounce-in"></i></a></li>
11+
<li><a href="http://instagram.com/dcumps" target="_blank" aria-label="DCU MPS Instagram"><i class="fa-brands fa-instagram hvr-bounce-in"></i></a></li>
12+
<li><a href="http://facebook.com/dcumps" target="_blank" aria-label="DCU MPS Facebook"><i class="fa-brands fa-facebook hvr-bounce-in"></i></a></li>
13+
<li><a href="http://twitter.com/dcumps" target="_blank" aria-label="DCU MPS Twitter"><i class="fa-brands fa-x-twitter hvr-bounce-in"></i></a></li>
14+
<li><a href="https://www.linkedin.com/company/dcu-media-production-society" target="_blank" aria-label="DCU MPS LinkedIn"><i class="fa-brands fa-linkedin hvr-bounce-in"></i></a></li>
15+
<li><a href="mailto:committee@dcumps.ie" target="_blank" aria-label="DCU MPS Email"><i class="fa fa-envelope hvr-bounce-in" aria-hidden="true"></i></a></li>
16+
</ul>
17+
</div>
18+
<div class="social-description">
19+
<li><u><a href="https://chat.whatsapp.com/EBupVbTpWX01uJvBp5r24D" target="_blank">MPS "Think Tank" WhatsApp Group</a></u></li>
20+
<li><u><a href="https://dcuclubsandsocs.ie/society/media-production" target="_blank">Become a member of MPS today</a></u></li>
21+
<li><u><a href="https://thecollegeview.ie" target="_blank">The College View - Our Online Newspaper</a></u></li>
22+
<li><u><a href="https://lounge.live/lounges/kr53i9b6" target="_blank">Lounge - A hub for all of our events</a></u></li>
23+
<li><u><a href="/links">View All DCU MPS Links</a></u></li>
24+
<li><u><a href="/linksdcutv">View All DCUtv Links</a></u></li>
25+
<li><u><a href="/linksdcufm">View All DCUfm Links</a></u></li>
26+
<li><u><a href="/linkstcv">View All The College View Links</a></u></li>
27+
</div>
28+
</div>
29+
</div>
30+
</div>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<div class="container">
2+
<h1>Our Sponsors</h1>
3+
<h5><i>Check out the amazing companies that have helped our journey! <br>If you are interested in sponsoring us, please contact <a href="mailto:sponsorship@dcumps.ie">sponsorship@dcumps.ie</a></h5></i>
4+
<div class="row justify-content-center" style="padding-left: 15px; padding-right: 15px;">
5+
<div class="col-md-12 custom-box shadow-lg bg-body">
6+
<div class="logos">
7+
<div class="logos-slide">
8+
<img src="static/images/sponsors/image1.png" alt="MPS Sponsor 1">
9+
<img src="static/images/sponsors/image2.png" alt="MPS Sponsor 2">
10+
<img src="static/images/sponsors/image3.png" alt="MPS Sponsor 3">
11+
<img src="static/images/sponsors/image4.png" alt="MPS Sponsor 4">
12+
<img src="static/images/sponsors/image5.png" alt="MPS Sponsor 5">
13+
<img src="static/images/sponsors/image6.png" alt="MPS Sponsor 6">
14+
<img src="static/images/sponsors/image7.png" alt="MPS Sponsor 7">
15+
<img src="static/images/sponsors/image8.png" alt="MPS Sponsor 8">
16+
<img src="static/images/sponsors/image9.png" alt="MPS Sponsor 9">
17+
<img src="static/images/sponsors/image10.png" alt="MPS Sponsor 10">
18+
<img src="static/images/sponsors/image11.png" alt="MPS Sponsor 11">
19+
<img src="static/images/sponsors/image12.png" alt="MPS Sponsor 12">
20+
<img src="static/images/sponsors/image13.png" alt="MPS Sponsor 13">
21+
<img src="static/images/sponsors/image14.png" alt="MPS Sponsor 14">
22+
<img src="static/images/sponsors/image15.jpg" alt="MPS Sponsor 15">
23+
<img src="static/images/sponsors/image16.png" alt="MPS Sponsor 16">
24+
<img src="static/images/sponsors/image17.png" alt="MPS Sponsor 17">
25+
<img src="static/images/sponsors/image18.png" alt="MPS Sponsor 18">
26+
</div>
27+
<script>
28+
var copy = document.querySelector(".logos-slide").cloneNode(true);
29+
document.querySelector(".logos").appendChild(copy);
30+
</script>
31+
</div>
32+
</div>
33+
</div>
34+
</div>
35+
</div>

0 commit comments

Comments
 (0)