Skip to content

Commit f31195b

Browse files
authored
Add merch page (#809)
1 parent d2d44a7 commit f31195b

21 files changed

+449
-10
lines changed

_collections/_merch/plushies.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: merch
3+
title: TeX Plushies
4+
slug: plushies
5+
purchase-url: https://www.guildofstudents.com/shop/product/10317460/
6+
options:
7+
- name: Plushie
8+
quantity: 1
9+
price: 13.99
10+
note: Limited to members only
11+
gallery:
12+
- url: /assets/images/tex-plushie/20250426_0008_lowres.jpg
13+
alt: TeX reading a book
14+
- url: /assets/images/tex-plushie/20250426_0055_lowres.jpg
15+
alt: TeX reading about themself
16+
- url: /assets/images/tex-plushie/20250426_0020_lowres.jpg
17+
alt: TeX staring wistfully into the distance
18+
- url: /assets/images/tex-plushie/20250426_0016_lowres.jpg
19+
alt: TeX next to another TeX
20+
- url: /assets/images/tex-plushie/20250426_0027_lowres.jpg
21+
alt: Two TeX's having fun the robots in the CS Atrium
22+
- url: /assets/images/tex-plushie/20250426_0042_lowres.jpg
23+
alt: TeX sitting on a bench outside the CS building
24+
- url: /assets/images/tex-plushie/20250426_0041_lowres.jpg
25+
alt: TeX with Old Joe in the background
26+
- url: /assets/images/tex-plushie/20250426_0044_lowres.jpg
27+
alt: TeX looking down to the lower ground in CS
28+
- url: /assets/images/tex-plushie/20250426_0025_lowres.jpg
29+
alt: Two TeX plushies on the CS Atrium balcony
30+
thumbnail: /assets/images/tex-plushie/20250426_0042_lowres.jpg
31+
---
32+
33+
Adopt a very special hand-made crochet [TeX](/tex) plushie!
34+
35+
![Two TeX plushies together](/assets/images/tex-plushie/20250426_0004_lowres.jpg)
36+
37+
These plushies have been hand crocheted by our very own Fearne. We hope you enjoy them!
38+
39+
Approximate size dimensions: H: 15cm, W: 7.5cm, D: 12.5cm

_config.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ social:
1212
- https://twitter.com/CSSBham
1313
- https://github.com/CSSUoB
1414
menu:
15+
- name: News
16+
link: /newsletter
17+
- name: Events
18+
link: /events
19+
children:
20+
- name: Calendar
21+
link: /calendar
1522
- name: Ball
1623
link: /ball
1724
children:
@@ -27,21 +34,15 @@ menu:
2734
link: /ball/2021
2835
- name: 2020
2936
link: /ball/2020
30-
- name: Events
31-
link: /events
32-
- name: Newsletter
33-
link: /newsletter
37+
- name: Merch
38+
link: /merch
3439
- name: Committee
3540
link: /committee
36-
- name: Calendar
37-
link: /calendar
3841
- name: Sponsor
3942
link: /sponsor
4043
- name: About
4144
link: /about
4245
children:
43-
- name: About Us
44-
link: /about
4546
- name: Membership
4647
link: /membership
4748
- name: Links
@@ -54,6 +55,9 @@ collections:
5455
news:
5556
output: true
5657
permalink: /newsletter/:title
58+
merch:
59+
output: true
60+
permalink: /merch/:slug
5761
clubs:
5862
events:
5963
sort_by: order

_data/links.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
- type: divider
2+
text: TeX Plushies
3+
4+
- text: Get a TeX plushie!
5+
url: /merch/plushies
6+
image: /assets/images/tex-plushie/20250426_0042_lowres_square.jpg
7+
18
- type: divider
29
text: Ball
310

_includes/header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
{% if item.children %}
3232
<a onclick="toggleShow({{ forloop.index }})">{{ item.name }}</a>
3333
<div class="dropdown" style="display: none" id="hbdd_{{ forloop.index }}">
34+
<a href="{{ item.link | relative_url }}">- {{ item.name }}</a><br/>
3435
{% for sub in item.children %}
3536
<a href="{{ sub.link | relative_url }}">- {{ sub.name }}</a><br/>
3637
{% endfor %}

_layouts/merch.html

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>UoB Computer Science Society - {{ page.title }}</title>
5+
<link rel="shortcut icon" type="image/png" href="/favicon.ico"/>
6+
<meta name=viewport content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="{{ '/css/normalize.css' | relative_url }}">
8+
<link rel="stylesheet" href="{{ '/css/main.css' | relative_url }}">
9+
<link rel="stylesheet" href="{{ '/css/merch.css' | relative_url }}">
10+
<link rel="stylesheet" href="{{ '/css/fadein.css' | relative_url }}">
11+
12+
<script src="{{ '/js/hamburger.js' | relative_url }}" type="module"></script>
13+
14+
{% seo %}
15+
</head>
16+
<body>
17+
{% include header.html %}
18+
<main>
19+
<div class="merch-container fadein-container">
20+
<a class="merch-back fadein" href="/merch"><i class="fas fa-arrow-left-long"></i> See other merch</a>
21+
<div class="merch-description fadein text-container">
22+
<h1>{{ page.title }}</h1>
23+
{{ content }}
24+
</div>
25+
{% if page.gallery %}
26+
<div class="gallery fadein">
27+
<h2>Gallery</h2>
28+
{% for photo in page.gallery %}
29+
<img src="{{ photo.url }}" alt="{{ photo.alt }}" />
30+
{% endfor %}
31+
</div>
32+
{% endif %}
33+
<div class="purchase fadein">
34+
<h2>Purchase options</h2>
35+
{% for option in page.options %}
36+
<div class="purchase-option">
37+
{% if option.quantity %}
38+
<div class="option-label with-quantity">
39+
<span class="quantity">{{option.quantity}}x</span>
40+
{% else %}
41+
<div class="option-label">
42+
{% endif %}
43+
<span class="option">{{ option.name }}</span>
44+
{% if option.note %}
45+
<span class="note">{{ option.note }}</span>
46+
{% endif %}
47+
</div>
48+
<span class="price">£{{ option.price }}</span>
49+
</div>
50+
{% endfor %}
51+
{% if page.purchase-url %}
52+
<a href="{{ page.purchase-url }}" target="_blank" class="button guild-button">Buy on Guild website <i class="fas fa-arrow-right"></i></a>
53+
{% else %}
54+
<a href="#" class="button unavailable-button"><i class="fas fa-ban"></i>Currently unavailable</a>
55+
{% endif %}
56+
</div>
57+
</div>
58+
</main>
59+
60+
{% include footer.html %}
61+
</body>
62+
</html>

_redirects

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
/quack /ducks
6666
/quak /ducks
6767

68+
# Plushies
69+
/plushies /merch/plushies
70+
6871
# Voting
6972
/vote https://vote.cssbham.com
7073
/egm https://vote.cssbham.com
981 KB
Loading
1010 KB
Loading
649 KB
Loading
578 KB
Loading

0 commit comments

Comments
 (0)