Upgrade to bootstrap 5

This commit is contained in:
nemunaire 2026-05-17 18:34:52 +08:00
commit 2766c7c4b3
14 changed files with 31 additions and 45 deletions

View file

@ -175,6 +175,8 @@ module:
target: static/fonts/jetbrains-mono target: static/fonts/jetbrains-mono
- source: node_modules/@fontsource-variable/quicksand - source: node_modules/@fontsource-variable/quicksand
target: static/fonts/quicksand target: static/fonts/quicksand
- source: node_modules/bootstrap/dist/js
target: static/js
markup: markup:
goldmark: goldmark:

View file

@ -5,7 +5,7 @@
style="gap: 1em 1em; overflow-x: scroll" style="gap: 1em 1em; overflow-x: scroll"
> >
{{ range sort .Site.Params.carousel "weight" }} {{ range sort .Site.Params.carousel "weight" }}
<figure class="my-5 mr-5 text-center" style="min-width: 65vw"> <figure class="my-5 me-5 text-center" style="min-width: 65vw">
<a href="{{ .image }}"> <a href="{{ .image }}">
<img <img
class="rounded img-thumbnail" class="rounded img-thumbnail"

View file

@ -2,7 +2,7 @@
<section id="cta"> <section id="cta">
<div class="container"> <div class="container">
<div class="cta-content"> <div class="cta-content">
<h2 class="display-5 font-weight-bold mb-4"> <h2 class="display-5 fw-bold mb-4">
{{ i18n "cta-account-title" }} {{ i18n "cta-account-title" }}
</h2> </h2>
<div class="row mb-4"> <div class="row mb-4">

View file

@ -9,7 +9,7 @@
<div <div
class="col-lg-7 d-flex flex-column justify-content-center" class="col-lg-7 d-flex flex-column justify-content-center"
> >
<h2 class="font-weight-bold"> <h2 class="fw-bold">
{{ i18n "cta-newsletter-title" }} {{ i18n "cta-newsletter-title" }}
</h2> </h2>
<p class="lead mb-0"> <p class="lead mb-0">
@ -50,7 +50,7 @@
> >
{{ i18n "cta-newsletter-button1" }} {{ i18n "cta-newsletter-button1" }}
</button> </button>
<small class="form-text text-justify my-2"> <small class="form-text my-2">
{{ i18n "cta-newsletter-no-spam" }} {{ i18n "cta-newsletter-no-spam" }}
</small> </small>
</form> </form>

View file

@ -12,7 +12,7 @@
/> />
</div> </div>
<div class="col"> <div class="col">
<h3 class="font-weight-bolder"> <h3 class="fw-bolder">
{{ i18n "downloads-title" }} {{ i18n "downloads-title" }}
<span class="text-muted"> <span class="text-muted">
{{ i18n "downloads-subtitle" }} {{ i18n "downloads-subtitle" }}

View file

@ -14,7 +14,7 @@
<div class="alert alert-warning my-5 d-flex"> <div class="alert alert-warning my-5 d-flex">
<div class="display-2">🏗️</div> <div class="display-2">🏗️</div>
<div class="ml-2 flex-fill"> <div class="ms-2 flex-fill">
<p class="lead">{{ i18n "features-wip-lead" }}</p> <p class="lead">{{ i18n "features-wip-lead" }}</p>
<p> <p>
{{ i18n "features-wip-p1-start" }} {{ i18n "features-wip-p1-start" }}
@ -59,10 +59,10 @@
{{ end }} {{ end }}
<div class="card-body align-items-center"> <div class="card-body align-items-center">
<div class="d-flex flex-column justify-content-center"> <div class="d-flex flex-column justify-content-center">
<h4 class="card-title font-weight-bolder"> <h4 class="card-title fw-bolder">
{{ index .title $.Language.Lang }} {{ index .title $.Language.Lang }}
</h4> </h4>
<p class="card-text text-justify"> <p class="card-text">
{{ index .content $.Language.Lang }} {{ index .content $.Language.Lang }}
</p> </p>
{{ if and .link .link.link }} {{ if and .link .link.link }}

View file

@ -1,5 +1,5 @@
<section <section
class="jumbotron mt-n1 mb-0" class="py-5 mt-n1 mb-0"
style=" style="
background: linear-gradient( background: linear-gradient(
135deg, 135deg,
@ -23,7 +23,7 @@
class="col col-sm-8 offset-sm-2 col-md-10 offset-md-1 col-xl-8 offset-xl-2" class="col col-sm-8 offset-sm-2 col-md-10 offset-md-1 col-xl-8 offset-xl-2"
> >
<h2 <h2
class="display-4 text-center text-dark font-weight-bold" class="display-4 text-center text-dark fw-bold"
style="text-wrap: balance" style="text-wrap: balance"
> >
{{ i18n "slogan" | safeHTML }} {{ i18n "slogan" | safeHTML }}
@ -36,17 +36,15 @@
</p> </p>
<div class="mt-5 py-2 d-none d-md-flex justify-content-center"> <div class="mt-5 py-2 d-none d-md-flex justify-content-center">
<a <a
class="btn btn-lg btn-primary px-4 mr-3" class="btn btn-lg btn-primary px-4 me-3"
data-umami-event="jumbo-tryit" data-umami-event="jumbo-tryit"
href="{{ .Site.Params.tryit }}?lang={{ .Language }}" href="{{ .Site.Params.tryit }}?lang={{ .Language }}"
style="border-radius: 2em"
>{{ i18n "tryit" }} &#187;</a >{{ i18n "tryit" }} &#187;</a
> >
<a <a
class="btn btn-lg btn-outline-secondary px-4 ml-3" class="btn btn-lg btn-outline-secondary px-4 ms-3"
data-umami-event="jumbo-downloads" data-umami-event="jumbo-downloads"
href="#downloads" href="#downloads"
style="border-radius: 2em"
>{{ i18n "downloadit" }}</a >{{ i18n "downloadit" }}</a
> >
</div> </div>

View file

@ -62,8 +62,8 @@
<button <button
class="navbar-toggler" class="navbar-toggler"
type="button" type="button"
data-toggle="collapse" data-bs-toggle="collapse"
data-target="#navbarCollapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-controls="navbarCollapse"
aria-expanded="false" aria-expanded="false"
aria-label="Toggle navigation" aria-label="Toggle navigation"
@ -82,7 +82,7 @@
href="#" href="#"
id="navbarDropdown" id="navbarDropdown"
role="button" role="button"
data-toggle="dropdown" data-bs-toggle="dropdown"
aria-haspopup="true" aria-haspopup="true"
aria-expanded="false" aria-expanded="false"
> >
@ -121,23 +121,22 @@
</div> </div>
<div class="nav-item dropdown"> <div class="nav-item dropdown">
<a <a
class="nav-link dropdown-toggle" class="btn btn-outline-secondary dropdown-toggle"
href="#" href="#"
id="navbarDropdown" id="navbarLangDropdown"
role="button" role="button"
data-toggle="dropdown" data-bs-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false" aria-expanded="false"
> >
{{ .Language }} <i class="bi bi-globe"></i> {{ .Language.Lang | upper }}
</a> </a>
<div <div
class="dropdown-menu dropdown-menu-right" class="dropdown-menu dropdown-menu-end"
aria-labelledby="navbarDropdown" aria-labelledby="navbarLangDropdown"
> >
{{ range .Site.Home.AllTranslations }} {{ range .Site.Home.AllTranslations }}
<a href="{{ .Permalink }}" class="dropdown-item" <a href="{{ .Permalink }}" class="dropdown-item"
>{{ .Language }}</a >{{ .Language.LanguageName }}</a
> >
{{ end }} {{ end }}
</div> </div>

View file

@ -1,5 +1,4 @@
<script src="/js/jquery.slim.min.js"></script> <script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script> <script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<script> <script>
window.addEventListener("scroll", function () { window.addEventListener("scroll", function () {

View file

@ -17,15 +17,13 @@
<div class="col align-self-center font-weigth-bolder"> <div class="col align-self-center font-weigth-bolder">
<button <button
type="button" type="button"
class="close float-right" class="btn-close btn-close-white float-end"
aria-label="Close" aria-label="Close"
onclick=" onclick="
document.getElementById('voxppl').style.display = 'none'; document.getElementById('voxppl').style.display = 'none';
return false; return false;
" "
> ></button>
<span aria-hidden="true">&times;</span>
</button>
<strong>{{ i18n "survey-title" | markdownify }}</strong><br /> <strong>{{ i18n "survey-title" | markdownify }}</strong><br />
{{ i18n "survey-text" | markdownify }} {{ i18n "survey-text" | markdownify }}
</div> </div>

View file

@ -2,13 +2,13 @@
<div class="container mt-5 mb-4"> <div class="container mt-5 mb-4">
<div class="row py-5"> <div class="row py-5">
<div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2 col-xl-6 offset-xl-3 text-center"> <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2 col-xl-6 offset-xl-3 text-center">
<h4 class="font-weight-bold mb-3"> <h4 class="fw-bold mb-3">
{{ i18n "footer-try-title-line1" }}<br> {{ i18n "footer-try-title-line1" }}<br>
{{ i18n "footer-try-title-line2" }} {{ i18n "footer-try-title-line2" }}
</h4> </h4>
<p> <p>
happy<span class="font-weight-bold">Domain</span> {{ i18n "footer-try-text" }} happy<span class="fw-bold">Domain</span> {{ i18n "footer-try-text" }}
</p> </p>
<p> <p>
@ -60,10 +60,10 @@
<div class="container my-4"> <div class="container my-4">
<div class="row"> <div class="row">
<div class="order-0 col-md-5 offset-md-1 align-self-center text-center"> <div class="order-0 col-md-5 offset-md-1 align-self-center text-center">
<h3 class="font-weight-bolder">{{ i18n "footer-us-title" }}</h3> <h3 class="fw-bolder">{{ i18n "footer-us-title" }}</h3>
</div> </div>
<div class="order-1 col-md-5"> <div class="order-1 col-md-5">
<h4 class="font-weight-bold mb-3"> <h4 class="fw-bold mb-3">
{{ i18n "footer-us-text-lead" }} {{ i18n "footer-us-text-lead" }}
</h4> </h4>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long