File tree 2 files changed +18
-1
lines changed
src/components/HeroSection
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const HeroSection: React.FC = () => {
26
26
Bringing the power of Graphviz to the TypeScript/JavaScript ecosystem.
27
27
</ Translate >
28
28
</ Heading >
29
+ < div className = { styles . background } />
29
30
< img src = { useBaseUrl ( '/img/logo.png' ) } alt = "ts-graphviz" />
30
31
< p >
31
32
< Translate id = "HeroSection.headline" >
@@ -45,6 +46,8 @@ const HeroSection: React.FC = () => {
45
46
< Link
46
47
className = "button button--secondary button--lg"
47
48
to = "https://ts-graphviz.github.io/ts-graphviz/"
49
+ target = "_blank"
50
+ rel = "noopener noreferrer"
48
51
>
49
52
< Translate id = "HeroSection.api" > API Reference 📖</ Translate > { ' ' }
50
53
</ Link >
Original file line number Diff line number Diff line change 2
2
text-align : center;
3
3
padding : 80px 16px ;
4
4
position : relative;
5
+ }
6
+
7
+ .background {
5
8
background : var (--ifm-color-primary-lighter );
9
+ position : absolute;
10
+ top : 0 ;
11
+ left : 0 ;
12
+ bottom : 0 ;
13
+ right : 0 ;
14
+ padding : 0 ;
15
+ margin : 0 ;
6
16
z-index : -2 ;
7
17
}
8
18
9
- [data-theme = "dark" ] .hero {
19
+ [data-theme = "dark" ] .background {
10
20
background : var (--ifm-color-primary-darker );
11
21
}
22
+ .content {
23
+ z-index : 100 ;
24
+ }
25
+
12
26
.particles {
13
27
position : absolute;
14
28
top : 0 ;
You can’t perform that action at this time.
0 commit comments