Skip to content

Commit 348ee01

Browse files
authored
add homepage layout and styles (#30)
* add homepage layout and styles * remove blank title * add dark mode icon image
1 parent 16f7c33 commit 348ee01

File tree

9 files changed

+180
-20
lines changed

9 files changed

+180
-20
lines changed

preview-src/astra-browser.png

141 KB
Loading

preview-src/astra-vector-dark.svg

Lines changed: 3 additions & 0 deletions
Loading

preview-src/astra-vector.svg

Lines changed: 3 additions & 0 deletions
Loading

preview-src/astra.adoc

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
= {company} Astra
2+
:page-layout: full
3+
:vector-image: image::ROOT:ui/integrations-browser.png[Browser,420,220,align=center]
4+
5+
DataStax Astra is a cutting-edge cloud-native database platform designed to empower developers.
6+
Harnessing the strengths of vector databases, serverless computing, and real-time streaming, Astra propels application development into the next generation.
7+
From AI-driven capabilities to robust data stream management, Astra simplifies complex tasks, offering unparalleled performance and scalability.
8+
9+
[.ds-feature-buttons]
10+
https://astra.datastax.com[Explore Astra Vector^,role="ds-button ds-button\--color-primary ds-button\--variant-solid"]
11+
https://astra.datastax.com[Create Astra Account^,role="ds-button ds-button\--color-primary ds-button\--variant-outlined external"]
12+
13+
[.vector.header-noline.text-h1.row.border-bottom]
14+
== Vector
15+
--
16+
[.landing-card-icon]
17+
image:astra-vector.svg[vector,20,role=for-light]
18+
image:astra-vector-dark.svg[vector,20,role=for-dark]
19+
20+
Delve into a database optimized for AI-driven tasks.
21+
Astra Vector is tailored to offer unparalleled precision, speed, and scalability for AI applications, transforming how your applications perceive and interact with data.
22+
23+
[.landing-a]
24+
xref:astra-vector::index.adoc[Learn More About Astra Vector]
25+
--
26+
image::astra-browser.png[Browser,420,220,align=center,float=bottom]
27+
28+
''''
29+
30+
[.grid]
31+
--
32+
[discrete]
33+
=== Serverless C*
34+
35+
Delve deep into high-dimensional spaces with Astra Vector.
36+
Engineered for AI-intensive tasks, it offers unparalleled precision, speed, and scalability.
37+
Bring complex AI models into production with confidence, leveraging Astra's robust architecture.
38+
39+
[.landing-a]
40+
https://docs.datastax.com/en/astra-serverless/docs/index.html[Discover Astra Serverless C*]
41+
42+
[.material-icons.landing-card-icon]
43+
table_chart
44+
45+
--
46+
47+
[.grid]
48+
--
49+
[discrete]
50+
=== Streaming
51+
52+
Harness real-time data with Astra Streaming.
53+
Process, analyze, and act on data as it's generated.
54+
Whether you're analyzing user behavior or monitoring systems, Astra Streaming delivers the real-time insights you need.
55+
56+
[.landing-a]
57+
https://docs.datastax.com/en/streaming/astra-streaming/index.html[Dive into Astra Streaming]
58+
59+
[.material-icons.landing-card-icon]
60+
air
61+
62+
--
63+
64+
65+
[.header-noline.text-h1.ds-row.ds-grid]
66+
== Explore More of Astra
67+
68+
=== Dive Deeper into Vector
69+
70+
Get a broader understanding of vector databases and their capabilities within Astra.
71+
72+
[unstyled.landing-a]
73+
* link:{#}[Vector Basics and Concepts]
74+
* link:{#}[Advanced Vector Techniques]
75+
* link:{#}[Vector Search Optimization]
76+
77+
=== Serverless C* Unveiled
78+
79+
Explore the intricacies and features of Astra's serverless database offering.
80+
81+
[unstyled.landing-a]
82+
* link:{#}[Understanding CDC in Serverless C*]
83+
* link:{#}[Clients, CLI, and Tools for Serverless C*]
84+
* link:{#}[Serverless C* Best Practices]
85+
86+
=== Streaming Insights
87+
88+
Delve deeper into the real-time data processing capabilities of Astra.
89+
90+
[unstyled.landing-a]
91+
* link:{#}[Streaming Fundamentals]
92+
* link:{#}[Advanced Streaming Configurations]
93+
* link:{#}[Starlight Integrations: JMS, Kafka, RabbitMQ]

src/css/doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@
10371037

10381038
.doc hr {
10391039
border: solid var(--section-divider-color);
1040-
border-width: 2px 0 0;
1040+
border-width: 1px 0 0;
10411041
height: 0;
10421042
}
10431043

src/css/ds-card.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,18 @@
4949
background: #000;
5050
}
5151

52-
.ds-row .ds-card + .ds-card {
52+
.ds-row .ds-card + .ds-card,
53+
.row .ds-card + .ds-card {
5354
margin: 0;
5455
}
5556

5657
.doc .ds-card.exampleblock > .content::after {
5758
display: none;
5859
}
5960

60-
.ds-card .image.bottom img {
61+
.ds-card .image.bottom img,
62+
.imageblock.bottom img,
63+
.image.bottom img {
6164
margin-bottom: calc(24 / var(--rem-base) * -1 * 1rem);
6265
}
6366

src/css/ds-layout.css

Lines changed: 63 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,67 @@
66

77
/* Extend .doc max-width */
88
@media screen and (min-width: 1024px) {
9-
html[data-layout="landing"] {
10-
.doc {
11-
max-width: calc(1280 / var(--rem-base) * 1rem);
12-
}
9+
html[data-layout="landing"] .doc,
10+
html[data-layout="full"] .doc {
11+
max-width: calc(1280 / var(--rem-base) * 1rem);
1312
}
13+
14+
html[data-layout="full"] main {
15+
padding: 0;
16+
}
17+
}
18+
19+
html[data-layout="full"] main > .content {
20+
justify-content: center;
21+
}
22+
23+
html[data-layout="full"] .content-container {
24+
flex-wrap: wrap;
25+
align-content: center;
1426
}
1527

1628
/* Hide sidebar, a.anchor */
1729
html[data-layout="landing"] .toc.sidebar,
1830
html[data-layout="landing"] .toc.embedded,
1931
html[data-layout="landing"] .breadcrumbs,
20-
html[data-layout="landing"] a.anchor {
32+
html[data-layout="landing"] a.anchor,
33+
html[data-layout="full"] .nav-container,
34+
html[data-layout="full"] .toolbar,
35+
html[data-layout="full"] .toc.sidebar,
36+
html[data-layout="full"] a.anchor,
37+
html[data-layout="full"] .hide h2 {
2138
display: none;
2239
}
2340

24-
html[data-layout="landing"] .toolbar {
41+
html[data-layout="landing"] .toolbar,
42+
html[data-layout="full"] .toolbar {
2543
justify-content: flex-end;
2644
}
2745

28-
html[data-layout="landing"] .doc > h1.page:first-child {
46+
html[data-layout="landing"] .doc > h1.page:first-child,
47+
html[data-layout="full"] .doc > h1.page:first-child {
2948
font-size: calc(34 / var(--rem-base) * 1rem);
3049
margin-top: var(--ds-space-3);
3150
margin-top: var(--ds-space-2);
3251
}
3352

34-
html[data-layout="landing"] #preamble {
53+
html[data-layout="landing"] #preamble,
54+
html[data-layout="full"] #preamble {
3555
max-width: 650px;
3656
}
3757

3858
html[data-layout="landing"] .doc .olist li + li,
39-
html[data-layout="landing"] .doc .ulist li + li {
59+
html[data-layout="landing"] .doc .ulist li + li,
60+
html[data-layout="full"] .doc .olist li + li,
61+
html[data-layout="full"] .doc .ulist li + li {
4062
margin-top: var(--ds-space-2);
4163
}
4264

43-
html[data-layout="landing"] .text-h1 h2 {
65+
.text-h1 > h2 {
4466
@include text-h1;
4567
}
4668

69+
.row > *,
4770
.ds-row > * {
4871
display: flex;
4972
flex-direction: column;
@@ -52,29 +75,46 @@ html[data-layout="landing"] .text-h1 h2 {
5275
gap: var(--ds-space-3);
5376
}
5477

55-
.ds-row .sectionbody > * {
78+
.ds-row .sectionbody > *,
79+
.row .sectionbody > * {
5680
flex: 1;
5781
}
5882

5983
/* persist row direction max-width: 1200px */
60-
.ds-row.persistent > * {
84+
.ds-row.persistent > *,
85+
.row.persistent > * {
6186
flex-direction: row;
6287
}
6388

89+
.row-item,
90+
.row hr,
91+
.row .sectionbody > hr {
92+
flex: 0 0 100%;
93+
}
94+
95+
.row .sectionbody > hr {
96+
margin: 0;
97+
}
98+
6499
.ds-grid .sectionbody > *,
65-
.ds-grid > .content {
100+
.ds-grid > .content,
101+
.grid .sectionbody > *,
102+
.grid > .content {
66103
display: grid;
67104
}
68105

69-
.ds-column > p {
106+
.ds-column > p,
107+
.column > p {
70108
display: flex;
71109
flex-direction: column;
72110
justify-items: space-around;
73111
}
74112

75113
@media screen and (min-width: 1200px) {
76114
.ds-row > p,
77-
.ds-row .sectionbody {
115+
.ds-row .sectionbody,
116+
.row > p,
117+
.row .sectionbody {
78118
flex-direction: row;
79119
}
80120
}
@@ -84,7 +124,8 @@ html[data-layout="landing"] .text-h1 h2 {
84124
padding: 0;
85125
}
86126

87-
.ds-row.explore .sectionbody .sect2 > *:not(.landing-card-icon) {
127+
.ds-row.explore .sectionbody .sect2 > *:not(.landing-card-icon),
128+
.row.explore .sectionbody .sect2 > *:not(.landing-card-icon) {
88129
margin-top: var(--ds-space-2);
89130
}
90131

@@ -100,6 +141,10 @@ html[data-layout="landing"] .text-h1 h2 {
100141
grid-row-start: 1;
101142
}
102143

144+
.doc .landing-card-icon > * {
145+
line-height: 1;
146+
}
147+
103148
html[data-theme="dark"] .doc .landing-card-icon {
104149
color: var(--heading-font-color);
105150
}
@@ -260,3 +305,5 @@ html[data-theme="dark"] .doc .landing-card-icon {
260305
html[data-theme="dark"] .doc .admonitionblock .icon::before {
261306
color: var(--ds-primary-text);
262307
}
308+
309+
/* border */

src/css/vars.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
--heading-font-color: var(--ds-text-primary);
6565
--heading-font-weight: normal;
6666
--alt-heading-font-weight: var(--body-font-weight-bold);
67-
--section-divider-color: var(--panel-border-color);
67+
--section-divider-color: var(--ds-divider);
6868
--link-font-color: var(--ds-primary-main);
6969
--link_hover-font-color: var(--ds-primary-main);
7070
--link_unresolved-font-color: var(--important-color);

src/layouts/full.hbs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en" data-layout="full">
3+
<head>
4+
{{> head defaultPageTitle='Untitled'}}
5+
</head>
6+
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
7+
{{> header}}
8+
{{> body}}
9+
{{> intercom}}
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)