diff --git a/src/components/AuthorCard/index.astro b/src/components/AuthorCard/index.astro
index a6927c4..b58f9f0 100644
--- a/src/components/AuthorCard/index.astro
+++ b/src/components/AuthorCard/index.astro
@@ -28,9 +28,7 @@ const description = await parseMarkdown(body);
-
- {/* eslint-disable-next-line astro/no-set-html-directive */}
-
-
+ {/* eslint-disable-next-line astro/no-set-html-directive */}
+
diff --git a/src/components/AuthorCard/styles.css b/src/components/AuthorCard/styles.css
index 90244e8..1a4a01b 100644
--- a/src/components/AuthorCard/styles.css
+++ b/src/components/AuthorCard/styles.css
@@ -1,17 +1,21 @@
.author-card {
display: grid;
- padding-inline: var(--spacing-large);
- grid-template-columns: 1fr auto;
- grid-template-rows: 1fr auto;
- gap: var(--spacing-large);
+ padding-inline: var(--size-3);
+ grid-template-columns: auto 1fr;
+ grid-template-rows: auto 1fr;
+ gap: var(--size-3);
place-items: center;
grid-template-areas:
"avatar name"
"avatar bio";
- margin: var(--spacing-large) 0;
+ margin: var(--size-3) 0;
}
-.author-card .author-name * { margin: 0; }
+.author-card .author-name * {
+ margin: 0;
+ color: var(--tjs-red-6);
+ text-shadow: var(--size-1) var(--size-1) var(--gray-12);
+}
.author-card .author-picture {
grid-area: avatar;
@@ -22,7 +26,12 @@
grid-area: name;
justify-self: start;
}
-.author-card .author-bio { grid-area: bio; }
+
+.author-card .author-bio {
+ grid-area: bio;
+ width: 100%;
+ place-self: start start;
+}
@media (max-width: 768px) {
.author-card {
diff --git a/src/components/Avatar/styles.css b/src/components/Avatar/styles.css
index ac8e9f3..36188be 100644
--- a/src/components/Avatar/styles.css
+++ b/src/components/Avatar/styles.css
@@ -1,12 +1,15 @@
.user-avatar {
- --image-size: var(--avatar-size);
+ --image-size: var(--size-13);
display: block;
width: var(--image-size);
height: var(--image-size);
- border-radius: 100vmax;
+ aspect-ratio: var(--ratio-square);
+ border-radius: var(--radius-round);
overflow: hidden;
+ border: solid var(--tjs-red-6) var(--size-2);
+ box-shadow: var(--size-1) var(--size-1) var(--gray-12);
}
.user-avatar img {
@@ -17,5 +20,5 @@
}
@media (max-width: 768px) {
- .user-avatar { --image-size: var(--avatar-small-size); }
+ .user-avatar { --image-size: var(--size-12); }
}
diff --git a/src/components/PostHeader/index.astro b/src/components/PostHeader/index.astro
index 0ca0eef..a8c35ee 100644
--- a/src/components/PostHeader/index.astro
+++ b/src/components/PostHeader/index.astro
@@ -53,32 +53,36 @@ const formatter = new Intl.DateTimeFormat('en-US', { dateStyle: 'long', timeStyl
diff --git a/src/components/PostHeader/styles.css b/src/components/PostHeader/styles.css
index e9860aa..bc9b6d2 100644
--- a/src/components/PostHeader/styles.css
+++ b/src/components/PostHeader/styles.css
@@ -2,29 +2,18 @@
width: 100%;
max-width: var(--max-width);
margin-inline: auto;
+ margin-block-end: var(--size-8);
}
#post-header-wrapper {
justify-self: stretch;
display: grid;
place-items: end center;
- gap: var(--spacing-large);
+ gap: var(--size-3);
grid-template-rows: 1fr auto auto auto;
- grid-template-columns: 1fr 1fr;
+ grid-template-columns: 100%;
grid-template-areas:
- 'title hero-image'
- 'summary hero-image'
- 'metadata metadata'
- 'share share';
- padding: var(--spacing-large);
- margin: var(--spacing-large);
-}
-
-#post-header-wrapper:not(:has(#hero-image)) {
- grid-template-rows: 1fr auto auto auto;
- grid-template-columns: 1fr;
- grid-template-areas:
- 'title'
+ 'hero-title'
'summary'
'metadata'
'share';
@@ -32,7 +21,7 @@
#post-header h1 {
height: auto;
- font-size: clamp(2rem, 5vmax, 4rem);
+ font-size: var(--font-size-fluid-3);
font-weight: bold;
overflow-wrap: break-word;
@@ -53,13 +42,34 @@
padding: 0;
}
-#post-header #post-title { grid-area: title; }
+#post-header #post-title {
+ grid-area: hero-title;
+ z-index: 1;
+ place-self: end end;
+
+ background-color: white;
+ color: var(--tjs-red-6);
+ text-decoration-color: currentcolor;
+ padding: var(--size-3) var(--size-4);
+ border-start-start-radius: var(--radius-4);
+ border-end-start-radius: var(--radius-4);
+ border: var(--tjs-red-6) solid var(--size-2);
+ border-inline-end: none;
+ margin-block-end: var(--size-7);
+}
+
+#post-header-wrapper:not(:has(#hero-image)) #post-title {
+ margin-block: 0;
+ border-inline: none;
+ border-radius: 0;
+ width: 100%;
+}
#post-header #hero-image {
width: 100%;
height: 100%;
object-fit: contain;
- grid-area: hero-image;
+ grid-area: hero-title;
overflow: hidden;
}
@@ -67,7 +77,8 @@
border: none;
font-size: smaller;
margin: 0;
- padding: var(--spacing-large);
+ padding: var(--size-1);
+ font-style: italic;
grid-area: summary;
}
@@ -76,17 +87,8 @@
}
#post-metadata {
- width: 100%;
grid-area: metadata;
text-align: center;
- display: flex;
- flex-flow: column wrap;
- justify-content: center;
- gap: var(--spacing-medium);
-}
-
-#post-metadata a {
- vertical-align: middle;
}
#post-share {
@@ -95,28 +97,28 @@
flex-wrap: wrap;
justify-content: center;
align-items: center;
- gap: var(--spacing-large);
+ gap: var(--size-3);
}
#post-share button {
display: flex;
align-items: center;
justify-content: center;
- width: var(--button-size);
- height: var(--button-size);
- padding: var(--spacing-medium);
+ height: var(--size-7);
+ padding: var(--size-1) var(--size-2);
}
#post-share button svg {
- width: 100%;
height: 100%;
+ aspect-ratio: var(--ratio-square);
pointer-events: none;
}
+
@media (max-width: 650px) {
#post-header-wrapper {
grid-template-rows: 1fr auto auto auto auto;
- grid-template-columns: 1fr;
+ grid-template-columns: 100%;
grid-template-areas:
'hero-image'
'title'
@@ -124,4 +126,22 @@
'metadata'
'share';
}
+
+ #post-header #post-title {
+ grid-area: title;
+ margin-block: calc(var(--size-3) * -1) 0;
+ border-inline: none;
+ border-radius: 0;
+ }
+
+ #post-header #hero-image {
+ grid-area: hero-image;
+ }
+}
+
+@media (min-width: 1025px) {
+ #post-header #post-title,
+ #post-header-wrapper:not(:has(#hero-image)) #post-title {
+ border: var(--tjs-red-6) solid var(--size-2);
+ }
}
diff --git a/src/components/RefreshBanner/index.astro b/src/components/RefreshBanner/index.astro
index d55a2fc..9ab1bde 100644
--- a/src/components/RefreshBanner/index.astro
+++ b/src/components/RefreshBanner/index.astro
@@ -9,14 +9,15 @@ import './styles.css';
id="pwa-toast"
role="alert"
aria-labelledby="toast-message"
+ aria-live="polite"
>
-