Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/components/SiteTitle.astro
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
// The site title: the pixel eye beside the name, drawn as a mask over the
// text colour so it follows the theme (styles/intentius.css). On a phone the
// Demo and Contact links sit beside it, since Starlight hides the header's
// Compare, Demo and Contact links sit beside it (Demo, then the name
// beside the eye, drop out on the narrowest screens), since Starlight hides the header's
// right side (where SocialIcons.astro puts them) below its md width.
const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;
---
<a href={siteTitleHref} class="site-title sl-flex">
<span class="in-logo" aria-hidden="true"></span>
<span translate="no">{siteTitle}</span>
<span class="in-name" translate="no">{siteTitle}</span>
</a>
<a class="in-contact-phone" href="https://demo.intentius.io/">Demo</a>
<a class="in-contact-phone" href="/compare/terraform-platforms/">Compare</a>
<a class="in-contact-phone in-demo-phone" href="https://demo.intentius.io/">Demo</a>
<a class="in-contact-phone" href="/contact/">Contact</a>

<style>
Expand All @@ -32,6 +34,14 @@ const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;
border-radius: 999px;
white-space: nowrap;
}
@media (max-width: 30rem) {
.in-demo-phone {
display: none;
}
}
@media (max-width: 24rem) {
.in-name { display: none; }
}
@media (min-width: 50rem) {
.in-contact-phone {
display: none;
Expand Down
12 changes: 9 additions & 3 deletions src/components/SocialIcons.astro
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
// The header's right side: the Demo and Contact links first, since every
// offer on the site ends in trying it or getting in touch, then Starlight's
// own social icons.
// The header's right side: Compare and Tools, so the splash landing page
// reaches the site's sections, then Demo and Contact, since every offer on
// the site ends in trying it or getting in touch, then Starlight's own social
// icons.
import Default from '@astrojs/starlight/components/SocialIcons.astro';
---
<a class="in-contact" href="/compare/terraform-platforms/">Compare</a>
<a class="in-contact in-wider" href="/tools/">Tools</a>
<a class="in-contact" href="https://demo.intentius.io/">Demo</a>
<a class="in-contact" href="/contact/">Contact</a>
<Default />
Expand All @@ -22,6 +25,9 @@ import Default from '@astrojs/starlight/components/SocialIcons.astro';
.in-contact:hover {
border-color: var(--in-gold);
}
@media (max-width: 64rem) {
.in-wider { display: none; }
}
@media (max-width: 30rem) {
.in-contact { margin-right: 0.25rem; padding: 0.2rem 0.55rem; font-size: 0.78rem; }
.in-contact[href^='https://demo'] { display: none; }
Expand Down
Loading