Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
68 changes: 30 additions & 38 deletions layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,16 @@

{{ define "main" }}
<main class="bg-redis-ink-900 text-white">
<header class="relative h-48 bg-redis-ink-900 text-white overflow-hidden">
<div class="absolute w-1/2 h-full top-0 left-1/4">
<div class="absolute w-fit -top-10 md:-top-6 -right-80 md:-left-96 scale-75 md:scale-100">
{{ partial "icons/redis-cube.html" }}
</div>
</div>
<div class="relative max-w-[800px] mx-auto px-5 flex flex-col gap-8 md:items-center justify-center h-full z-10">
<h1 class="text-5xl font-medium">{{ .Title }}</h1>
{{ with .Params.description }}
<p class="text-xl md:text-2xl">{{ . | markdownify }}</p>
{{ end }}
<form class="flex flex-row items-center border border-white rounded-md px-6 gap-6 w-full md:w-4/5 bg-redis-ink-900" action="/chat">
<label class="" for="search-home" id="search-label-home">
{{ partial "icons/search.html" }}
</label>
<input id="seach-home" name="q" class="appearance-none bg-transparent text-base sm:text-lg text-white placeholder-white w-full h-16 focus:outline-none"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="Ask our AI-powered Redis copilot a question…" maxlength="500" type="text" value="" tabindex=""/>
<!--<input type="submit" class="hover:text-redis-pen-300" value="&#x23CE;"/>-->
<input class="invisible" type="submit" class="hover:text-redis-pen-300" value=""/>
</form>
</div>
</header>
<div class="w-full h-px bg-[#163341]"></div>
{{ partial "second-header.html" "disabled" }}
<div class="flex flex-col lg:flex-row gap-8 mx-auto px-4 md:px-11 py-6 md:py-28 max-w-[1920px] bg-redis-ink-900 text-white">
<div class="lg:sticky lg:top-32 w-full lg:w-64 h-fit lg:h-full shrink-0 text-sm font-mono font-normal">
<nav class="lg:hidden w-full lg:w-64 z-40 bg-redis-ink-900 h-fit lg:h-full leading-7">
<div class="flex flex-col lg:flex-row gap-8 mx-auto px-5 max-w-[1920px] bg-redis-ink-900 text-white" style="padding-top: 2px; padding-bottom: 24px;">
<div class="md:block w-full md:w-96 h-fit md:h-full shrink-0 text-base font-mono font-normal py-6">
<nav class="md:hidden w-full md:w-96 z-40 bg-redis-ink-900 h-fit md:h-full leading-7">
<div class="border border-opacity-50 border-white rounded-md flex flex-col bg-redis-ink-900">
<button class="px-6 py-4 text-white font-medium flex justify-between cursor-pointer lg:cursor-default" onclick="dropdownToggle()">
<button class="px-6 py-4 text-white font-medium flex justify-between cursor-pointer md:cursor-default" onclick="dropdownToggle()">
<div class="uppercase">Docs</div>
<div id="dropdownChevron" class="lg:hidden self-center">{{ partial "icons/chevron.html" }}</div>
<div id="dropdownChevron" class="md:hidden self-center">{{ partial "icons/chevron.html" }}</div>
</button>
<div id="dropdown" class="hidden lg:block border-t border-opacity-50 border-white text-gray-300 bg-redis-ink-900">
<div id="dropdown" class="hidden md:block border-t border-opacity-50 border-white text-gray-300 bg-redis-ink-900">
<ul class="p-6">
<li><a class="py-2 hover:underline hover:text-white" href='{{ relURL "develop" }}'>Develop with Redis</a></li>
<li><a class="py-2 hover:underline hover:text-white" href='{{ relURL "integrate" }}'>Libraries and tools</a></li>
Expand All @@ -55,7 +31,7 @@ <h1 class="text-5xl font-medium">{{ .Title }}</h1>
</div>
</div>
</nav>
<nav class="hidden lg:block w-full lg:w-64 z-40 h-full leading-7">
<nav class="hidden md:block max-h-[calc(100vh-7rem)] min-h-96 flex flex-col gap-4 w-full md:w-96 z-40 md:fixed md:pt-6 h-fit md:h-full leading-7">
<div class="flex flex-col gap-4">
<div class="flex flex-col border border-white border-opacity-50 rounded-md bg-redis-ink-900">
<a class="px-6 py-4 rounded-t-md hover:bg-redis-pen-800 text-white" href='{{ relURL "develop" }}'>Develop with Redis</a>
Expand All @@ -69,8 +45,24 @@ <h1 class="text-5xl font-medium">{{ .Title }}</h1>
</div>
</nav>
</div>
<div class="lg:px-11 w-full flex flex-col gap-3">
<h2 class="text-5xl font-medium text-white" id="operate">Get Started</h2>
<div class="w-full flex flex-col gap-6 pt-6">
<!-- Welcome heading and search box on same line -->
<div class="flex flex-col md:flex-row items-center gap-4 lg:px-11">
<h1 class="text-4xl md:text-5xl font-medium text-white text-center md:text-left flex-1">Welcome to Redis Docs</h1>
<form class="flex flex-row items-center border border-white rounded-md px-4 gap-3 w-full md:w-auto md:w-[350px] bg-redis-ink-900" action="/chat">
<label class="" for="search-home" id="search-label-home">
{{ partial "icons/sparkles.html" }}
</label>
<input id="seach-home" name="q" class="appearance-none bg-transparent text-sm text-white placeholder-white w-full h-10 focus:outline-none"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="Ask our AI copilot…" maxlength="500" type="text" value="" tabindex=""/>
<input class="invisible" type="submit" class="hover:text-redis-pen-300" value=""/>
</form>
</div>

<!-- Two column layout for Get Started and Deploy -->
<div class="flex flex-col lg:flex-row gap-8">
<div class="lg:px-11 w-full flex flex-col gap-3">
{{ partial "docs-section.html" (dict
"Title" "Quickly set up a Redis cache, primary, vector, or custom database"
"Description" "Set up a Free Redis-managed database on AWS, GCP, or Azure"
Expand Down Expand Up @@ -131,11 +123,10 @@ <h2 class="text-5xl font-medium text-white" id="operate">Get Started</h2>
(dict "Text" "Example doc page in Markdown format" "URL" "./develop/index.html.md")
)
) }}
</div>
<div class="lg:px-11 w-full flex flex-col gap-3">
<h2 class="text-5xl font-medium text-white" id="operate">Deploy</h2>
</div>
<div class="lg:px-11 w-full flex flex-col gap-3">
{{ partial "docs-section.html" (dict
"Title" "Control your Redis deployments on-premises and on cloud platforms"
"Title" "Control your Redis Software on-premises and on cloud platforms"
"Description" "Robust support for hybrid and multi-AZ environments"
"ButtonLink" "./operate/rs/installing-upgrading/install/plan-deployment/"
"ButtonLabel" "Redis deployment planning"
Expand Down Expand Up @@ -178,8 +169,9 @@ <h2 class="text-5xl font-medium text-white" id="operate">Deploy</h2>
"LinksLeft" (slice
(dict "Text" "Redis CLI" "URL" "./develop/tools/cli/")
(dict "Text" "Redis Insight" "URL" "./develop/tools/insight/")
(dict "Text" "Redis for VSCode" "URL" "./develop/tools/redis-for-vscode/")
(dict "Text" "Redis for VSCode" "URL" "./develop/tools/redis-for-vscode/")
) ) }}
</div>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions layouts/partials/icons/sparkles.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" stroke="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M4 8L4.5 6L6 5.5L4.5 5L4 3L3.5 5L2 5.5L3.5 6L4 8Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 15L13 11L15 10L13 9L12 5L11 9L9 10L11 11L12 15Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>