Skip to content

Commit 3eb0609

Browse files
committed
chore: add responsive description
1 parent a166485 commit 3eb0609

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/components/Bio.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ const Bio = () => {
4848
borderRadius: `50%`,
4949
}}
5050
/>
51-
<div className="ml-3">
52-
<span className="mb-3">Written by <strong>{author.name}</strong> {author.summary}<br/></span>
53-
You can follow him on&nbsp;
51+
<div className="ml-3 w-3/4 md:w-full">
52+
<div className="mb-3">Written by <strong>{author.name}</strong> {author.summary}<br/></div>
53+
<span>You can follow him on&nbsp;</span>
5454
<a href={`https://twitter.com/${social.twitter}`}
5555
className="underline font-bold" target="_blank">
5656
Twitter

src/components/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ThemeContextWrapper from "@src/components/ThemeContextWrapper";
55
const Layout = ({pageTitle, children}: { pageTitle: string, children: React.ReactNode }) => {
66
return (
77
<ThemeContextWrapper>
8-
<div className="">
8+
<div className="w-full">
99
<NavBar/>
1010
<main className="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8 relative">{children}</main>
1111
</div>

src/pages/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ const IndexPage: React.FC<PageProps> = () => {
1212
<Layout pageTitle="mainpage">
1313
<main>
1414
<div className="divide-y divide-gray-200 dark:divide-gray-700">
15-
<div className="flex">
16-
<div className="space-y-2 pt-6 pb-8 md:space-y-5 flex-none">
15+
<div className="space-y-2 pt-6 pb-2 md:space-y-5 flex-none">
1716
<h1 className="text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100
1817
sm:text-4xl sm:leading-10 md:text-6xl md:leading-14 pb-4">All Post</h1>
1918
<Bio />
2019
</div>
2120
</div>
2221
<BlogList/>
2322
<Footer />
24-
</div>
2523
</main>
2624
</Layout>
2725
);

0 commit comments

Comments
 (0)