Update hero section heading
Browse files
docs/src/components/HeroSection.astro
CHANGED
|
@@ -1,26 +1,52 @@
|
|
| 1 |
---
|
| 2 |
import Container from "./Container.astro";
|
| 3 |
---
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
<Container>
|
| 6 |
<div class="py-10 md:py-14 lg:py-20 flex justify-start items-center gap-4">
|
| 7 |
<div class="flex-grow" data-hero-text>
|
| 8 |
<h1 data-driver-name class="text-7xl md:text-8xl lg:text-9xl mb-2 md:mb-3 lg:mb-4 font-bold">driver.js</h1>
|
| 9 |
-
<p data-driver-tagline class="text-
|
|
|
|
|
|
|
|
|
|
| 10 |
<div class="mt-4 md:mt-8 lg:mt-10 flex flex-col sm:flex-row gap-2 items-stretch">
|
| 11 |
-
<button
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
| 13 |
</button>
|
| 14 |
-
<a
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
Get Started
|
| 18 |
</a>
|
| 19 |
</div>
|
| 20 |
</div>
|
| 21 |
<div class="flex-shrink-0 hidden sm:flex">
|
| 22 |
-
<img src="/driver.svg" alt="
|
| 23 |
</div>
|
| 24 |
</div>
|
| 25 |
</Container>
|
| 26 |
-
</div>
|
|
|
|
| 1 |
---
|
| 2 |
import Container from "./Container.astro";
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
<div class="bg-white border-b border-gray-100 select-none">
|
| 6 |
+
<Container>
|
| 7 |
+
<div class="flex items-center justify-between h-16">
|
| 8 |
+
<a href="/" class="flex items-center justify-end text-xl font-bold text-gray-900 font-semibold gap-2.5">
|
| 9 |
+
<img src="/favicon.svg" alt="driver.js logo" class="h-10" />
|
| 10 |
+
driver.js
|
| 11 |
+
</a>
|
| 12 |
+
<span class="flex items-center gap-7">
|
| 13 |
+
<a href="/docs/installation" class="hover:underline underline-offset-4 text-lg font-medium text-gray-900">
|
| 14 |
+
<span class="hidden sm:inline">Documentation</span>
|
| 15 |
+
<span class="inline sm:hidden">Docs</span>
|
| 16 |
+
</a>
|
| 17 |
+
<a href="https://github.com/kamranahmedse/driver.js" target="_blank" class="hover:underline underline-offset-4 text-lg font-medium text-gray-900">GitHub</a>
|
| 18 |
+
</span>
|
| 19 |
+
</div>
|
| 20 |
+
</Container>
|
| 21 |
+
</div>
|
| 22 |
+
<div class="bg-yellow-300/80 overflow-hidden via-transparent">
|
| 23 |
<Container>
|
| 24 |
<div class="py-10 md:py-14 lg:py-20 flex justify-start items-center gap-4">
|
| 25 |
<div class="flex-grow" data-hero-text>
|
| 26 |
<h1 data-driver-name class="text-7xl md:text-8xl lg:text-9xl mb-2 md:mb-3 lg:mb-4 font-bold">driver.js</h1>
|
| 27 |
+
<p data-driver-tagline class="text-base md:text-2xl lg:text-3xl !leading-normal">
|
| 28 |
+
Lightweight JavaScript library for product tours, highlights, and contextual help to guide users through your
|
| 29 |
+
product.
|
| 30 |
+
</p>
|
| 31 |
<div class="mt-4 md:mt-8 lg:mt-10 flex flex-col sm:flex-row gap-2 items-stretch">
|
| 32 |
+
<button
|
| 33 |
+
data-demo-tour
|
| 34 |
+
class="bg-black rounded-xl py-2 md:py-3 px-6 font-medium text-white text-lg md:text-xl focus:outline-0 hover:bg-gray-800 focus:bg-gray-800"
|
| 35 |
+
>
|
| 36 |
+
Show Demo
|
| 37 |
</button>
|
| 38 |
+
<a
|
| 39 |
+
href="/docs/installation"
|
| 40 |
+
data-docs-link
|
| 41 |
+
class="bg-white rounded-xl py-2 md:py-3 px-6 font-medium text-black text-lg md:text-xl focus:outline-0 border-2 border-black text-center hover:bg-gray-200 focus:bg-gray-200"
|
| 42 |
+
>
|
| 43 |
Get Started
|
| 44 |
</a>
|
| 45 |
</div>
|
| 46 |
</div>
|
| 47 |
<div class="flex-shrink-0 hidden sm:flex">
|
| 48 |
+
<img src="/driver.svg" alt="driver.js image" class="sm:h-48 md:h-60 lg:h-72" />
|
| 49 |
</div>
|
| 50 |
</div>
|
| 51 |
</Container>
|
| 52 |
+
</div>
|
docs/src/layouts/BaseLayout.astro
CHANGED
|
@@ -62,7 +62,7 @@ const { permalink = '', title = "Driver.js", description = "A light-weight, no-d
|
|
| 62 |
text-align: center;
|
| 63 |
background-color: #000;
|
| 64 |
color: #ffffff;
|
| 65 |
-
border:
|
| 66 |
text-shadow: none;
|
| 67 |
font-size: 14px;
|
| 68 |
padding: 5px 8px;
|
|
@@ -70,7 +70,8 @@ const { permalink = '', title = "Driver.js", description = "A light-weight, no-d
|
|
| 70 |
}
|
| 71 |
|
| 72 |
.driver-popover.driverjs-theme button:focus, .driver-popover.driverjs-theme button:hover {
|
| 73 |
-
background-color: #
|
|
|
|
| 74 |
color: #ffffff;
|
| 75 |
}
|
| 76 |
|
|
|
|
| 62 |
text-align: center;
|
| 63 |
background-color: #000;
|
| 64 |
color: #ffffff;
|
| 65 |
+
border: 1px solid #000;
|
| 66 |
text-shadow: none;
|
| 67 |
font-size: 14px;
|
| 68 |
padding: 5px 8px;
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
.driver-popover.driverjs-theme button:focus, .driver-popover.driverjs-theme button:hover {
|
| 73 |
+
background-color: #000;
|
| 74 |
+
opacity: 0.8;
|
| 75 |
color: #ffffff;
|
| 76 |
}
|
| 77 |
|