Skip to content

Commit

Permalink
Cleanup some UI (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
kitajchuk authored Oct 22, 2023
1 parent 7e49f79 commit ffcae20
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
7 changes: 3 additions & 4 deletions data/home.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
hero:
headline: Build unique voice solutions, faster.
subtext:
- jambonz is the open source voice platform
- for conversational AI providers and CSPs.
cta: Create a free account on jambonz.cloud
subtext: jambonz is the open source voice platform for conversational AI providers and CSPs.
ctaline: Create a free account on <a href="https://jambonz.cloud/register">jambonz.cloud</a> today!
cta: Create your free account
url: https://jambonz.cloud/register

tech:
Expand Down
5 changes: 5 additions & 0 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ export function Hero({ data = {}, subStyle, altStyle, children }) {
</H2>
</div>
)}
{data.ctaline && (
<div className="hero__ctaline">
<p dangerouslySetInnerHTML={{ __html: data.ctaline }} />
</div>
)}
{data.cta && (
<div className="hero__cta">
<Button as={Link} href={data.url}>{data.cta}</Button>
Expand Down
12 changes: 12 additions & 0 deletions src/styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
&--home {
padding-bottom: 64px;
padding-top: 32px;

.hero__subtext {
max-width: 530px;

@media (max-width: ui-vars.$width-tablet-1) {
max-width: 470px;
}
}
}

&--why {
Expand Down Expand Up @@ -166,6 +174,10 @@
margin-right: auto;
}
}

&__ctaline {
margin-bottom: 32px;
}
}

/******************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions src/styles/_vars.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* Utilized in src/components/hooks: useMobileMedia
*******************************************************************************/
:root {
--mobile-media: 896px;
--mobile-media: 1024px;
}

$mobile-width: 896px;
$mobile-width: 1024px;

/******************************************************************************
* Sizes
Expand Down

1 comment on commit ffcae20

@vercel
Copy link

@vercel vercel bot commented on ffcae20 Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.