diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..25117cc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "github-enterprise.uri": "https://git.creations.works" +} diff --git a/public/css/index.css b/public/css/index.css index 7c8c2e7..da470b9 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -224,6 +224,38 @@ ul { color: #f0b232; } +.activity-buttons { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + margin-top: 0.75rem; +} + +.activity-button { + background-color: #5865f2; + color: white; + border: none; + border-radius: 3px; + padding: 0.5rem 1rem; + font-size: 0.9rem; + cursor: pointer; + text-decoration: none; + transition: background-color 0.2s ease; + display: inline-block; +} + +.activity-button:hover { + background-color: #4752c4; + text-decoration: none; +} + +.activity-button.disabled { + background-color: #4e5058; + cursor: default; + pointer-events: none; + opacity: 0.8; +} + @media (max-width: 600px) { html { font-size: clamp(14px, 2vw, 16px); @@ -338,6 +370,17 @@ ul { margin-top: 0.25rem; width: 100%; } + + .activity-buttons { + justify-content: center; + margin-top: 0.5rem; + width: 100%; + } + + .activity-button { + font-size: 0.85rem; + padding: 0.4rem 0.8rem; + } } /* readme :p */ diff --git a/public/js/index.js b/public/js/index.js index 1c54724..6feec74 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -156,6 +156,26 @@ function buildActivityHTML(activity) { ` : ""; + const activityButtons = activity.buttons && activity.buttons.length > 0 + ? `
` + : ''; + return `