Skip to content

Commit 38b97a5

Browse files
committed
lil home refactor to remove anchor
1 parent 97d0f1e commit 38b97a5

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

docs/.vuepress/theme/components/Home.vue

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<main class="home">
3-
<div class="theme-default-content">
3+
<div class="home-container theme-default-content">
44
<Content class="intro" />
55
<div class="grid">
66
<div
@@ -36,7 +36,7 @@ import { isExternal } from '@parent-theme/util/'
3636
3737
export default {
3838
name: 'Home',
39-
data: function() {
39+
data: function () {
4040
return {
4141
manualSidebar: [
4242
{
@@ -95,7 +95,7 @@ export default {
9595
}
9696
]
9797
},
98-
{
98+
{
9999
title: 'Build',
100100
path: '/build',
101101
children: [
@@ -121,27 +121,28 @@ export default {
121121
},
122122
{
123123
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'
125126
},
126127
{
127128
title: 'Component design system',
128129
path: 'http://filecoin.onrender.com/'
129130
}
130131
]
131132
},
132-
{
133-
title: 'Mine',
134-
path: '/mine',
135-
children: [
136-
{
133+
{
134+
title: 'Mine',
135+
path: '/mine',
136+
children: [
137+
{
137138
title: 'Mining overview',
138139
path: '/mine/'
139140
},
140-
{
141+
{
141142
title: 'Improving connectivity',
142143
path: '/mine/connectivity'
143144
},
144-
{
145+
{
145146
title: 'Space Race',
146147
path: '/mine/spacerace'
147148
}
@@ -232,15 +233,21 @@ export default {
232233
}
233234
</script>
234235

236+
<style lang="stylus">
237+
.home .header-anchor {
238+
display: none
239+
}
240+
</style>
241+
235242
<style lang="stylus" scoped>
236-
.home .theme-default-content:not(.custom) {
237-
padding: 2rem 2.5rem 6rem;
238-
max-width: 740px;
239-
background: no-repeat url("/images/main-page-background.png");
240-
background-position: 550px 34px;
241-
background-size: 280px 336px;
243+
@media (min-width: $MQNarrow) {
244+
.home {$contentClass}:not(.custom) {
245+
background: no-repeat url("/images/main-page-background.png");
246+
background-position: right 3rem;
247+
background-size: 280px 336px;
248+
}
242249
}
243-
.home .theme-default-content:not(.custom) > h1:first-child {
250+
.home {$contentClass}:not(.custom) > h1:first-child {
244251
font-weight: normal;
245252
margin: 0 0 3rem;
246253
}

0 commit comments

Comments
 (0)