Skip to content

Commit

Permalink
Update form copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jgthms committed Jan 11, 2024
1 parent 25d054e commit 4301f50
Show file tree
Hide file tree
Showing 6 changed files with 2,373 additions and 1,931 deletions.
56 changes: 29 additions & 27 deletions docs/_javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,32 +97,34 @@ document.addEventListener("DOMContentLoaded", () => {

const $amis = document.getElementById("amis");

fetch("https://jgthms.com/amis.json")
.then((response) => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}

return response.json();
})
.then((response) => {
const { by_id, home } = response;

home.forEach((id) => {
const ami = by_id[id];
const { url, alt = "", width, height } = ami;
const el = document.createElement("a");
el.className = "bd-sponsor-item bd-partner-sponsor";
el.href = "url";
el.target = "_blank";
el.title = alt;
const extension = ami.svg ? ".svg" : ".png";
const img = document.createElement("img");
img.src = `/images/amis/${id}${extension}`;
img.height = height;
img.width = width;
el.appendChild(img);
$amis.appendChild(el);
if ($amis) {
fetch("https://jgthms.com/amis.json")
.then((response) => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}

return response.json();
})
.then((response) => {
const { by_id, home } = response;

home.forEach((id) => {
const ami = by_id[id];
const { url, alt = "", width, height } = ami;
const el = document.createElement("a");
el.className = "bd-sponsor-item bd-partner-sponsor";
el.href = url;
el.target = "_blank";
el.title = alt;
const extension = ami.svg ? ".svg" : ".png";
const img = document.createElement("img");
img.src = `/images/amis/${id}${extension}`;
img.height = height;
img.width = width;
el.appendChild(img);
$amis.appendChild(el);
});
});
});
}
});
7 changes: 7 additions & 0 deletions docs/_sass/components/v1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@
display: flex;
width: 100%;
}

.label em {
font-style: normal;
font-weight: normal;
opacity: 0.5;
font-size: 0.875em;
}
}

.v1-tsp {
Expand Down

0 comments on commit 4301f50

Please sign in to comment.