From ea7f38498cf77b57cf5e717ae33d4ffe0b4054f9 Mon Sep 17 00:00:00 2001 From: Reinier Klarenberg Date: Wed, 12 Jun 2024 23:53:19 +0200 Subject: [PATCH] improve responsive design --- src/app/pages/guide/[slug].page.ts | 2 +- src/app/pages/guide/index.page.ts | 4 ++-- src/app/pages/news/[slug].page.ts | 2 +- src/app/pages/news/index.page.ts | 4 ++-- src/styles.css | 5 ++++- 5 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/pages/guide/[slug].page.ts b/src/app/pages/guide/[slug].page.ts index 204f2c12..8df44ccd 100644 --- a/src/app/pages/guide/[slug].page.ts +++ b/src/app/pages/guide/[slug].page.ts @@ -11,7 +11,7 @@ import PostAttributes from '../../post-attributes'; template: ` @if (post | async; as post) {
-

+

@if(post.attributes.type !== undefined){ Guides > } diff --git a/src/app/pages/guide/index.page.ts b/src/app/pages/guide/index.page.ts index d7bc7be9..fe4f7b62 100644 --- a/src/app/pages/guide/index.page.ts +++ b/src/app/pages/guide/index.page.ts @@ -17,10 +17,10 @@ import { CommonModule } from '@angular/common';
-

{{ post.attributes.title }}

+

{{ post.attributes.title }}

-

{{ post.attributes.description }}

+

{{ post.attributes.description }}

diff --git a/src/app/pages/news/[slug].page.ts b/src/app/pages/news/[slug].page.ts index 7f36e2ed..1376ea4e 100644 --- a/src/app/pages/news/[slug].page.ts +++ b/src/app/pages/news/[slug].page.ts @@ -11,7 +11,7 @@ import PostAttributes from '../../post-attributes'; template: ` @if (post | async; as post) {
-

+

News > {{post.attributes.title}}

diff --git a/src/app/pages/news/index.page.ts b/src/app/pages/news/index.page.ts index bb0db8e6..0c142a16 100644 --- a/src/app/pages/news/index.page.ts +++ b/src/app/pages/news/index.page.ts @@ -16,11 +16,11 @@ import { CommonModule } from '@angular/common';
-

{{ post.attributes.title }}

+

{{ post.attributes.title }}

{{post.attributes.date | date:'longDate'}}

-

{{ post.attributes.description }}

+

{{ post.attributes.description }}

diff --git a/src/styles.css b/src/styles.css index 088fad0c..a9309698 100644 --- a/src/styles.css +++ b/src/styles.css @@ -33,7 +33,8 @@ @apply select-none; >h1 { - font-size: x-large; + font-size: large; + @apply md:text-xl; font-weight: 700; margin-bottom: -0.8em; @apply rounded-tl-xl; @@ -44,6 +45,8 @@ } >h2 { + font-size: medium; + @apply md:text-lg; font-size: large; font-weight: 600; margin-bottom: -1em;