blog filtered posts added and get responsive styles

This commit is contained in:
parsa aghaei committed 2024-10-07 19:01:11 +03:30
1 parent 4747cde67a
commit 6afda0698e
22 files changed
+626 -54

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

+5 -5
View File
@@ -3,9 +3,9 @@ import Link from "next/link";
export default function Categories() {
return (
<div className="flex w-full max-w-[1280px] sm:my-10 flex-wrap justify-center">
<div className="flex w-full max-w-[1280px] flex-wrap justify-center sm:my-10">
<div className="flex w-full max-w-[90%] flex-col gap-5">
<h1 className="text-[36px] font-[700] text-blog-text-default">
<h1 className="text-[36px] font-[700] capitalize text-blog-text-default">
All Categories List
</h1>
<p className="max-w-[650px] text-[18px] font-[600] text-blog-text-default">
@@ -14,14 +14,14 @@ export default function Categories() {
</p>
</div>
<div className="my-10 flex w-full max-w-[90%] flex-wrap justify-center gap-5">
<ul className="my-10 flex w-full max-w-[90%]">
<li className="text-[12px] font-[400] text-blog-text-passive">
<ul className="my-10 flex w-full">
<li className="text-[12px] font-[400] capitalize text-blog-text-passive">
Home
</li>
<span className="mx-4 mt-[-2px] scale-[3] text-[12px] font-[400] text-blog-text-passive">
-
</span>
<li className="text-[12px] font-[600] text-blog-text-default">
<li className="text-[12px] font-[600] capitalize text-blog-text-default">
Categories
</li>
</ul>
@@ -19,19 +19,19 @@ export function NavLinks({ className }: NavLinksPropsType) {
Home
</Link>
<Link
className={`text-[16px] font-[600] ${pathname === "/blog/new" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
href="/blog/new"
className={`text-[16px] font-[600] ${pathname === "/blog/filtered-posts/new" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
href="/blog/filtered-posts/new"
>
New
</Link>
<Link
className={`text-[16px] font-[600] ${pathname === "/blog/popular" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
href="/blog/popular"
className={`text-[16px] font-[600] ${pathname === "/blog/filtered-posts/popular" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
href="/blog/filtered-posts/popular"
>
Popular
</Link>
<Link
className={`text-[16px] font-[600] ${pathname === "/blog/reading-list" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
className={`text-[16px] font-[600] ${pathname === "/blog/categories" ? "text-blog-text-hover" : "text-blog-text-default"} transition-all hover:scale-105`}
href="/blog/categories"
>
Categories
@@ -8,9 +8,9 @@ export default function FilteredPosts() {
<h2 className="text-[36px] font-[700] text-blog-text-default">
Popular
</h2>
<p className="text-[16px] font-[400] text-blog-text-passive">
<Link href={"/blog/filtered-posts/popular"} className="text-[16px] font-[400] text-blog-text-passive">
View all
</p>
</Link>
</div>
<div className="flex w-full flex-wrap justify-center gap-5">
@@ -47,9 +47,12 @@ export default function New() {
<div className="flex w-full flex-col md:w-[35%] md:gap-2 lg:gap-2 xl:gap-5">
<div className="flex w-full items-center justify-between border-b-2 pb-2 md:pb-5 lg:gap-8 lg:pb-6 xl:pb-10">
<h2 className="text-[24px] font-[700] text-blog-text-default">New</h2>
<p className="text-[16px] font-[400] text-blog-text-passive">
<Link
href={"/blog/filtered-posts/new"}
className="text-[16px] font-[400] text-blog-text-passive"
>
View all new
</p>
</Link>
</div>
<div className="flex w-full flex-col rounded-md p-2 transition-all hover:scale-105 hover:shadow-md">
@@ -59,21 +59,21 @@ export default function Random() {
alt="post title 3"
className="w-full rounded-lg"
/>
<div className="z-10 flex w-full flex-wrap items-center justify-start gap-2">
<div className="flex w-full">
<p className="me-2 text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="text-[14px] font-[400] text-blog-text-default md:text-[16px]">
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="flex w-full">
<p className="me-2 text-[16px] font-[600] text-blog-text-passive">
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
ANNOUNCEMENTS
RESOURCE
</h2>
</div>
</div>
@@ -99,21 +99,21 @@ export default function Random() {
alt="post title 3"
className="w-full rounded-lg"
/>
<div className="z-10 flex w-full flex-wrap items-center justify-start gap-2">
<div className="flex w-full">
<p className="me-2 text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="text-[14px] font-[400] text-blog-text-default md:text-[16px]">
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="flex w-full">
<p className="me-2 text-[16px] font-[600] text-blog-text-passive">
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
ANNOUNCEMENTS
RESOURCE
</h2>
</div>
</div>
@@ -139,21 +139,21 @@ export default function Random() {
alt="post title 3"
className="w-full rounded-lg"
/>
<div className="z-10 flex w-full flex-wrap items-center justify-start gap-2">
<div className="flex w-full">
<p className="me-2 text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="text-[14px] font-[400] text-blog-text-default md:text-[16px]">
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="flex w-full">
<p className="me-2 text-[16px] font-[600] text-blog-text-passive">
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
ANNOUNCEMENTS
RESOURCE
</h2>
</div>
</div>
@@ -37,8 +37,8 @@ export default function MobileMenu({ clicked, setClicked }: propsType) {
Home
</Link>
<Link
href="/blog/new"
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/new" ? "text-blog-text-hover" : "text-white"}`}
href="/blog/filtered-posts/new"
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/filtered-posts/new" ? "text-blog-text-hover" : "text-white"}`}
onClick={() => {
setClicked(false);
}}
@@ -46,8 +46,8 @@ export default function MobileMenu({ clicked, setClicked }: propsType) {
New
</Link>
<Link
href="/blog/popular"
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/popular" ? "text-blog-text-hover" : "text-white"}`}
href="/blog/filtered-posts/popular"
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/filtered-posts/popular" ? "text-blog-text-hover" : "text-white"}`}
onClick={() => {
setClicked(false);
}}
@@ -56,7 +56,7 @@ export default function MobileMenu({ clicked, setClicked }: propsType) {
</Link>
<Link
href="/blog/categories"
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/reading-list" ? "text-blog-text-hover" : "text-white"}`}
className={`block w-full whitespace-nowrap px-[14px] py-[10px] text-[21px] font-[400] hover:cursor-pointer ${pathname === "/blog/categories" ? "text-blog-text-hover" : "text-white"}`}
onClick={() => {
setClicked(false);
}}
@@ -1,14 +0,0 @@
type propsType = {
id: number;
params: { slug: string };
};
export default function FilterdPosts({ params, id }: propsType) {
return (
<div>
{params.slug}
{id}
</div>
);
}
@@ -0,0 +1,583 @@
import Image from "next/image";
import Link from "next/link";
type propsType = {
params: { filter: string };
};
export default function FilteredPosts({ params }: propsType) {
return (
<div className="flex w-full max-w-[1280px] flex-wrap justify-center sm:my-10">
<div className="flex w-full max-w-[90%] flex-col gap-5">
<h1 className="text-[36px] font-[700] capitalize text-blog-text-default">
{params.filter}
</h1>
<p className="max-w-[650px] text-[18px] font-[600] text-blog-text-default">
i don't know how to dynamic this part!
</p>
</div>
<div className="my-10 flex w-full flex-wrap justify-center gap-5">
<ul className="my-10 flex w-full max-w-[90%]">
<li className="text-[12px] font-[400] capitalize text-blog-text-passive">
Home
</li>
<span className="mx-4 mt-[-2px] scale-[3] text-[12px] font-[400] text-blog-text-passive">
-
</span>
<li className="text-[12px] font-[600] capitalize text-blog-text-default">
{params.filter}
</li>
</ul>
<div className="flex w-full max-w-[90%] flex-wrap justify-center gap-10">
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/1.png"}
alt={"category 1"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/2.png"}
alt={"category 1"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/3.png"}
alt={"post 3"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/4.png"}
alt={"post 4"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/5.png"}
alt={"post 5"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/6.png"}
alt={"post 6"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/7.png"}
alt={"post 7"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/8.png"}
alt={"post 8"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/9.png"}
alt={"post 9"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/10.png"}
alt={"post 10"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/11.png"}
alt={"post 11"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/12.png"}
alt={"post 12"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/13.png"}
alt={"post 13"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
<div className="flex w-full flex-col items-center justify-start gap-1 sm:w-[45%]">
<Image
className="rounded-md"
src={"/images/blog/posts/14.png"}
alt={"post 14"}
loading="lazy"
width={600}
height={500}
/>
<div className="flex w-full flex-wrap gap-2">
<div className="flex gap-2">
<p className="text-[14px] font-[600] text-blog-text-passive md:text-[16px]">
BY
</p>
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default md:text-[16px]">
TOMAS LAURINAVICIUS
</h2>
</div>
<div className="whit flex gap-2">
<p className="text-[16px] font-[600] text-blog-text-passive">
IN
</p>
<h2 className="text-[16px] font-[400] text-blog-text-default">
RESOURCE
</h2>
</div>
</div>
<Link
className="w-full text-start"
href={"/blog/categories/categoryName"}
>
<h3 className="text-[24px] font-[600] text-blog-text-default">
UI design
</h3>
</Link>
<p className="w-full text-start text-[16px] font-[400] text-blog-text-default">
Every website is a user interface. Learn to build yours right.
</p>
</div>
</div>
</div>
</div>
);
}