From 9539d8fc7371e7ea552eeaee3f62bec624d5835f Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Thu, 16 Jan 2025 00:35:46 +1100 Subject: [PATCH] added author tags --- main.js | 1 + materials.json | 7 ++++++- style.css | 8 ++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 81929ff..2e7d3f1 100644 --- a/main.js +++ b/main.js @@ -36,6 +36,7 @@ document.addEventListener('DOMContentLoaded', async () => { ${material.name}

${material.name}

+

${material.author}

${material.description}

${material.categories.map(cat => `${cat}`).join(' ')} diff --git a/materials.json b/materials.json index dbba613..cce0f13 100644 --- a/materials.json +++ b/materials.json @@ -1,8 +1,13 @@ { "materials": [ { + "author": "Litruv", "name": "Vinette", - "categories": ["photo", "fx", "vintage"], + "categories": [ + "photo", + "fx", + "vintage" + ], "preview": "./thumbnails/vinette.png", "snippet": "snippets/vinette.txt", "description": "Adds a subtle darkened border around the edges of the image for a vintage effect." diff --git a/style.css b/style.css index 035c290..b9019d1 100644 --- a/style.css +++ b/style.css @@ -174,6 +174,14 @@ h1 { font-size: 14px; } +.material-info .author { + color: var(--text-primary); + font-size: 12px; + margin-top: 5px; + margin-bottom: 10px; + font-weight: bold; +} + .material-tags { margin-top: 10px; display: flex;