Skip to content

Commit

Permalink
Merge pull request #619 from rkvst/pcn-new-header
Browse files Browse the repository at this point in the history
Docs header improvements
  • Loading branch information
pcnorth authored Aug 3, 2023
2 parents d24bf0a + 6cef267 commit 88f142d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
11 changes: 0 additions & 11 deletions config/_default/menus.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@
url = "/platform/"
weight = 30

[[main]]
name = "Use Cases"
url = "/usecases/"
weight = 40

[[main]]
name = "Glossary"
url = "/glossary/"
weight = 50

[[main]]
name = "Support"
url = "https://support.rkvst.com"
Expand All @@ -111,7 +101,6 @@




[[social]]
name = "Twitter"
pre = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-twitter\"><path d=\"M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z\"></path></svg>"
Expand Down
16 changes: 15 additions & 1 deletion layouts/partials/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
<input class="menu-btn order-0" type="checkbox" id="menu-btn">
<label class="menu-icon d-md-none" for="menu-btn"><span class="navicon"></span></label>
<a class="navbar-brand order-1 order-md-0 me-auto" style="font-family: Montserrat;" href="{{ "https://www.rkvst.com" | relURL }}">{{ .Site.Params.Title }}</a>
<svg width="68" height="18" viewBox="0 0 88 23" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.471367 22V0.999999H9.65137C11.9314 0.999999 13.9314 1.44 15.6514 2.32C17.3714 3.2 18.7114 4.42 19.6714 5.98C20.6314 7.54 21.1114 9.38 21.1114 11.5C21.1114 13.6 20.6314 15.44 19.6714 17.02C18.7114 18.58 17.3714 19.8 15.6514 20.68C13.9314 21.56 11.9314 22 9.65137 22H0.471367ZM4.37137 18.7H9.47137C11.0514 18.7 12.4114 18.4 13.5514 17.8C14.7114 17.2 15.6014 16.36 16.2214 15.28C16.8614 14.2 17.1814 12.94 17.1814 11.5C17.1814 10.04 16.8614 8.78 16.2214 7.72C15.6014 6.64 14.7114 5.8 13.5514 5.2C12.4114 4.6 11.0514 4.3 9.47137 4.3H4.37137V18.7ZM35.0965 22.3C33.4565 22.3 31.9465 22.03 30.5665 21.49C29.1865 20.95 27.9865 20.2 26.9665 19.24C25.9465 18.26 25.1565 17.12 24.5965 15.82C24.0365 14.5 23.7565 13.06 23.7565 11.5C23.7565 9.94 24.0365 8.51 24.5965 7.21C25.1565 5.89 25.9465 4.75 26.9665 3.79C27.9865 2.81 29.1865 2.05 30.5665 1.51C31.9465 0.969999 33.4465 0.699999 35.0665 0.699999C36.7065 0.699999 38.2065 0.969999 39.5665 1.51C40.9465 2.05 42.1465 2.81 43.1665 3.79C44.1865 4.75 44.9765 5.89 45.5365 7.21C46.0965 8.51 46.3765 9.94 46.3765 11.5C46.3765 13.06 46.0965 14.5 45.5365 15.82C44.9765 17.14 44.1865 18.28 43.1665 19.24C42.1465 20.2 40.9465 20.95 39.5665 21.49C38.2065 22.03 36.7165 22.3 35.0965 22.3ZM35.0665 18.88C36.1265 18.88 37.1065 18.7 38.0065 18.34C38.9065 17.98 39.6865 17.47 40.3465 16.81C41.0065 16.13 41.5165 15.35 41.8765 14.47C42.2565 13.57 42.4465 12.58 42.4465 11.5C42.4465 10.42 42.2565 9.44 41.8765 8.56C41.5165 7.66 41.0065 6.88 40.3465 6.22C39.6865 5.54 38.9065 5.02 38.0065 4.66C37.1065 4.3 36.1265 4.12 35.0665 4.12C34.0065 4.12 33.0265 4.3 32.1265 4.66C31.2465 5.02 30.4665 5.54 29.7865 6.22C29.1265 6.88 28.6065 7.66 28.2265 8.56C27.8665 9.44 27.6865 10.42 27.6865 11.5C27.6865 12.56 27.8665 13.54 28.2265 14.44C28.6065 15.34 29.1265 16.13 29.7865 16.81C30.4465 17.47 31.2265 17.98 32.1265 18.34C33.0265 18.7 34.0065 18.88 35.0665 18.88ZM60.2304 22.3C58.6304 22.3 57.1404 22.04 55.7604 21.52C54.4004 20.98 53.2104 20.23 52.1904 19.27C51.1904 18.29 50.4104 17.14 49.8504 15.82C49.2904 14.5 49.0104 13.06 49.0104 11.5C49.0104 9.94 49.2904 8.5 49.8504 7.18C50.4104 5.86 51.2004 4.72 52.2204 3.76C53.2404 2.78 54.4304 2.03 55.7904 1.51C57.1504 0.969999 58.6404 0.699999 60.2604 0.699999C61.9804 0.699999 63.5504 0.999999 64.9704 1.6C66.3904 2.18 67.5904 3.05 68.5704 4.21L66.0504 6.58C65.2904 5.76 64.4404 5.15 63.5004 4.75C62.5604 4.33 61.5404 4.12 60.4404 4.12C59.3404 4.12 58.3304 4.3 57.4104 4.66C56.5104 5.02 55.7204 5.53 55.0404 6.19C54.3804 6.85 53.8604 7.63 53.4804 8.53C53.1204 9.43 52.9404 10.42 52.9404 11.5C52.9404 12.58 53.1204 13.57 53.4804 14.47C53.8604 15.37 54.3804 16.15 55.0404 16.81C55.7204 17.47 56.5104 17.98 57.4104 18.34C58.3304 18.7 59.3404 18.88 60.4404 18.88C61.5404 18.88 62.5604 18.68 63.5004 18.28C64.4404 17.86 65.2904 17.23 66.0504 16.39L68.5704 18.79C67.5904 19.93 66.3904 20.8 64.9704 21.4C63.5504 22 61.9704 22.3 60.2304 22.3ZM78.788 22.3C77.148 22.3 75.578 22.07 74.078 21.61C72.578 21.13 71.388 20.52 70.508 19.78L71.858 16.75C72.698 17.41 73.738 17.96 74.978 18.4C76.218 18.84 77.488 19.06 78.788 19.06C79.888 19.06 80.778 18.94 81.458 18.7C82.138 18.46 82.638 18.14 82.958 17.74C83.278 17.32 83.438 16.85 83.438 16.33C83.438 15.69 83.208 15.18 82.748 14.8C82.288 14.4 81.688 14.09 80.948 13.87C80.228 13.63 79.418 13.41 78.518 13.21C77.638 13.01 76.748 12.78 75.848 12.52C74.968 12.24 74.158 11.89 73.418 11.47C72.698 11.03 72.108 10.45 71.648 9.73C71.188 9.01 70.958 8.09 70.958 6.97C70.958 5.83 71.258 4.79 71.858 3.85C72.478 2.89 73.408 2.13 74.648 1.57C75.908 0.989999 77.498 0.699999 79.418 0.699999C80.678 0.699999 81.928 0.859999 83.168 1.18C84.408 1.5 85.488 1.96 86.408 2.56L85.178 5.59C84.238 5.03 83.268 4.62 82.268 4.36C81.268 4.08 80.308 3.94 79.388 3.94C78.308 3.94 77.428 4.07 76.748 4.33C76.088 4.59 75.598 4.93 75.278 5.35C74.978 5.77 74.828 6.25 74.828 6.79C74.828 7.43 75.048 7.95 75.488 8.35C75.948 8.73 76.538 9.03 77.258 9.25C77.998 9.47 78.818 9.69 79.718 9.91C80.618 10.11 81.508 10.34 82.388 10.6C83.288 10.86 84.098 11.2 84.818 11.62C85.558 12.04 86.148 12.61 86.588 13.33C87.048 14.05 87.278 14.96 87.278 16.06C87.278 17.18 86.968 18.22 86.348 19.18C85.748 20.12 84.818 20.88 83.558 21.46C82.298 22.02 80.708 22.3 78.788 22.3Z" fill="url(#paint0_linear_304_319)"/>
<defs>
<linearGradient id="paint0_linear_304_319" x1="-31.0222" y1="-13.3333" x2="58.348" y2="63.0856" gradientUnits="userSpaceOnUse">
<stop stop-color="#004FDF"/>
<stop offset="0.166667" stop-color="#005BFF"/>
<stop offset="1" stop-color="#00F8FF"/>
</linearGradient>
</defs>
</svg>
{{ if .Site.Params.options.darkMode -}}
<button id="mode" class="btn btn-link order-2 order-md-4" type="button" aria-label="Toggle mode">
<span class="toggle-dark"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg></span>
Expand All @@ -16,6 +26,10 @@
<a class="nav-link" href="{{ .URL | relURL }}">{{ .Pre | safeHTML }}<span class="ms-2 visually-hidden">{{ .Name | safeHTML }}</span></a>
</li>
{{ end -}}
<ul class="navbar-nav main-nav me-auto order-6 order-md-3">
<a href="https://app.rkvst.io/login" target="_blank" rel="noopener noreferrer" class="btn btn-link" style="margin-left: 20px; font-size: 18px;" role="button">Sign In</a>
<a href="https://app.rkvst.io/signup" target="_blank" rel="noopener noreferrer" class="btn btn-primary btn-xs" style="margin-left: 10px; font-size: 18px; padding-top: 9px;" role="button">Sign Up</a>
</ul>
</ul>
<div class="collapse navbar-collapse order-4 order-md-1">
<ul class="navbar-nav main-nav me-auto order-5 order-md-2">
Expand All @@ -30,7 +44,7 @@
<a class="nav-link" href="{{ .URL | relURL }}">{{ .Name }}</a>
</li>
{{ end -}}
</ul>
</ul>
<div class="break order-6 d-md-none"></div>
{{ if .Site.Params.options.flexSearch -}}
<form class="navbar-form flex-grow-1 order-7 order-md-3">
Expand Down

0 comments on commit 88f142d

Please sign in to comment.