Skip to content

Commit 5f2b510

Browse files
committed
added scroll smoth animation
1 parent 05e70b6 commit 5f2b510

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
export const metadata = {
2+
title: "How the Blog Feature Work...",
3+
description:
4+
"Learn how to use MDX and NextJS to add static blogs in your website",
5+
isPublished: true,
6+
slug: "welcome_to_logsfolio",
7+
publishDate: "2nd Jul, 2024",
8+
};
9+
10+
<br />
11+
12+
# How the Blog Feature Work...
13+
14+
<br />
15+
<div className="flex justify-center">
16+
<iframe
17+
width="680"
18+
height="400"
19+
src="https://www.youtube.com/embed/mjD5arlOB9A?si=fNs456hV8Jj0ROQw"
20+
title="YouTube video player"
21+
frameborder="0"
22+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
23+
referrerpolicy="strict-origin-when-cross-origin"
24+
allowfullscreen
25+
></iframe>
26+
</div>
27+
<br />

src/app/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
html {
6+
scroll-behavior: smooth;
7+
}
8+
59
@layer base {
610
:root {
711
--background: 0 0% 100%;

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export default async function Home() {
256256
>
257257
<h2 className="font-bold text-3xl md:text-5xl mb-12">Blogs</h2>
258258

259-
<div className="space-y-6">
259+
<div className="flex flex-col space-y-8">
260260
{posts.map((post) => (
261261
<Link key={post.slug} href={`/blogs/${post.slug}`}>
262262
<h3 className="text-xl md:text-3xl font-semibold">

0 commit comments

Comments
 (0)