Skip to content

Commit 193e7bb

Browse files
docs: add playground button
1 parent 656cdb3 commit 193e7bb

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

docs/docs/css/hero.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,67 @@ body:has(.hero-section) article > h1:first-child {
417417
height: 16px;
418418
}
419419

420+
/* Demo button - secondary style with gradient glow */
421+
.hero-demo-button {
422+
width: 100%;
423+
max-width: 300px;
424+
justify-content: center;
425+
position: relative;
426+
overflow: hidden;
427+
background: transparent !important;
428+
color: #e9a033 !important;
429+
border: 2px solid #e9a033 !important;
430+
isolation: isolate;
431+
transition: all 0.3s ease;
432+
}
433+
434+
.hero-demo-button::before {
435+
content: '';
436+
position: absolute;
437+
top: 0;
438+
left: -100%;
439+
width: 100%;
440+
height: 100%;
441+
background: linear-gradient(90deg, #e9a033, #f0b85a);
442+
transition: left 0.4s ease;
443+
z-index: -1;
444+
}
445+
446+
.hero-demo-button:hover::before {
447+
left: 0;
448+
}
449+
450+
.hero-demo-button:hover {
451+
color: #04233b !important;
452+
border-color: #e9a033 !important;
453+
box-shadow: 0 0 20px rgba(233, 160, 51, 0.4);
454+
}
455+
456+
.hero-demo-button svg {
457+
fill: currentColor;
458+
stroke: none;
459+
transition: transform 0.3s ease;
460+
}
461+
462+
.hero-demo-button:hover svg {
463+
transform: scale(1.2);
464+
}
465+
466+
[data-md-color-scheme="default"] .hero-demo-button {
467+
color: #1B365D !important;
468+
border-color: #1B365D !important;
469+
}
470+
471+
[data-md-color-scheme="default"] .hero-demo-button::before {
472+
background: linear-gradient(90deg, #1B365D, #2a4a7a);
473+
}
474+
475+
[data-md-color-scheme="default"] .hero-demo-button:hover {
476+
color: #ffffff !important;
477+
border-color: #1B365D !important;
478+
box-shadow: 0 0 20px rgba(27, 54, 93, 0.3);
479+
}
480+
420481
/* Hero socials */
421482
.hero-text .hero-socials,
422483
.hero-socials {

docs/docs/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ hide:
2323
<polyline points="12 5 19 12 12 19"></polyline>
2424
</svg>
2525
</a>
26+
<a href="https://pylab.rayforcedb.com" target="_blank" class="md-button hero-demo-button">
27+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
28+
<polygon points="5 3 19 12 5 21 5 3"></polygon>
29+
</svg>
30+
Try in Browser
31+
</a>
2632
</div>
2733

2834
<div class="hero-socials scroll-fade-in">

0 commit comments

Comments
 (0)