Skip to content

Commit fe547bc

Browse files
committed
fix(UI): change max-width
1 parent a2dd7bd commit fe547bc

File tree

9 files changed

+23
-18
lines changed

9 files changed

+23
-18
lines changed

src/components/Breadcrumbs.astro

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ breadcrumbList[0] === "tags" &&
2020
3,
2121
`${breadcrumbList[1]} ${
2222
Number(breadcrumbList[2]) === 1 ? "" : "(page " + breadcrumbList[2] + ")"
23-
}`
23+
}`,
2424
);
2525
---
2626

@@ -47,15 +47,15 @@ breadcrumbList[0] === "tags" &&
4747
<a href={`/${breadcrumb}/`}>{breadcrumb}</a>
4848
<span aria-hidden="true">&raquo;</span>
4949
</li>
50-
)
50+
),
5151
)
5252
}
5353
</ul>
5454
</nav>
5555

5656
<style>
5757
.breadcrumb {
58-
@apply mx-auto mb-1 mt-8 w-full max-w-3xl px-4;
58+
@apply mx-auto mb-1 mt-8 w-full max-w-5xl px-4;
5959
}
6060
.breadcrumb ul li {
6161
@apply inline;

src/components/Header.astro

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ const { activeNav } = Astro.props;
2828
)
2929
}
3030
</a>
31+
<!-- <button
32+
type="button"
33+
class="ml-2 border-none rounded-full bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 bg-gray-50 hover:bg-gray-200"
34+
>Music</button
35+
> -->
3136
<nav id="nav-menu">
3237
<button
3338
class="hamburger-menu focus-outline"
@@ -121,7 +126,7 @@ const { activeNav } = Astro.props;
121126
@apply absolute -top-full left-16 z-50 bg-skin-accent px-3 py-2 text-skin-inverted transition-all focus:top-4;
122127
}
123128
.nav-container {
124-
@apply mx-auto flex max-w-3xl flex-col items-center justify-between sm:flex-row;
129+
@apply mx-auto flex max-w-5xl flex-col items-center justify-between sm:flex-row;
125130
}
126131
.top-nav-wrap {
127132
@apply relative flex w-full items-start justify-between p-4 sm:items-center sm:py-8;
@@ -156,7 +161,7 @@ const { activeNav } = Astro.props;
156161
@apply col-span-1;
157162
}
158163
nav a.active {
159-
@apply underline decoration-wavy decoration-2 underline-offset-4;
164+
@apply underline decoration-2 underline-offset-4;
160165
}
161166
nav a.active svg {
162167
@apply fill-skin-accent;
@@ -202,7 +207,7 @@ const { activeNav } = Astro.props;
202207
menuBtn.setAttribute("aria-expanded", menuExpanded ? "false" : "true");
203208
menuBtn.setAttribute(
204209
"aria-label",
205-
menuExpanded ? "Open Menu" : "Close Menu"
210+
menuExpanded ? "Open Menu" : "Close Menu",
206211
);
207212
menuItems?.classList.toggle("display-none");
208213
});

src/components/Hr.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export interface Props {
77
const { noPadding = false, ariaHidden = true } = Astro.props;
88
---
99

10-
<div class={`max-w-3xl mx-auto ${noPadding ? "px-0" : "px-4"}`}>
10+
<div class={`max-w-5xl mx-auto ${noPadding ? "px-0" : "px-4"}`}>
1111
<hr class="border-skin-line" aria-hidden={ariaHidden} />
1212
</div>

src/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import type { Site, SocialObjects } from "./types";
22

33
export const SITE: Site = {
44
website: "https://tungdevpro.github.io", // replace this with your deployed domain
5-
author: "Tungdevpro",
5+
author: "Vito",
66
desc: "I often gossip and write around about things like technology and my life",
7-
title: "tungdm",
7+
title: "Tung Do (Vito)",
88
ogImage: "astropaper-og.jpg",
99
lightAndDarkMode: false,
1010
postPerPage: 10,

src/layouts/AboutLayout.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const { frontmatter } = Astro.props;
1919
<Header activeNav="about" />
2020
<Breadcrumbs />
2121
<main id="main-content">
22-
<section id="about" class="prose mb-28 max-w-3xl prose-img:border-0">
22+
<section id="about" class="prose mb-28 max-w-5xl prose-img:border-0">
2323
<h1 class="text-2xl tracking-wider sm:text-3xl">{frontmatter.title}</h1>
2424
<slot />
2525
</section>

src/layouts/Main.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const { props } = Astro;
3737

3838
<style>
3939
#main-content {
40-
@apply mx-auto w-full max-w-3xl px-4 pb-4;
40+
@apply mx-auto w-full max-w-5xl px-4 pb-4;
4141
}
4242
#main-content h1 {
4343
@apply text-2xl font-semibold sm:text-3xl;

src/layouts/PostDetails.astro

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const { Content } = await post.render();
3131
const ogImageUrl = typeof ogImage === "string" ? ogImage : ogImage?.src;
3232
const ogUrl = new URL(
3333
ogImageUrl ?? `/posts/${slugifyStr(title)}.png`,
34-
Astro.url.origin
34+
Astro.url.origin,
3535
).href;
3636
3737
const layoutProps = {
@@ -53,7 +53,7 @@ const layoutProps = {
5353
<div class="progress-bar h-1 w-0 bg-skin-accent" id="myBar"></div>
5454
</div> -->
5555

56-
<div class="mx-auto flex w-full max-w-3xl justify-start px-2">
56+
<div class="mx-auto flex w-full max-w-5xl justify-start px-2">
5757
<button
5858
class="focus-outline mb-2 mt-8 flex hover:opacity-75"
5959
onclick="(() => (history.length === 1) ? window.location = '/' : history.back())()"
@@ -73,12 +73,12 @@ const layoutProps = {
7373
size="lg"
7474
className="my-2"
7575
/>
76-
<article id="article" role="article" class="prose mx-auto mt-8 max-w-3xl">
76+
<article id="article" role="article" class="prose mx-auto mt-8 max-w-5xl">
7777
<Content />
7878
</article>
7979

8080
<ul class="my-8">
81-
{tags.map(tag => <Tag tag={slugifyStr(tag)} />)}
81+
{tags.map((tag) => <Tag tag={slugifyStr(tag)} />)}
8282
</ul>
8383

8484
<div
@@ -104,7 +104,7 @@ const layoutProps = {
104104

105105
<style>
106106
main {
107-
@apply mx-auto w-full max-w-3xl px-4 pb-12;
107+
@apply mx-auto w-full max-w-5xl px-4 pb-12;
108108
}
109109
.post-title {
110110
@apply text-2xl font-semibold text-skin-accent;

src/pages/404.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import LinkButton from "@components/LinkButton.astro";
2828

2929
<style>
3030
#main-content {
31-
@apply mx-auto flex max-w-3xl flex-1 items-center justify-center;
31+
@apply mx-auto flex max-w-5xl flex-1 items-center justify-center;
3232
}
3333
.not-found-wrapper {
3434
@apply mb-14 flex flex-col items-center justify-center;

src/styles/base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
section,
3636
footer {
37-
@apply mx-auto max-w-3xl px-4;
37+
@apply mx-auto max-w-5xl px-4;
3838
}
3939
a {
4040
@apply outline-2 outline-offset-1 outline-skin-fill

0 commit comments

Comments
 (0)