Skip to content

Commit b918942

Browse files
committed
Improve home stats for small devices
Signed-off-by: Cintia Sánchez García <[email protected]>
1 parent 6ed7993 commit b918942

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

ocg-server/static/js/community/explore/map.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ export class Map {
5959
this.map.remove();
6060
});
6161

62-
// Setting the position of the map: lat/long and zoom level
63-
// TODO - Get the user's location and set the map to that location
62+
// Center map view
6463
this.map.setView([0, 0], 0);
6564

6665
// Adding the base layer to the map

ocg-server/templates/community/home/stats.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{# Stats -#}
2-
<div class="flex flex-col justify-around items-center border rounded-lg p-10 mt-8 sm:mt-16 sm:mb-6 md:flex-row">
2+
<div class="w-3/4 flex flex-col justify-around items-center border rounded-lg p-6 mt-8 mx-auto sm:mt-16 sm:mb-6 lg:p-10 md:flex-row md:w-full">
33
{# Group stats -#}
44
{% call stat_block(kind = "groups", title = "Groups", value = groups) %}
55
{# End group stats -#}
66

7-
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 lg:hidden"></div>
8-
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 lg:inline-block"></div>
7+
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 my-5 md:hidden"></div>
8+
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 md:inline-block"></div>
99

1010
{# Members stats -#}
1111
{% call stat_block(kind = "members", title = "Members", value = groups_members) %}
1212
{# End members stats -#}
1313

14-
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 lg:hidden"></div>
15-
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 lg:inline-block"></div>
14+
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 my-5 md:hidden"></div>
15+
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 md:inline-block"></div>
1616

1717
{# Events stats -#}
1818
{% call stat_block(kind = "events", title = "Events", value = events) %}
1919
{# End events stats -#}
2020

21-
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 lg:hidden"></div>
22-
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 lg:inline-block"></div>
21+
<div class="block w-[50px] min-w-[1em] h-0.5 align-center bg-neutral-200 my-5 md:hidden"></div>
22+
<div class="hidden h-[50px] min-h-[1em] w-0.5 self-stretch bg-neutral-200 md:inline-block"></div>
2323

2424
{# Attendees stats -#}
2525
{% call stat_block(kind = "attendees", title = "Attendees", value = events_attendees) %}
@@ -43,7 +43,7 @@
4343
{# End title -#}
4444

4545
{# Value -#}
46-
<div class="text-4xl font-semibold text-gray-900">{{ *value|num_fmt }}</div>
46+
<div class="text-2xl font-semibold text-gray-900 lg:text-4xl">{{ *value|num_fmt }}</div>
4747
{# End value -#}
4848
</div>
4949
</div>

0 commit comments

Comments
 (0)