Skip to content

Commit

Permalink
Merge pull request #24 from qoherent/form-design
Browse files Browse the repository at this point in the history
Added form to home page and fixed form styling on riahub page
  • Loading branch information
abeigi authored Mar 12, 2024
2 parents 83cc738 + e8bd7d8 commit 394c71c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
10 changes: 9 additions & 1 deletion content/english/pages/radiointelligenceapps-riahub.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _**Radio Intelligence Apps Hub (RIAHUB)**_ by Qoherent is an AI development plat

<p class="text">Sign up for our early access program below:</p>
<br>
<div class="form-div" style="width: 40%; margin: auto;">
<div class="form-div">
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
Expand All @@ -41,4 +41,12 @@ hbspt.forms.create({
</script>
</div>

<style>
.form-div {
width: 80%;
margin: auto;
max-width: 500px;
}
</style>

<p class="text">RIAHUB is built on top of the <a href="https://github.com/qoherent/ria">RIA project</a> and <a href="https://github.com/go-gitea/gitea">Gitea</a>.</p>
24 changes: 13 additions & 11 deletions themes/hugoplate/layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@
{{ partial "progress_indicator" }}
<!-- Banner -->
{{ with .Params.banner }}
<section class="section relative" style="height: 65vh; background: linear-gradient(to top, transparent 0%, #1c1c1c 80%);">
<section class="section relative lg:h-[65vh] sm:h-[75vh] h-[85vh]" style="background: linear-gradient(to top, transparent 0%, #1c1c1c 80%);">
{{ partial "image" (dict "Src" .image "Alt" "Banner image" "Loading" "eager" "Class" "absolute inset-0 w-full h-full z-[-1] min-h-full") }}
<div class="absolute inset-0 flex flex-col justify-center items-center text-white">
<div class="container">
<div class="row justify-center">
<div class="text-center lg:mb-[17.5vh] mb-[10.5vh]">
<div class="text-center">
<h1 class="text-center lg:whitespace-nowrap " style="font-weight: 100;">
{{ .title | markdownify }}
</h1>
<p class="mb-8 text-center">
<p class="mb-4 text-center">
{{ .content | markdownify }}
</p>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}">
{{ .label }}
<i class="fa fa-arrow-right pl-2"></i>
</a>
{{ end }}
{{ end }}
<div class="form-div w-[80%] mx-auto max-w-lg">
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
<script>
hbspt.forms.create({
region: "na1",
portalId: "45248873",
formId: "39c3ea3e-3194-4d06-a9a6-f54201223e81"
});
</script>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 394c71c

Please sign in to comment.