Skip to content

Commit 1d2293b

Browse files
committed
fix text padding on mobile, made what our members say visible
1 parent 5f9bca1 commit 1d2293b

File tree

5 files changed

+23
-29
lines changed

5 files changed

+23
-29
lines changed

mps_site/data/homepage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"subtitle": "Our Society has won many awards over the years!",
123123
"awards": [
124124
{
125-
"award": "Best Society in a Cultural/Academic/Social Field",
125+
"award": "Best Society in a Cultural / Academic / Social Field",
126126
"sponsor": "DCU Society Awards",
127127
"year": "2024",
128128
"award_icon": "fa-solid fa-trophy",

mps_site/static/css/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ h4 {
9090

9191
h3, h5 {
9292
text-align: center;
93+
padding-left: 10px;
94+
padding-right: 10px;
9395
color: var(--text-color);
9496
}
9597

mps_site/templates/components/home/about_us.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ <h1>About Us</h1>
2121
</div>
2222
</div>
2323
<div class="center-contents">
24-
<a class="btn btn-primary mt-4" style="background-color: #202E4E; border-radius: 25px; border-width: 4px; border-color: white;" href="https://dcuclubsandsocs.ie/society/media-production" target="_blank">What are you waiting for? Join MPS Now!</a>
24+
<a class="btn btn-primary mt-4" style="background-color: #202E4E; border-radius: 25px; border-width: 4px; border-color: white; margin-left: 40px; margin-right: 40px;" href="https://dcuclubsandsocs.ie/society/media-production" target="_blank">What are you waiting for? Join MPS Now!</a>
2525
</div>
2626
<div class="center-contents mt-4">
27-
<a class="btn btn-primary" style="background-color: #202E4E; border-radius: 25px; border-width: 4px; border-color: white;" href="/committee/history">View Committee History</a>
27+
<a class="btn btn-primary" style="background-color: #202E4E; border-radius: 25px; border-width: 4px; border-color: white;" href="/committee/history">View Committee History</a>
2828
</div>
2929
</div>
3030

mps_site/templates/components/home/what_our_members_say.html

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,97 +3,88 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Member Testimonials</title>
7-
<!-- Swiper.js CSS -->
86
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css">
9-
<!-- Custom Styles -->
107
<style>
11-
/* Swiper Container */
128
.swiper-container {
13-
width: 95%;
9+
width: 98%;
1410
height: 100%;
15-
margin: 20px auto;
11+
margin: 0px auto;
1612
position: relative;
17-
overflow: hidden; /* Ensure that the overflow is hidden */
13+
overflow: hidden;
1814
}
1915

20-
/* Testimonial Box */
2116
.testimonial-box {
2217
background-color: #202E4E;
2318
color: white;
2419
border-radius: 15px;
25-
padding: 20px;
20+
padding: 25px;
2621
text-align: center;
2722
}
2823

29-
/* Swiper Navigation Arrows */
3024
.swiper-button-next, .swiper-button-prev {
3125
color: white;
3226
}
3327

34-
/* Swiper Pagination Dots */
3528
.swiper-pagination {
3629
position: relative;
37-
margin-top: -15px;
30+
margin-top: -22px;
3831
width: 100%;
3932
text-align: center;
4033
}
4134

4235
.swiper-pagination-bullet {
43-
background: rgba(255, 255, 255, 0.8); /* Lighter color for better contrast */
44-
width: 12px; /* Slightly larger dots */
45-
height: 12px; /* Slightly larger dots */
36+
background: rgba(255, 255, 255, 0.8);
37+
width: 10px;
38+
height: 10px;
4639
border-radius: 50%;
47-
margin: 0 4px; /* Spacing between dots */
48-
opacity: 0.7; /* Slightly transparent */
40+
margin: 0 4px;
41+
opacity: 0.7;
4942
}
5043

5144
.swiper-pagination-bullet-active {
52-
background: white; /* White color for active dot */
53-
opacity: 1; /* Fully opaque */
45+
background: white;
46+
opacity: 1;
5447
}
5548
</style>
5649
</head>
5750
<body>
5851
<div class="container">
5952
<h1>What Our Members Say</h1>
6053
<h5><i>Read why they love MPS so much!</i></h5>
54+
<div class="row justify-content-center" style="padding: 20px;">
6155
<div class="col-md-12 custom-box shadow-lg bg-body">
6256
<div class="swiper-container">
6357
<div class="swiper-wrapper">
64-
<!-- Slide 1 -->
6558
<div class="swiper-slide">
6659
<div class="testimonial-box">
6760
<p>"MPS is love, MPS is life"</p>
6861
<h5>- Jake Farrell</h5>
69-
<small>2nd Year Computer Science</small>
62+
<small>3rd Year Computer Science</small>
7063
</div>
7164
</div>
7265
<div class="swiper-slide">
7366
<div class="testimonial-box">
7467
<p>"MPS is love, MPS is life"</p>
7568
<h5>- Jake Farrell</h5>
76-
<small>2nd Year Computer Science</small>
69+
<small>3rd Year Computer Science</small>
7770
</div>
7871
</div>
7972
<div class="swiper-slide">
8073
<div class="testimonial-box">
8174
<p>"MPS is love, MPS is life"</p>
8275
<h5>- Jake Farrell</h5>
83-
<small>2nd Year Computer Science</small>
76+
<small>3rd Year Computer Science</small>
8477
</div>
8578
</div>
8679
</div>
87-
<!-- Add Pagination -->
8880
<div class="swiper-pagination"></div>
89-
<!-- Add Navigation -->
9081
<div class="swiper-button-next"></div>
9182
<div class="swiper-button-prev"></div>
9283
</div>
9384
</div>
85+
</div>
9486
</div>
9587

96-
<!-- Swiper.js JS -->
9788
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
9889
<script>
9990
var swiper = new Swiper('.swiper-container', {

mps_site/templates/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ <h5><i>We know you'll love it!</h5></i>
1818
{% include "components/subgroup.html" with subgroups_data=subgroups_data %}
1919
{% include 'components/stats.html' with title="Media Production Society In Numbers" subtitle="See how we've grown!" animate_seconds=5 stats=stats_data %}
2020
{% include "components/home/why_join.html" %}
21+
{% include 'components/home/what_our_members_say.html' %}
2122
{% include 'components/home/awards_history.html' with homepage_awards=homepage_awards %}
2223
{% include "components/home/sponsors.html" %}
2324
{% include 'components/testimonials.html' %}

0 commit comments

Comments
 (0)