Skip to content

Commit

Permalink
added scroll smoth animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ariflogs committed Jul 14, 2024
1 parent 05e70b6 commit 5f2b510
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
27 changes: 27 additions & 0 deletions src/app/blogs/how_the_blog_feature_works/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export const metadata = {
title: "How the Blog Feature Work...",
description:
"Learn how to use MDX and NextJS to add static blogs in your website",
isPublished: true,
slug: "welcome_to_logsfolio",
publishDate: "2nd Jul, 2024",
};

<br />

# How the Blog Feature Work...

<br />
<div className="flex justify-center">
<iframe
width="680"
height="400"
src="https://www.youtube.com/embed/mjD5arlOB9A?si=fNs456hV8Jj0ROQw"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
></iframe>
</div>
<br />
4 changes: 4 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
@tailwind components;
@tailwind utilities;

html {
scroll-behavior: smooth;
}

@layer base {
:root {
--background: 0 0% 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export default async function Home() {
>
<h2 className="font-bold text-3xl md:text-5xl mb-12">Blogs</h2>

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

0 comments on commit 5f2b510

Please sign in to comment.