Skip to content

Commit

Permalink
Update docs/gallery/index.html
Browse files Browse the repository at this point in the history
Co-authored-by: DaInfLoop <github@dainfloop.is-a.dev>
  • Loading branch information
NeonGamerBot-QK and DaInfLoop authored Jan 1, 2025
1 parent 6f98b38 commit f5a50fc
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions docs/gallery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,25 @@ <h1 class="ultratitle">Gallery</h1>
carousel.appendChild(prev)
carousel.appendChild(next)
}
const titleThing = document.createElement('h1')
const titleThing = document.createElement('div')
titleThing.innerText = data.name
const h1 = titleThing
h1.style.textAlign = "center"
// h1.style.margin = "auto"
const gitLink = document.createElement('a')
gitLink.href = data.git
gitLink.innerText = "Dotfiles"
gitLink.style.textDecoration = "none"
gitLink.target = "_blank"
h1.style.verticalAlign = "center"
h1.appendChild(document.createTextNode(" - "))
h1.appendChild(gitLink)
h1.appendChild(document.createTextNode(" "))
h1.appendChild(setupIcon(data.distro))
const div = titleThing
div.style.display = "flex"
div.style.justifyContent = "center"
div.style.alignItems = "center"
div.style.gap = "var(--spacing-2)"
div.style.fontSize = "var(--font-5)"
div.style.fontWeight = "var(--font-weight-bold)"

const gitLink = document.createElement('a')
gitLink.href = data.git
gitLink.innerText = "Dotfiles"
gitLink.style.textDecoration = "none"
gitLink.target = "_blank"

div.appendChild(document.createTextNode(" - "))
div.appendChild(gitLink)
div.appendChild(setupIcon(data.distro))
document.body.appendChild(titleThing)
document.body.appendChild(carousel)
const acarousel = setupCarousel()
Expand Down

0 comments on commit f5a50fc

Please sign in to comment.