Put map in container

This commit is contained in:
samaradel
2021-07-12 11:40:48 +00:00
parent af3a47999c
commit d5d47cf8e2
2 changed files with 85 additions and 31 deletions

View File

@@ -1,8 +1,18 @@
<template> <template>
<section class="px-2"> <section class="px-2">
<div class="flex flex-wrap blue p-12 text-center lg:text-left -mx-2"> <div class="flex blue flex-wrap p-12 text-center lg:text-left -mx-2">
<div <div
class="lg:w-1/4 light-blue text-center rounded-lg py-10 mt-10 lg:mt-0 order-1 lg:order-none" class="
lg:w-1/4
light-blue
text-center
rounded-lg
py-10
mt-10
lg:mt-0
order-1
lg:order-none
"
> >
<div class="relative max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="relative max-w-screen-xl mx-auto px-4 sm:px-6 lg:px-8">
<dl class=""> <dl class="">
@@ -19,10 +29,7 @@
> >
{{ value }} {{ value }}
</dd> </dd>
<dt <dt class="mt-2 leading-6 text-white uppercase" id="item-1">
class="mt-2 text-lg leading-6 font-medium text-white uppercase"
id="item-1"
>
{{ key }} {{ key }}
</dt> </dt>
</div> </div>
@@ -31,10 +38,25 @@
</div> </div>
</div> </div>
<div <div
class="lg:w-3/4 text-center rounded lg:px-6 mt-10 lg:mt-0 order-1 lg:order-none" class="
lg:w-3/4
text-center
rounded
lg:px-6
mt-10
lg:mt-0
order-1
lg:order-none
"
> >
<h2 <h2
class="text-4xl text-white leading-tight mb-6 font-bold font-heading uppercase" class="
text-4xl text-white
leading-tight
mb-6
font-bold font-heading
uppercase
"
> >
{{ section.title }} {{ section.title }}
</h2> </h2>
@@ -46,17 +68,59 @@
/> />
<div class="mx-auto mt-6"> <div class="mx-auto mt-6">
<g-link <g-link
class="inline-block green text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="
inline-block
green
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
mb-4
rounded
shadow
rounded-full
"
:to="section.link1" :to="section.link1"
>{{ section.btn1 }} >{{ section.btn1 }}
</g-link> </g-link>
<g-link <g-link
class="inline-block green text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="
inline-block
green
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
mb-4
rounded
shadow
rounded-full
"
:to="section.link2" :to="section.link2"
>{{ section.btn2 }}</g-link >{{ section.btn2 }}</g-link
> >
<g-link <g-link
class="inline-block green text-sm learn-button hover:bg-blue-800 text-gray-100 px-12 py-2 mr-5 mb-4 rounded shadow rounded-full" class="
inline-block
green
text-sm
learn-button
hover:bg-blue-800
text-gray-100
px-12
py-2
mr-5
mb-4
rounded
shadow
rounded-full
"
:to="section.link3" :to="section.link3"
>{{ section.btn3 }}</g-link >{{ section.btn3 }}</g-link
> >
@@ -94,7 +158,7 @@ export default {
); );
let farms = getFarms.data.length; let farms = getFarms.data.length;
let hru = (results.data.hru / 1000).toFixed(); let hru = (results.data.hru / 1000).toFixed();
let cru = (results.data.cru ).toFixed(); let cru = results.data.cru.toFixed();
this.stats.push( this.stats.push(
{ farms: farms }, { farms: farms },
{ "Storage TB": hru }, { "Storage TB": hru },
@@ -117,28 +181,19 @@ export default {
} }
dd { dd {
height: 120; height: 100px;
width: 120px; width: 100px;
margin: auto; margin: auto;
border-radius: 50%; border-radius: 50%;
line-height: 120px; line-height: 100px;
border: 3px solid #847fc2; border: 3px solid #847fc2;
background-color: #313f92; background-color: #313f92;
color: #dacef5; color: #dacef5;
font-size: 2rem; font-size: 1.5rem;
} }
.green { .green {
background-color: #92f5d9; background-color: #92f5d9;
color: #313f92; color: #313f92;
} }
@media only screen and (min-width: 1800px) {
dd {
height: 180px;
width: 180px;
line-height: 180px;
font-size: 3rem;
}
}
</style> </style>

View File

@@ -13,14 +13,13 @@
/> />
<VideoPanel :card="$page.markdownPage.videoPanel" /> <VideoPanel :card="$page.markdownPage.videoPanel" />
</div>
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
<Map <Map
v-if="$page.markdownPage.stats" v-if="$page.markdownPage.stats"
:section="$page.markdownPage.stats" :section="$page.markdownPage.stats"
/> />
</div>
<div class="container sm:pxi-0 mx-auto overflow-x-hidden py-5">
<Features <Features
:id="$page.markdownPage.id" :id="$page.markdownPage.id"
:main="$page.markdownPage.featuresMain2" :main="$page.markdownPage.featuresMain2"