Skip to content

Commit

Permalink
fix: some styling
Browse files Browse the repository at this point in the history
  • Loading branch information
oxwazz committed Nov 5, 2024
1 parent 1a9f126 commit f08c644
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/pages/404.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const meta = {
---

<PageLayout meta={meta}>
<h1 class="title mb-6">404 | Oops something went wrong</h1>
<p class="mb-8">Please use the navigation to find your way back</p>
<div class="my-4 grid justify-center">
<h1 class="title mx-auto mb-6 max-w-screen-sm">404 | Oops something went wrong</h1>
<p class="mx-auto mb-8 max-w-screen-sm">Please use the navigation to find your way back</p>
<div class="mx-auto my-4 grid max-w-screen-sm justify-center">
<Image
class="rotate-180"
src={aboutImg}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const meta = {
---

<PageLayout meta={meta}>
<div class="space-y-6">
<div class="mx-auto max-w-screen-sm space-y-6">
<h1 class="title">About</h1>
<p>
Hi, I’m a starter Astro. I’m particularly great for getting you started with your own blogging
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ const allPostsByDate = sortMDByDate(allPosts).slice(0, MAX_POSTS);
---

<PageLayout meta={{ title: "Home" }}>
<section>
<section class="mx-auto max-w-screen-sm">
<h1 class="title mb-6 text-3xl font-extrabold">Muhammad Rahmahalim</h1>
<p class="mb-4">Hi, I am Muhammad Rahmahalim.</p>
<SocialList />
</section>
<section aria-label="Blog post list" class="mt-16">
<section aria-label="Blog post list" class="mx-auto mt-16 max-w-screen-sm">
<h2 class="title mb-4 text-xl">Posts</h2>
<ul class="space-y-4 sm:space-y-2">
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/personals/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const paginationProps = {
---

<PageLayout meta={meta}>
<h1 class="title mb-6">Posts</h1>
<div class="grid gap-y-16 sm:grid-cols-[3fr_1fr] sm:gap-x-8">
<h1 class="title mx-auto mb-6 max-w-screen-sm">Posts</h1>
<div class="mx-auto grid max-w-screen-sm gap-y-16 sm:grid-cols-[3fr_1fr] sm:gap-x-8">
<section aria-label="Blog post list">
<ul class="space-y-8 text-start">
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/posts/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const paginationProps = {
---

<PageLayout meta={meta}>
<h1 class="title mb-6">Posts</h1>
<div class="grid gap-y-16 sm:grid-cols-[3fr_1fr] sm:gap-x-8">
<h1 class="title mx-auto mb-6 max-w-screen-sm">Posts</h1>
<div class="mx-auto grid max-w-screen-sm gap-y-16 sm:grid-cols-[3fr_1fr] sm:gap-x-8">
<section aria-label="Blog post list">
<ul class="space-y-8 text-start">
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tags/[tag]/[...page].astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ const paginationProps = {
---

<PageLayout meta={meta}>
<h1 class="title mb-6 flex items-center">
<h1 class="title mx-auto mb-6 flex max-w-screen-sm items-center">
<a href="/tags/" class="text-accent sm:hover:underline">Tags</a>
<span class="me-3 ms-2">→</span>
<span class="text-xl">#{tag}</span>
</h1>
<section aria-label="Blog post list">
<section aria-label="Blog post list" class="mx-auto max-w-screen-sm">
<ul class="space-y-8">
{
page.data.map((p) => (
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tags/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const meta = {
---

<PageLayout meta={meta}>
<h1 class="title mb-6">Tags</h1>
<ul class="space-y-4">
<h1 class="title mx-auto mb-6 max-w-screen-sm">Tags</h1>
<ul class="mx-auto max-w-screen-sm space-y-4">
{
allTags.map(([tag, val]) => (
<li class="flex items-center gap-x-2">
Expand Down

0 comments on commit f08c644

Please sign in to comment.