Skip to content

Commit e1e1f38

Browse files
lidiazuinrecrwplay
andauthored
New GSG and GA banners and fixes (#265)
Co-authored-by: Neil Dewhurst <[email protected]>
1 parent 1e5a4fe commit e1e1f38

File tree

8 files changed

+18428
-12455
lines changed

8 files changed

+18428
-12455
lines changed

package-lock.json

Lines changed: 17780 additions & 12432 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

preview-src/docs-ndl.adoc

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,27 @@
66
:!toc:
77
:page-toclevels: -1
88

9+
10+
[.widget.banner.start]
11+
== Getting started
12+
13+
// [.icon]
14+
// image:icons/ndl/start.svg[]
15+
16+
--
17+
[.caption]
18+
Get started with Neo4j
19+
20+
[.description]
21+
Learn more about graph databases and start working with your data using Neo4j tools.
22+
23+
[.button]
24+
xref:tutorials:index.adoc[Get started]
25+
--
26+
927
[.cards.icon-l]
1028
== CTA cards
1129

12-
1330
[.featured.label--featured]
1431
=== Deployment options
1532

@@ -19,10 +36,6 @@ image:icons/ndl/deployment-options.svg[]
1936
[.description]
2037
Choose from self-managed local and cloud deployments, or fully-managed options. See how to run Neo4j on Docker or Kubernetes.
2138

22-
[.link]
23-
xref:deployment-options:index.adoc[Create your database]
24-
25-
2639
=== Cypher
2740

2841
[.icon]
@@ -163,18 +176,31 @@ Tutorials & How-to guides
163176
xref:tutorials:index.adoc[All tutorials]
164177
--
165178

179+
[.widget.highlights]
180+
== GraphAcademy courses
166181

167-
[.cards.icon-s.align-center]
168-
== Other resources
182+
[.icon]
183+
image:icons/ndl/ga-home.svg[]
184+
185+
--
186+
[.caption]
187+
GraphAcademy courses
169188

189+
[.list]
190+
* link:{docs-home}/genai/tutorials/embeddings-vector-indexes/[Embedding & Vector Indexes Tutorial]
191+
* xref:{docs-home}/getting-started/tutorials/import-relational/[Import data from a relational database into Neo4j]
192+
* xref:{docs-home}/getting-started/tutorials/recommendation-engine/[Build a Cypher recommendation engine]
193+
* link:{docs-home}/operations-manual/current/tutorial/tutorial-composite-database/[Set up and use a composite database]
194+
* link:{docs-home}/cdc/current/procedures/query-examples/[Capture and track changes in real-time]
195+
* link:{docs-home}/graph-data-science-client/current/tutorials/centrality-algorithms/[Apply centrality algorithms to your graph]
170196

171-
=== Learn and become Neo4j certified
197+
[.footer-link]
198+
xref:tutorials:index.adoc[All tutorials]
199+
--
172200

173-
[.icon]
174-
image:icons/ndl/icon-graphacademy.svg[]
175201

176-
[.link]
177-
link:https://graphacademy.neo4j.com/?ref=docs-nav[Explore GraphAcademy]
202+
[.cards.icon-s.align-center]
203+
== Other resources
178204

179205
=== Join forums and discussions
180206

@@ -185,7 +211,7 @@ image:icons/ndl/icon-community.svg[]
185211
link:https://community.neo4j.com/[Community forum]
186212
link:https://discord.com/invite/neo4j[Discord]
187213

188-
=== Developer blogs, articles and books
214+
=== Dev blogs, articles, and books
189215

190216
[.icon]
191217
image:icons/ndl/icon-developercenter.svg[]

preview-src/icons/ndl/ga-home.svg

Lines changed: 373 additions & 0 deletions
Loading

preview-src/icons/ndl/start.svg

Lines changed: 5 additions & 0 deletions
Loading

src/css/docs-ndl.css

Lines changed: 154 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,25 @@ body.docs-ndl .widget .sectionbody {
208208
border: none;
209209
padding: 1rem;
210210
row-gap: 0;
211+
column-gap: 2rem;
212+
}
213+
214+
body.docs-ndl .widget.banner .sectionbody {
215+
background: rgba(var(--colors-baltic-60));
216+
background-repeat: no-repeat;
217+
background-position: right;
218+
background-size: contain;
219+
border-radius: 1rem;
220+
border: none;
221+
padding: 2rem;
222+
row-gap: 0;
211223
column-gap: 0;
212224
}
213225

226+
body.docs-ndl .widget.banner.start .sectionbody {
227+
background-image: url(../img/start.svg);
228+
}
229+
214230
body.docs-ndl.sub .widget .sectionbody {
215231
background: transparent;
216232
padding: 0;
@@ -219,6 +235,14 @@ body.docs-ndl.sub .widget .sectionbody {
219235
column-gap: 1rem;
220236
}
221237

238+
body.docs-ndl.sub .widget.banner .sectionbody {
239+
background: transparent;
240+
padding: 0;
241+
justify-content: flex-start;
242+
row-gap: 1rem;
243+
column-gap: 1rem;
244+
}
245+
222246
body.docs-ndl.sub .widget .sectionbody .sect2 {
223247
border-radius: 1rem;
224248
flex: 0 0 32%;
@@ -356,26 +380,39 @@ body.docs-ndl.explainer .sect1 {
356380
flex-wrap: wrap;
357381
}
358382

359-
body.docs-ndl .paragraph.caption,
360-
body.docs-ndl .paragraph.footer-link {
383+
body.docs-ndl .paragraph.caption {
361384
display: flex;
362385
width: 100%;
363386
padding: 1rem;
364387
margin: 0;
365388
color: var(--neutral-color);
366-
}
367-
368-
body.docs-ndl .paragraph.caption {
369389
font-family: var(--header-font-family);
370390
font-size: var(--doc-font-size-h2);
371391
font-weight: var(--font-weight-normal);
372392
}
373393

374394
body.docs-ndl .paragraph.footer-link {
395+
display: flex;
396+
width: 100%;
397+
padding: 0;
398+
margin: 0;
399+
color: var(--neutral-color);
375400
justify-content: flex-end;
376401
padding-right: 0;
377402
}
378403

404+
body.docs-ndl .banner .paragraph {
405+
display: flex;
406+
width: 100%;
407+
padding: 0;
408+
margin: 1rem;
409+
color: var(--color-white);
410+
}
411+
412+
body.docs-ndl .banner .paragraph.description {
413+
padding-right: 2rem;
414+
}
415+
379416
/* selectable cards */
380417

381418
body.docs-ndl .cards .sect2.selectable {
@@ -396,15 +433,81 @@ body.docs-ndl .cards .sect2.selectable:hover div.description {
396433
text-decoration: underline;
397434
}
398435

436+
/* banner */
437+
438+
body.docs-ndl.hub .banner .sectionbody,
439+
body.docs-ndl.explainer .banner .sectionbody {
440+
justify-content: space-between;
441+
}
442+
443+
body.docs-ndl .banner .sectionbody > div.openblock {
444+
flex: 0 0 50%;
445+
}
446+
447+
body.docs-ndl .banner .sectionbody > div.icon {
448+
flex: 0 0 40%;
449+
padding: 0;
450+
object-fit: cover;
451+
border-radius: 0.25rem;
452+
margin-bottom: 0;
453+
}
454+
455+
body.docs-ndl .banner .icon img {
456+
height: 100%;
457+
padding: 0;
458+
margin: 0;
459+
}
460+
461+
body.docs-ndl .banner .button {
462+
border-radius: 0.25rem;
463+
padding: 0.5em 1.5em;
464+
font-weight: 400;
465+
text-align: center;
466+
/* margin-left: 24px; */
467+
}
468+
469+
@media screen and (max-width: 1240px) {
470+
body.docs-ndl .widget.banner .sectionbody {
471+
background-image: none !important;
472+
}
473+
474+
body.docs-ndl .widget.banner .sectionbody > div.openblock {
475+
flex: 0 0 100%;
476+
}
477+
}
478+
479+
@media screen and (min-width: 1024px) {
480+
.banner .banner-item.button-cta {
481+
padding-right: 0 1rem 0;
482+
}
483+
}
484+
485+
.banner .button:hover {
486+
background: rgba(var(--banner-background-color));
487+
color: var(--colors-baltic-25);
488+
}
489+
490+
.description2 {
491+
color: var(--color-white);
492+
font-size: var(--doc-font-size--desktop);
493+
line-height: var(--doc-line-height);
494+
margin: var(--doc-margin);
495+
max-width: var(--doc-max-width);
496+
padding: 12px 24px 12px;
497+
}
498+
399499
/* highlights */
400500

401501
body.docs-ndl .highlights .sectionbody > div.openblock {
402-
flex: 0 1 40%;
502+
flex: 1 1 40%;
403503
}
404504

405505
body.docs-ndl .highlights .sectionbody > div.icon {
406-
flex: 0 1 60%;
407-
padding: 0 6rem;
506+
flex: 0 1 52%;
507+
padding-top: 1rem;
508+
padding-bottom: 1rem;
509+
padding-left: 4rem;
510+
padding-right: 5.438rem;
408511
align-self: center;
409512
}
410513

@@ -421,6 +524,16 @@ body.docs-ndl .highlights .list ul li {
421524
padding-bottom: 0.5rem;
422525
}
423526

527+
body.docs-ndl .highlights .list2 {
528+
padding: 0;
529+
}
530+
531+
body.docs-ndl .highlights .list2 ul li {
532+
border-bottom: 1px solid rgba(var(--colors-neutral-20));
533+
padding-bottom: 0.5rem;
534+
list-style-type: none;
535+
}
536+
424537
body.docs-ndl .widget.highlights .footer-link {
425538
text-align: end;
426539
}
@@ -440,7 +553,7 @@ body.docs-ndl .widget.highlights .icon img {
440553
/* lists */
441554

442555
body.docs-ndl .lists .sectionbody > div.sect2 {
443-
flex: 0 0 25%;
556+
flex: 0 0 22%;
444557
}
445558

446559
body.docs-ndl .widget .sectionbody > div.sect2 .ulist {
@@ -576,6 +689,13 @@ body.docs-ndl .sect2 a > h3 {
576689

577690
body.docs-ndl .cards .sect2 .icon,
578691
body.docs-ndl .widget .icon {
692+
padding: 0;
693+
margin: 0;
694+
width: 100%;
695+
}
696+
697+
body.docs-ndl .cards .sect2 .icon,
698+
body.docs-ndl .widget.banner .icon {
579699
order: 1;
580700
padding: 0;
581701
margin: 0;
@@ -603,7 +723,22 @@ body.docs-ndl .widget.highlights .icon {
603723
padding: 2rem;
604724
}
605725

606-
body.docs-ndl .cards .sect2 .icon img {
726+
/* For the 1st, 3rd etc highlights, move the image to the right */
727+
body.docs-ndl .widget.highlights:nth-of-type(odd) .icon {
728+
order: 1;
729+
}
730+
731+
/* We can use this rule to apply styles to the 2nd, 4th highlights etc widget */
732+
body.docs-ndl .widget.highlights:nth-of-type(even) .openblock {
733+
/* margin-right:40px; */
734+
}
735+
736+
/* For the bottom cards */
737+
body.docs-ndl .cards:nth-last-child(-n+2) .sectionbody {
738+
flex: 0 0 152%;
739+
}
740+
741+
body.docs-ndl body.docs-ndl .cards .sect2 .icon img {
607742
width: 4rem;
608743
height: 4rem;
609744
padding: 0;
@@ -758,6 +893,15 @@ body.docs-ndl .cards .sect2 .ulist ul li {
758893
justify-content: center;
759894
}
760895

896+
body.docs-ndl .widget.banner .sectionbody {
897+
row-gap: 2rem;
898+
}
899+
900+
/* body.docs-ndl .widget.banner .sectionbody > div {
901+
flex: 0 1 100%;
902+
justify-content: center;
903+
} */
904+
761905
body.docs-ndl .lists ul {
762906
/* text-align: center; */
763907
}

0 commit comments

Comments
 (0)