fix: minor UI styling

This commit is contained in:
liyasthomas
2021-07-20 15:59:30 +05:30
parent 88ccda8fd1
commit 2ace83bcaf
13 changed files with 110 additions and 129 deletions

View File

@@ -154,13 +154,12 @@ export default {
}
</script>
<style lang="scss" scoped>
<style scoped lang="scss">
.footer-nav {
@apply px-2 py-1;
@apply -mx-2 -my-1;
@apply text-xs;
&:hover,
&:focus {
@apply text-secondaryDark;
}
@apply hover:text-secondaryDark;
@apply focus:text-secondaryDark;
}
</style>

View File

@@ -9,6 +9,26 @@ import TrackballControls from "three-trackballcontrols"
import geojson from "~/assets/geojson/ne_110m_admin_0_countries.geojson"
import texture from "~/assets/images/texture.png"
const COLORS = [
"#f43f5e",
"#ec4899",
"#d946ef",
"#a855f7",
"#8b5cf6",
"#6366f1",
"#3b82f6",
"#0ea5e9",
"#06b6d4",
"#14b8a6",
"#10b981",
"#22c55e",
"#84cc16",
"#eab308",
"#f59e0b",
"#f97316",
"#ef4444",
]
export default {
data() {
return {
@@ -17,18 +37,14 @@ export default {
scene: null,
camera: null,
tbControls: null,
arcsData: [...Array(20).keys()].map(() => ({
startLat: (Math.random() - 0.5) * 180,
startLng: (Math.random() - 0.5) * 360,
endLat: (Math.random() - 0.5) * 180,
arcsData: [...Array(16).keys()].map(() => ({
startLat: (Math.random() - 0.5) * 90,
startLng: (Math.random() - 0.5) * 180,
endLat: (Math.random() - 0.5) * 270,
endLng: (Math.random() - 0.5) * 360,
color: [
["#00acee", "#aceeff", "#00ffac", "#aaef3e"][
Math.round(Math.random() * 3)
],
["#00acee", "#aceeff", "#00ffac", "#aaef3e"][
Math.round(Math.random() * 3)
],
COLORS[Math.round(Math.random() * 16)],
COLORS[Math.round(Math.random() * 16)],
],
})),
}
@@ -47,7 +63,9 @@ export default {
lat,
lng,
color: color[edgeIdx],
text: `${linkIdx} ${edgeIdx ? "tgt" : "src"}`,
text: `#${linkIdx} ${
edgeIdx ? "response" : "request"
} ${Math.random().toString(36).substring(7)}`,
})
)
)

View File

@@ -38,7 +38,7 @@
svg="github"
large
rounded
:shortcuts="['30k']"
:shortcuts="['30k Stars']"
/>
</div>
<LandingStats />