Skip to content

Commit 3fb99b1

Browse files
committed
refactor: update layout of community, events, and podcasts pages for improved responsiveness
1 parent 0b2bf19 commit 3fb99b1

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/app/pages/communities-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ export const routeMeta = {
1919
@Component({
2020
imports: [CommunityCard, FormsModule],
2121
template: `
22-
<section class="max-w-screen-xl mx-auto px-6 lg:px-0">
22+
<section class="max-w-screen-xl mx-auto px-6">
2323
<input
2424
class="w-full p-2 rounded-lg border-2 border-gray-300"
2525
type="search"
2626
placeholder="Search communities"
2727
[(ngModel)]="search"
2828
/>
29-
<ul class="grid grid-cols-1 lg:grid-cols-3 gap-6 mt-6">
29+
<ul class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 mt-6">
3030
@for (community of filteredCommunities(); track community) {
3131
<li>
3232
<app-community-card class="h-full" [community]="community" />

src/app/pages/events-page.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export const routeMeta = {
4343

4444
@Component({
4545
template: `
46-
<section class="max-w-screen-xl w-full mx-auto px-6 lg:px-0">
46+
<section class="max-w-screen-xl w-full mx-auto px-6">
4747
<input
4848
class="w-full p-2 rounded-lg border-2 border-gray-300"
4949
type="search"
5050
placeholder="Search events"
5151
[(ngModel)]="search"
5252
/>
53-
<ul class="grid grid-cols-1 lg:grid-cols-3 gap-6 mt-6">
53+
<ul class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 mt-6">
5454
@for (event of filteredEvents(); track event) {
5555
<li>
5656
<app-event-card [event]="event" />
@@ -59,9 +59,7 @@ export const routeMeta = {
5959
</ul>
6060
6161
<!-- Show message when search has no results -->
62-
@if (
63-
search().length && !filteredEvents().length && events().length > 0
64-
) {
62+
@if (search().length && !filteredEvents().length && events().length > 0) {
6563
<app-empty-search-message
6664
[title]="'No events found'"
6765
[description]="

src/app/pages/podcasts-page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const routeMeta = {
2222
@Component({
2323
imports: [PodcastCard, FormsModule],
2424
template: `
25-
<section class="max-w-screen-xl w-full mx-auto px-6 lg:px-0">
26-
<ul class="grid grid-cols-1 lg:grid-cols-3 gap-6 mt-6">
25+
<section class="max-w-screen-xl w-full mx-auto px-6">
26+
<ul class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 mt-6">
2727
@for (podcast of podcasts(); track podcast.name) {
2828
<li>
2929
<app-podcast-card [podcast]="podcast" />

0 commit comments

Comments
 (0)