1
1
<template >
2
2
<main class =" home" >
3
- <div class =" theme-default-content" >
3
+ <div class =" home-container theme-default-content" >
4
4
<Content class =" intro" />
5
5
<div class =" grid" >
6
6
<div
@@ -36,7 +36,7 @@ import { isExternal } from '@parent-theme/util/'
36
36
37
37
export default {
38
38
name: ' Home' ,
39
- data : function () {
39
+ data : function () {
40
40
return {
41
41
manualSidebar: [
42
42
{
@@ -95,7 +95,7 @@ export default {
95
95
}
96
96
]
97
97
},
98
- {
98
+ {
99
99
title: ' Build' ,
100
100
path: ' /build' ,
101
101
children: [
@@ -121,27 +121,28 @@ export default {
121
121
},
122
122
{
123
123
title: ' Filecoin community resources' ,
124
- path: ' https://github.com/filecoin-project/docs/wiki#community-resources'
124
+ path:
125
+ ' https://github.com/filecoin-project/docs/wiki#community-resources'
125
126
},
126
127
{
127
128
title: ' Component design system' ,
128
129
path: ' http://filecoin.onrender.com/'
129
130
}
130
131
]
131
132
},
132
- {
133
- title: ' Mine' ,
134
- path: ' /mine' ,
135
- children: [
136
- {
133
+ {
134
+ title: ' Mine' ,
135
+ path: ' /mine' ,
136
+ children: [
137
+ {
137
138
title: ' Mining overview' ,
138
139
path: ' /mine/'
139
140
},
140
- {
141
+ {
141
142
title: ' Improving connectivity' ,
142
143
path: ' /mine/connectivity'
143
144
},
144
- {
145
+ {
145
146
title: ' Space Race' ,
146
147
path: ' /mine/spacerace'
147
148
}
@@ -232,15 +233,21 @@ export default {
232
233
}
233
234
</script >
234
235
236
+ <style lang="stylus">
237
+ .home .header-anchor {
238
+ display : none
239
+ }
240
+ </style >
241
+
235
242
<style lang="stylus" scoped>
236
- .home .theme-default-content :not ( .custom ) {
237
- padding : 2 rem 2.5 rem 6 rem ;
238
- max-width : 740 px ;
239
- background : no-repeat url ( "/images/main-page-background.png" ) ;
240
- background-position : 550 px 34 px ;
241
- background-size : 280 px 336 px ;
243
+ @media ( min-width : $MQNarrow ) {
244
+ .home {$contentClass} :not ( .custom ) {
245
+ background : no-repeat url ( "/images/main-page-background.png" ) ;
246
+ background-position : right 3 rem ;
247
+ background-size : 280 px 336 px ;
248
+ }
242
249
}
243
- .home .theme-default-content :not (.custom ) > h1 :first-child {
250
+ .home {$contentClass} :not (.custom ) > h1 :first-child {
244
251
font-weight : normal ;
245
252
margin : 0 0 3rem ;
246
253
}
0 commit comments