.tpf { --tpf: #d85316; font-family: Epilogue, sans-serif; font-size: 16px; letter-spacing: .6px; line-height: 1.8; color: var(--tpf); }
.tpf h2 { margin: 0 0 .4em; font-family: Syne, sans-serif; font-weight: 700; font-size: clamp(32px, 5vw, 54px); line-height: 1.15; color: var(--tpf); }
.tpf p { margin: 0 0 1em; color: var(--tpf); }
.tpf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 420px)); gap: 28px; align-items: start; margin-top: 28px; }
.tpf .tpf-card { display: block; color: var(--tpf); text-decoration: none; }
.tpf-card img { display: block; box-sizing: border-box; width: 100%; height: auto; padding: 6px; border-radius: 14px; background: #ec5027; }
.tpf-card strong { display: block; margin-top: 14px; font-family: Syne, sans-serif; font-size: 20px; line-height: 1.3; }
.tpf .tpf-card:hover strong { text-decoration: underline; }
.tpf-card span { display: block; margin-top: 6px; }
.tpf-card .tpf-date { margin-top: 2px; font-size: 15px; }
.tpf-card .tpf-full { opacity: .65; }
Pasta Masterclass
Join the chefs at The Pasta Factory for this colourful pasta-making masterclass and learn to make your own super delicious pasta dishes to enjoy.
If you love pasta and would just love to be able to make it yourself, this fun cooking class gives you the skills you need to create some lovely pasta in a range of awesome shapes and colours.
If you've never made pasta before, don't worry – this class is entirely beginner-friendly.
(function () {
var shop = 'https://ci3e8s-v0.myshopify.com';
var collection = 'masterclass';
var grid = document.getElementById('tpf-grid');
var query = 'query($h:String!){collection(handle:$h){products(first:12){nodes{title handle availableForSale featuredImage{url(transform:{maxWidth:900}) altText width height} priceRange{minVariantPrice{amount currencyCode} maxVariantPrice{amount}} variants(first:50){nodes{availableForSale selectedOptions{name value}}}}}}}';
function el(tag, text) { var n = document.createElement(tag); if (text) { n.textContent = text; } return n; }
function card(p) {
var a = el('a');
a.className = 'tpf-card';
a.href = shop + '/products/' + p.handle;
if (p.featuredImage) {
var img = el('img');
img.src = p.featuredImage.url;
img.alt = p.featuredImage.altText || p.title;
img.width = p.featuredImage.width;
img.height = p.featuredImage.height;
a.appendChild(img);
}
a.appendChild(el('strong', p.title));
var min = p.priceRange.minVariantPrice;
var price = new Intl.NumberFormat('en-GB', { style: 'currency', currency: min.currencyCode }).format(min.amount);
if (min.amount !== p.priceRange.maxVariantPrice.amount) { price = 'From ' + price; }
a.appendChild(el('span', p.availableForSale ? price : price + ' – Sold out'));
var dates = new Map();
p.variants.nodes.forEach(function (v) {
v.selectedOptions.forEach(function (o) {
if (o.name.toLowerCase() === 'date') { dates.set(o.value, dates.get(o.value) || v.availableForSale); }
});
});
dates.forEach(function (free, date) {
var d = el('span', free ? date : date + ' – Sold out');
d.className = free ? 'tpf-date' : 'tpf-date tpf-full';
a.appendChild(d);
});
return a;
}
fetch(shop + '/api/2026-10/graphql.json', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: query, variables: { h: collection } })
}).then(function (r) { return r.json(); }).then(function (j) {
var cards = j.data.collection.products.nodes.map(card);
if (cards.length) { grid.replaceChildren.apply(grid, cards); }
}).catch(function (e) { console.warn('Shopify:', e); });
})();