Skip to content

Commit 03fb032

Browse files
committed
fix(pages): change css style for the contributors page
1 parent 85e93e7 commit 03fb032

File tree

1 file changed

+29
-37
lines changed

1 file changed

+29
-37
lines changed

pages/contributors/index.vue

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
<template>
22
<div class="page-container">
33
<Hero title="Contributors" />
4-
<LastUpdated />
5-
<div class="area-chart-section">
6-
<div class="chart-header">
7-
<div class="divider-black"></div>
8-
<div class="flex-container">
9-
<h2 class="pb-3 lg:pb-0">Total Users in Jordan</h2>
10-
<ChartsPeriodDropdown
11-
class="justify-self-end"
12-
@on-chart-period-changed="onChartPeriodChanged"
13-
/>
4+
<div class="px-8 md:px-14 lg:px-24">
5+
<LastUpdated />
6+
<div class="area-chart-section">
7+
<div class="chart-header">
8+
<div class="divider"></div>
9+
<div class="flex-container">
10+
<h2 class="pb-3 lg:pb-0">Total Users in Jordan</h2>
11+
<label class="hidden" for="chartsPeriod">Period</label>
12+
<ChartsPeriodDropdown
13+
class="justify-self-end"
14+
name="chartsPeriod"
15+
@on-chart-period-changed="onChartPeriodChanged"
16+
/>
17+
</div>
1418
</div>
19+
<AreaChart class="area-chart" :chart-options="areaChartData" />
1520
</div>
16-
<AreaChart class="area-chart" :chart-options="areaChartData" />
17-
</div>
18-
<div class="bar-chart-section">
19-
<div class="bar-chart-header">
20-
<div class="divider-black"></div>
21-
<div class="flex-container">
22-
<h2 class="pb-3 lg:pb-0">Contributions from Jordan</h2>
21+
<div class="bar-chart-section">
22+
<div class="bar-chart-header">
23+
<div class="divider pb-4"></div>
24+
<div class="flex-container">
25+
<h2 class="pb-3 lg:pb-0">Contributions from Jordan</h2>
26+
</div>
2327
</div>
28+
<BarChart class="bar-chart" :chart-options="barChartData" />
29+
</div>
30+
<div>
31+
<TopDevelopers class="top-developers" />
2432
</div>
25-
<BarChart class="bar-chart" :chart-options="barChartData" />
26-
</div>
27-
<div>
28-
<TopDevelopers class="top-developers" />
2933
</div>
3034
</div>
3135
</template>
@@ -586,37 +590,25 @@ export default {
586590
@apply h-56 md:h-96 lg:h-720;
587591
}
588592
589-
.area-chart-section {
590-
@apply lg:mx-10 2xl:mx-9 mx-3;
591-
}
592-
593-
.bar-chart-section {
594-
@apply lg:mx-10 2xl:mx-9 mx-3;
595-
}
596-
597-
.top-developers {
598-
@apply 2xl:mx-3;
599-
}
600-
601593
.bar-chart-header {
602594
font-family: 'IBM Mono';
603595
font-size: 1.7rem;
604596
line-height: 1em;
605-
@apply font-normal mx-4 pb-4 pt-16 md:pt-24 md:pb-8 md:mx-14 lg:text-4xl lg:font-light lg:px-2 2xl:px-4;
597+
@apply font-normal pb-4 pt-16 md:pt-24 md:pb-8 lg:text-4xl lg:font-light;
606598
}
607599
608600
.chart-header {
609601
font-family: 'IBM Mono';
610602
font-size: 1.7rem;
611603
line-height: 1em;
612-
@apply font-normal mx-4 pb-4 pt-16 md:pt-24 md:pb-8 md:mx-14 lg:text-4xl lg:font-light lg:px-2 2xl:px-4;
604+
@apply font-normal pb-4 pt-16 md:pt-24 md:pb-8 lg:text-4xl lg:font-light;
613605
}
614606
615607
.flex-container {
616-
@apply items-center md:flex md:justify-between;
608+
@apply items-center md:flex md:justify-between p-0;
617609
}
618610
619-
.divider-black {
611+
.divider {
620612
@apply w-10 lg:w-10 border-t-2 border-black;
621613
}
622614
</style>

0 commit comments

Comments
 (0)