Skip to content

Commit e6addbc

Browse files
committed
Add merch page
1 parent d2d44a7 commit e6addbc

File tree

17 files changed

+417
-91
lines changed

17 files changed

+417
-91
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+
url: https://www.guildofstudents.com/
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.jpg
13+
alt: TeX reading a book
14+
- url: /assets/images/tex-plushie/20250426_0055.jpg
15+
alt: TeX reading about themself
16+
- url: /assets/images/tex-plushie/20250426_0020.jpg
17+
alt: TeX staring wistfully into the distance
18+
- url: /assets/images/tex-plushie/20250426_0016.jpg
19+
alt: TeX next to another TeX
20+
- url: /assets/images/tex-plushie/20250426_0027.jpg
21+
alt: Two TeX's having fun the robots in the CS Atrium
22+
- url: /assets/images/tex-plushie/20250426_0042.jpg
23+
alt: TeX sitting on a bench outside the CS building
24+
- url: /assets/images/tex-plushie/20250426_0041.jpg
25+
alt: TeX with Old Joe in the background
26+
- url: /assets/images/tex-plushie/20250426_0044.jpg
27+
alt: TeX looking down to the lower ground in CS
28+
- url: /assets/images/tex-plushie/20250426_0025.jpg
29+
alt: Two TeX plushies on the CS Atrium balcony
30+
thumbnail: /assets/images/tex-plushie/20250426_0042.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.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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ collections:
5454
news:
5555
output: true
5656
permalink: /newsletter/:title
57+
merch:
58+
output: true
59+
permalink: /merch/:slug
5760
clubs:
5861
events:
5962
sort_by: order

_layouts/merch.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.url %}
52+
<a href="{{ page.url }}" class="button guild-button">Buy on Guild website <i class="fas fa-arrow-right"></i></a>
53+
{% endif %}
54+
</div>
55+
</div>
56+
</main>
57+
58+
{% include footer.html %}
59+
</body>
60+
</html>
28.6 MB
Loading
26.8 MB
Loading
18.4 MB
Loading
17.4 MB
Loading
24 MB
Loading
25.8 MB
Loading
25.3 MB
Loading

0 commit comments

Comments
 (0)