Skip to content

Commit 545dfed

Browse files
committed
Changed the freshers calendar graphic to open as a pdf in a new window. The text and file for the banner/section is configurable on the CMS too
1 parent 36309e3 commit 545dfed

6 files changed

Lines changed: 176 additions & 23 deletions

File tree

‎_data/freshers.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ countdown:
77

88
events:
99
heading: Events
10-
introduction: Pick something that sounds fun. Events are open to everyone, not just freshers! Coming along on your own is completely normal.
11-
calendar_heading: Full Freshers calendar
12-
calendar_image: /assets/images/freshers-2026/cs-societies-freshers-events-2025.png
13-
calendar_image_alt: CS Societies Freshers events calendar for 22 September to 3 October 2025, including CSS, GDS, AFNOM, VGS, oSTEM and other societies.
10+
introduction: Events are open to everyone, not just freshers! Coming along on your own is completely normal.
11+
calendar_image: /assets/images/freshers-2026/freshers-calendar.svg
12+
calendar_image_alt: CS Societies Freshers events calendar for 21 September to 2 October 2026, including CSS, GDS, AFNOM, VGS, oSTEM and other societies.
13+
calendar_guide_file: /assets/images/freshers-2026/freshers-calendar.pdf
14+
calendar_guide_heading: View our handy Freshers events guide
15+
calendar_guide_description: Open our guide for dates, times and locations of events from CSS and a bunch of other societies you might be interested in.
1416

1517
welcome:
1618
heading: "👋 WELCOME TO FRESHERS 2026!"
@@ -60,4 +62,4 @@ faq:
6062
- question: Do I need programming experience?
6163
answer: Not at all! CSS is a social community first and foremost, bringing Computer Science students together to meet people, make friends and enjoy events throughout the year.
6264
- question: Is it okay to come to an event alone?
63-
answer: Absolutely. Lots of people do, especially during Freshers. Our committee will be there to welcome you and help you meet people.
65+
answer: Absolutely. Lots of people do, especially during Freshers. Our committee will be there to welcome you and help you meet people.

‎admin/config.yml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ collections:
4747
- label: "Introduction"
4848
name: "introduction"
4949
widget: "text"
50-
- label: "Calendar Heading"
51-
name: "calendar_heading"
52-
widget: "string"
5350
- label: "Calendar Image"
5451
name: "calendar_image"
5552
widget: "image"
@@ -58,6 +55,15 @@ collections:
5855
name: "calendar_image_alt"
5956
widget: "string"
6057
hint: "Describe the calendar for people using screen readers."
58+
- label: "Calendar Guide PDF"
59+
name: "calendar_guide_file"
60+
widget: "file"
61+
- label: "Calendar Guide Heading"
62+
name: "calendar_guide_heading"
63+
widget: "string"
64+
- label: "Calendar Guide Description"
65+
name: "calendar_guide_description"
66+
widget: "text"
6167
- label: "Welcome Section"
6268
name: "welcome"
6369
widget: "object"
4 MB
Binary file not shown.

‎assets/images/freshers-2026/freshers-calendar.svg‎

Lines changed: 31 additions & 0 deletions
Loading

‎css/freshers.scss‎

Lines changed: 109 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ main {
282282

283283
.freshers-events {
284284
padding-top: clamp(38px, 5vw, 64px);
285+
padding-bottom: clamp(32px, 4vw, 56px);
285286
background: radial-gradient(
286287
circle at 94% 15%,
287288
rgba(255, 124, 134, 0.14),
@@ -497,21 +498,96 @@ main {
497498
}
498499

499500
.freshers-calendar {
500-
margin-top: clamp(54px, 7vw, 90px);
501-
padding-top: clamp(38px, 5vw, 64px);
502-
border-top: 1px solid rgba(255, 255, 255, 0.16);
503-
504-
h3 {
505-
margin: 0 0 24px;
506-
font-size: clamp(28px, 3.2vw, 44px);
507-
letter-spacing: -0.035em;
508-
}
501+
display: grid;
502+
grid-template-columns: clamp(110px, 12vw, 160px) minmax(0, 1fr) auto;
503+
align-items: center;
504+
gap: clamp(16px, 2.5vw, 32px);
505+
max-width: 1120px;
506+
margin: clamp(32px, 4vw, 56px) auto 0;
507+
padding: clamp(14px, 2vw, 22px);
508+
border: 1px solid rgba(255, 255, 255, 0.16);
509+
border-radius: 22px;
510+
background: rgba(9, 11, 24, 0.3);
509511

510-
img {
512+
.freshers-calendar-preview {
511513
display: block;
512514
width: 100%;
513515
max-width: none;
514516
height: auto;
517+
margin: 0;
518+
border-radius: 10px;
519+
}
520+
}
521+
522+
.freshers-calendar-copy {
523+
min-width: 0;
524+
525+
h3 {
526+
margin: 0 0 8px;
527+
color: $white;
528+
font-size: clamp(20px, 2.2vw, 30px);
529+
letter-spacing: -0.025em;
530+
}
531+
532+
p {
533+
max-width: 650px;
534+
margin: 0;
535+
color: rgba(255, 255, 255, 0.7);
536+
font-size: clamp(14px, 1.3vw, 16px);
537+
line-height: 1.55;
538+
}
539+
}
540+
541+
.freshers-calendar-open {
542+
display: inline-flex;
543+
align-items: center;
544+
justify-content: space-between;
545+
gap: 18px;
546+
min-height: 54px;
547+
padding: 0 10px 0 20px;
548+
border-radius: 999px;
549+
color: $ink;
550+
background: $yellow;
551+
font-family: "JetBrains Mono", "Inconsolata", monospace;
552+
font-size: 15px;
553+
font-weight: 700;
554+
text-decoration: none;
555+
556+
span {
557+
display: grid;
558+
place-items: center;
559+
width: 38px;
560+
height: 38px;
561+
border-radius: 50%;
562+
color: $yellow;
563+
background: $ink;
564+
}
565+
566+
svg {
567+
width: 20px;
568+
height: 20px;
569+
fill: none;
570+
stroke: currentColor;
571+
stroke-width: 2;
572+
stroke-linecap: round;
573+
stroke-linejoin: round;
574+
}
575+
576+
&:focus-visible {
577+
outline: 3px solid $white;
578+
outline-offset: 3px;
579+
}
580+
581+
@media (hover: hover) {
582+
&:hover {
583+
color: $yellow;
584+
background: $ink;
585+
586+
span {
587+
color: $ink;
588+
background: $yellow;
589+
}
590+
}
515591
}
516592
}
517593

@@ -1272,6 +1348,29 @@ body > footer {
12721348
padding: 22px 18px 60px;
12731349
}
12741350

1351+
.freshers-calendar {
1352+
grid-template-columns: 82px minmax(0, 1fr);
1353+
gap: 14px;
1354+
padding: 14px;
1355+
border-radius: 18px;
1356+
}
1357+
1358+
.freshers-calendar-copy {
1359+
h3 {
1360+
font-size: 19px;
1361+
}
1362+
1363+
p {
1364+
font-size: 13px;
1365+
}
1366+
}
1367+
1368+
.freshers-calendar-open {
1369+
grid-column: 1 / -1;
1370+
width: 100%;
1371+
box-sizing: border-box;
1372+
}
1373+
12751374
.freshers-lockup {
12761375
--freshers-logo-inset: 8px;
12771376
height: clamp(175px, 42vw, 220px);

‎freshers.html‎

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,28 @@ <h3>Freshers events are coming soon.</h3>
206206
</div>
207207
{% endif %}
208208

209-
<div class="freshers-calendar">
210-
<h3>{{ freshers.events.calendar_heading | escape }}</h3>
209+
<section class="freshers-calendar" aria-labelledby="calendar-guide-heading">
211210
<img
211+
class="freshers-calendar-preview"
212212
src="{{ freshers.events.calendar_image | relative_url }}"
213213
alt="{{ freshers.events.calendar_image_alt | escape }}"
214214
>
215-
</div>
215+
<div class="freshers-calendar-copy">
216+
<h3 id="calendar-guide-heading">{{ freshers.events.calendar_guide_heading | escape }}</h3>
217+
<p>{{ freshers.events.calendar_guide_description | escape }}</p>
218+
</div>
219+
<a
220+
class="freshers-calendar-open"
221+
href="{{ freshers.events.calendar_guide_file | relative_url }}"
222+
target="_blank"
223+
rel="noopener"
224+
>
225+
Open events guide
226+
<span aria-hidden="true">
227+
<svg viewBox="0 0 24 24"><path d="M7 17 17 7M9 7h8v8"/></svg>
228+
</span>
229+
</a>
230+
</section>
216231
</section>
217232

218233
<section class="freshers-section freshers-steps" aria-labelledby="start-heading">
@@ -305,8 +320,8 @@ <h2 id="faq-heading">{{ freshers.faq.heading | escape }}</h2>
305320
src="{{ '/assets/tex/tex_megaphone.svg' | relative_url }}"
306321
alt=""
307322
>
308-
<h2>Do not wait for Freshers Week to say hello.</h2>
309-
<p>Join the Discord now and arrive in September already knowing a few friendly faces.</p>
323+
<h2>Join our community today.</h2>
324+
<p>Introduce yourself on our discord now and arrive in September already knowing a few friendly faces. Join our WhatsApp to get the latest on all our socials.</p>
310325
</div>
311326
<div class="freshers-final-actions">
312327
<a class="freshers-final-button freshers-final-button-discord" href="/discord">

0 commit comments

Comments
 (0)