Skip to content

Commit d5d1937

Browse files
committed
feat: center vcluster logo and add algolia search
1 parent 1ff3587 commit d5d1937

File tree

1 file changed

+34
-6
lines changed

1 file changed

+34
-6
lines changed

docs/index.mdx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,46 @@ custom_edit_url: null
1212
import Link from '@docusaurus/Link';
1313
import Tabs from '@theme/Tabs';
1414
import TabItem from '@theme/TabItem';
15+
import SearchBar from '@theme/SearchBar';
1516

16-
<div className="intro-card">
17-
<div style={{marginBottom: '1.5rem', display: 'flex', alignItems: 'center'}}>
18-
<img src="/docs/media/rebranding/vCluster_horizontal-orange.svg" alt="vCluster" style={{height: '40px'}} />
19-
</div>
20-
<div style={{fontSize: '1.1rem', lineHeight: '1.6', marginBottom: '1.5rem'}}>
17+
{/* Centered Hero Section */}
18+
<div style={{textAlign: 'center', maxWidth: '900px', margin: '0 auto 4rem', padding: '2rem 1rem'}}>
19+
<img src="/docs/media/rebranding/vCluster_horizontal-orange.svg" alt="vCluster" style={{height: '70px', marginBottom: '1.5rem'}} />
20+
<p style={{fontSize: '1.15rem', lineHeight: '1.6', marginBottom: '2.5rem', color: 'var(--ifm-color-content-secondary)'}}>
2121
vCluster is an open-source solution that enables teams to run virtual Kubernetes clusters inside existing infrastructure. These virtual clusters are Certified Kubernetes Distributions that provide strong workload isolation while running as nested environments on top of another Kubernetes cluster.
22+
</p>
23+
24+
{/* Algolia Search Box */}
25+
<div className="hero-search-wrapper" style={{maxWidth: '700px', margin: '0 auto'}}>
26+
<SearchBar />
2227
</div>
23-
<a href="/docs/vcluster/" className="button button--primary" style={{textDecoration: 'none', padding: '0.75rem 1.25rem', fontSize: '1.05rem'}}>Get started →</a>
2428
</div>
2529

2630
<style dangerouslySetInnerHTML={{__html: `
31+
/* Hero search box styling */
32+
.hero-search-wrapper .DocSearch-Button {
33+
width: 100%;
34+
background-color: var(--ifm-background-color) !important;
35+
border: 2px solid var(--ifm-color-emphasis-300) !important;
36+
border-radius: 12px !important;
37+
height: 56px !important;
38+
padding: 0 1.5rem !important;
39+
}
40+
.hero-search-wrapper .DocSearch-Button:hover {
41+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
42+
}
43+
44+
/* Position DocSearch modal lower on the page */
45+
.DocSearch-Modal {
46+
top: 250px !important;
47+
max-height: calc(100vh - 260px) !important;
48+
}
49+
50+
/* Adjust backdrop to start from below header */
51+
.DocSearch-Container {
52+
padding-top: 250px !important;
53+
}
54+
2755
.intro-card {
2856
border: 1px solid #d9d9d9 !important;
2957
border-radius: 8px !important;

0 commit comments

Comments
 (0)