Skip to content

Commit 87e0020

Browse files
committed
chore: update docs css
1 parent 75e3f41 commit 87e0020

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

docs/index.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
description: sql-redis documentation. SQL to Redis FT.SEARCH and FT.AGGREGATE translator.
33
---
44

5+
<div class="rds-hero" markdown>
6+
7+
![Redis](assets/redis-logo-script-red.svg){ .rds-hero__logo }
8+
59
# sql-redis
610

7-
Query Redis collections with familiar SQL on top of RediSearch and RedisVL indexes. sql-redis converts SQL `SELECT` statements into Redis `FT.SEARCH` and `FT.AGGREGATE` commands, looking up index schemas via `FT.INFO` so the translation respects the underlying field types.
11+
SQL for RediSearch and RedisVL indexes
12+
{ .rds-hero__tagline }
13+
14+
</div>
815

916
## Quick Start
1017

docs/stylesheets/redis-brand.css

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,55 @@
3737
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
3838
font-weight: 700;
3939
}
40+
41+
/* Landing-page hero: Redis script logo stacked over the wordmark and tagline.
42+
* Mirrors the marketing card used on docs.redisvl.com hand-offs. */
43+
.rds-hero {
44+
text-align: center;
45+
margin: 1.5rem auto 2.5rem;
46+
padding: 0 1rem;
47+
}
48+
49+
.rds-hero__logo {
50+
display: block;
51+
margin: 0 auto 0.75rem;
52+
width: clamp(180px, 32vw, 280px);
53+
aspect-ratio: 85 / 27;
54+
height: auto;
55+
}
56+
57+
.rds-hero h1 {
58+
margin: 0;
59+
font-weight: 700;
60+
font-size: clamp(1.5rem, 3.2vw, 2.125rem);
61+
line-height: 1.15;
62+
color: var(--rds-midnight);
63+
letter-spacing: -0.01em;
64+
}
65+
66+
[data-md-color-scheme="slate"] .rds-hero h1 {
67+
color: #F2F4F5;
68+
}
69+
70+
.rds-hero__tagline {
71+
margin: 0.5rem 0 0;
72+
font-size: clamp(1rem, 2vw, 1.25rem);
73+
color: var(--rds-slate);
74+
font-weight: 400;
75+
}
76+
77+
[data-md-color-scheme="slate"] .rds-hero__tagline {
78+
color: var(--rds-mute);
79+
}
80+
81+
/* Layout: pin the left sidebar to the viewport's left edge and the right
82+
* TOC to the viewport's right edge by removing Material's centered grid
83+
* cap. Sidebars keep their default 12.1rem widths; the content column
84+
* absorbs all remaining space. Header/tabs use the same grid so they
85+
* also span full width, keeping the layout consistent.
86+
*/
87+
@media screen and (min-width: 76.25em) {
88+
.md-grid {
89+
max-width: none;
90+
}
91+
}

0 commit comments

Comments
 (0)