Landing page (#353)

* Landing page

* Change legal corp name, remove google from privacy policy, other fixes
This commit is contained in:
Geometrically
2022-02-16 17:39:48 -07:00
committed by GitHub
parent e91b0500c5
commit 51a9a7b75d
22 changed files with 535 additions and 187 deletions

View File

@@ -70,12 +70,13 @@ export default {
z-index: 20;
position: fixed;
bottom: 0;
bottom: 4rem;
right: 0;
.banner {
padding: 1rem;
font-size: 1.05rem;
border-radius: 0;
margin-bottom: 0;
}
.actions {
display: flex;
@@ -88,6 +89,14 @@ export default {
}
}
@media screen and (min-width: 750px) {
bottom: 0;
.banner {
margin-bottom: 0;
}
}
@media screen and (min-width: 1024px) {
width: unset;
text-align: unset;

View File

@@ -69,7 +69,7 @@
<div v-if="downloads" class="stat">
<DownloadIcon aria-hidden="true" />
<p>
<strong>{{ formatNumber(downloads) }}</strong> download<span
<strong>{{ $formatNumber(downloads) }}</strong> download<span
v-if="downloads !== '1'"
>s</span
>
@@ -78,7 +78,7 @@
<div v-if="follows" class="stat">
<HeartIcon aria-hidden="true" />
<p>
<strong>{{ formatNumber(follows) }}</strong> follower<span
<strong>{{ $formatNumber(follows) }}</strong> follower<span
v-if="follows !== '1'"
>s</span
>
@@ -197,18 +197,6 @@ export default {
default: '',
},
},
methods: {
formatNumber(y) {
const x = +y
if (x >= 1000000) {
return (x / 1000000).toFixed(2).toString() + 'M'
} else if (x >= 10000) {
return (x / 1000).toFixed(1).toString() + 'K'
} else {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
}
},
},
}
</script>
@@ -315,7 +303,7 @@ export default {
}
.right-side {
min-width: 8.75rem;
min-width: 12rem;
text-align: right;
.stat {