blog singlePost page created
This commit is contained in:
1 parent
fb488c366c
commit
74eea9fd99
11 files changed
+362
-16
No files matched your search
@@ -59,7 +59,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -98,7 +98,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -137,7 +137,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -176,7 +176,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -215,7 +215,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -254,7 +254,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -293,7 +293,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -332,7 +332,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -371,7 +371,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -410,7 +410,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -449,7 +449,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -488,7 +488,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -527,7 +527,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
@@ -566,7 +566,7 @@ export default function FilteredPosts({ params }: propsType) {
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/categories/categoryName"}
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default">
|
||||
UI design
|
||||
|
||||
@@ -23,7 +23,7 @@ export default function RootLayout({
|
||||
|
||||
<Header />
|
||||
|
||||
<div className="main blog relative my-[100px] flex w-full flex-wrap justify-center overflow-hidden md:my-[150px]">
|
||||
<div className="main blog relative my-[100px] flex w-full flex-wrap justify-center md:my-[150px]">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,7 +1,320 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
type propsType = {
|
||||
params: { slug: string };
|
||||
};
|
||||
|
||||
export default function SinglePost({ params }: propsType) {
|
||||
return <div>{params.slug}</div>;
|
||||
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.slug.replaceAll(/%20|-|_/g, " ")}
|
||||
</h1>
|
||||
<p className="text-[18px] font-[600] text-blog-text-default">
|
||||
People’s quest for creating websites has easily taken us to a new era
|
||||
of site development. Where, with the availability of robust page
|
||||
building tools, creating websites has become a lot more fun
|
||||
(especially for non-developers).
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
<div className="my-10 flex w-full max-w-[90%] flex-wrap justify-center gap-5">
|
||||
<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-[400] capitalize text-blog-text-passive">
|
||||
Categories
|
||||
</li>
|
||||
<span className="mx-4 mt-[-2px] scale-[3] text-[12px] font-[400] text-blog-text-passive">
|
||||
-
|
||||
</span>
|
||||
<li className="text-[12px] font-[400] capitalize text-blog-text-passive">
|
||||
Category Name
|
||||
</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.slug.replaceAll(/%20|-|_/g, " ")}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div className="relative flex w-full items-start justify-center gap-10">
|
||||
<div className="sticky top-[150px] flex w-[5%] flex-col items-start">
|
||||
<Image
|
||||
src={"/images/blog/icons/socials-vertical.svg"}
|
||||
width={35}
|
||||
height={200}
|
||||
alt="socials-vertical icons"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative flex w-[90%] flex-wrap gap-5">
|
||||
<img
|
||||
className="w-full"
|
||||
src={"/images/blog/posts/post/1.png"}
|
||||
alt={"post image 1"}
|
||||
/>
|
||||
<p className="text-[20px] font-[400] text-blog-text-default">
|
||||
People’s quest for creating websites has easily taken us to a new
|
||||
era of site development. Where, with the availability of robust
|
||||
page building tools, creating websites has become a lot more fun
|
||||
(especially for non-developers). The multitude of tools and
|
||||
plugins available to you is vast when you try building websites on
|
||||
WordPress. Today we’ll explore a new one,{" "}
|
||||
<span className="text-[20px] font-[400] text-blog-blue">
|
||||
WP Page Builder
|
||||
</span>
|
||||
. If you’re tired of the same old page builder plugins, this is
|
||||
one you should try out.
|
||||
</p>
|
||||
<h2 className="mt-20 text-[28px] font-[600] text-blog-text-default">
|
||||
What’s Special About WP Page Builder?
|
||||
</h2>
|
||||
<p className="text-[20px] font-[400] text-blog-text-default">
|
||||
Wondering what makes WP Page Builder so special? I would say, what
|
||||
doesn’t? It’s developed by the team over at Themeum, who has been
|
||||
creating WordPress themes since 2013. As mentioned above, the
|
||||
plugin is a full pack of essential site building elements with all
|
||||
modern the modern functionality you’ve come to expect from a page
|
||||
builder plugin. Let’s have a look below at all of the juicy
|
||||
features WP Page Builder includes.
|
||||
</p>
|
||||
<img
|
||||
className="w-full"
|
||||
src={"/images/blog/posts/post/2.png"}
|
||||
alt={"post image 2"}
|
||||
/>
|
||||
<p className="text-[20px] font-[400] text-blog-text-default">
|
||||
Here are some of the amazing add-ons included:
|
||||
</p>
|
||||
<ul className="flex list-disc flex-col gap-10">
|
||||
<li className="ms-5 text-[20px] font-[400] text-blog-text-default">
|
||||
<span className="font-bold">Form:</span> Create web forms
|
||||
effortlessly. It gives you a convenient way to style your forms
|
||||
as you desire. The Form add-on itself is capable of setting up
|
||||
any kind of form without needing to install any plugin.
|
||||
Moreover, you can manage form plugins and enable reCAPTCHA with
|
||||
just a simple click. There is also an add-on for Contact Form 7
|
||||
if you prefer.
|
||||
</li>
|
||||
<li className="ms-5 text-[20px] font-[400] text-blog-text-default">
|
||||
<span className="font-bold">Carousel:</span> It’s hard to find
|
||||
an advanced add-on like a carousel in a free page builder
|
||||
plugin, but WP Page Builder lets you create stunning hero
|
||||
sliders without having to pay for it.
|
||||
</li>
|
||||
<li className="ms-5 text-[20px] font-[400] text-blog-text-default">
|
||||
<span className="font-bold">Post Grid:</span> Display blog posts
|
||||
in grids defining the number of posts and styling the look.
|
||||
</li>
|
||||
<li className="ms-5 text-[20px] font-[400] text-blog-text-default">
|
||||
<span className="font-bold">Feature Box:</span> Use the Feature
|
||||
Box add-on to display the features of products on your website.
|
||||
</li>
|
||||
<li className="ms-5 text-[20px] font-[400] text-blog-text-default">
|
||||
<span className="font-bold">Accordion:</span> Need any collapse
|
||||
text content on your site? Use WP Page Builder’s Accordion
|
||||
add-on and modify the style the way you want.
|
||||
</li>
|
||||
</ul>
|
||||
<div className="my-10 flex w-full justify-between">
|
||||
<div className="w-[48%]">
|
||||
<img
|
||||
className="w-full"
|
||||
src={"/images/blog/posts/post/3.png"}
|
||||
alt={"post image 3"}
|
||||
/>
|
||||
</div>
|
||||
<div className="w-[48%]">
|
||||
<img
|
||||
className="w-full"
|
||||
src={"/images/blog/posts/post/4.png"}
|
||||
alt={"post image 4"}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<p className="my-10 text-center text-[24px] font-[400] text-blog-purple">
|
||||
“ WP Page Builder offers a lot of ready-to-use design blocks to
|
||||
make your site development process a lot faster and easier “
|
||||
</p>
|
||||
<div className="flex w-full justify-center">
|
||||
<div className="flex flex-col items-center">
|
||||
<Image
|
||||
src={"/images/blog/users/1.png"}
|
||||
alt={"user 1 image"}
|
||||
width={80}
|
||||
height={80}
|
||||
className="mb-2 rounded-full"
|
||||
/>
|
||||
<Link href={"/blog/authors/parsaaghayi"}>
|
||||
<h3 className="text-center text-[18px] font-[400] capitalize text-blog-text-default hover:underline">
|
||||
parsa aghayi
|
||||
</h3>
|
||||
</Link>
|
||||
<p className="text-[16px] font-[400] text-blog-text-default">
|
||||
Follow me
|
||||
<Link
|
||||
href={"#"}
|
||||
className="ms-1 text-[16px] font-[400] text-blog-blue"
|
||||
>
|
||||
@JohnAMWill
|
||||
</Link>
|
||||
.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="sticky top-[150px] flex w-[5%] flex-col items-end gap-5">
|
||||
<div className="flex cursor-pointer flex-col gap-1">
|
||||
<Image
|
||||
src={"/images/blog/icons/like.svg"}
|
||||
width={35}
|
||||
height={35}
|
||||
alt="socials-vertical icons"
|
||||
/>
|
||||
<p className="text-[18px] font-[600] text-blog-text-default">
|
||||
12 K
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex cursor-pointer flex-col gap-1">
|
||||
<Image
|
||||
src={"/images/blog/icons/eye.svg"}
|
||||
width={35}
|
||||
height={35}
|
||||
alt="socials-vertical icons"
|
||||
/>
|
||||
<p className="text-[18px] font-[600] text-blog-text-default">
|
||||
25 K
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="my-10 flex w-full flex-wrap gap-10">
|
||||
<div className="flex w-full items-center justify-between">
|
||||
<p className="text-[36px] font-[600] text-blog-text-default">
|
||||
You might also like...
|
||||
</p>
|
||||
<Link
|
||||
href={"#"}
|
||||
className="text-[36px] font-[600] capitalize text-blog-text-passive hover:underline"
|
||||
>
|
||||
more
|
||||
</Link>
|
||||
</div>
|
||||
<div className="flex w-full justify-between">
|
||||
<div className="flex w-[45%] flex-col items-center justify-start gap-1 sm:w-[45%]">
|
||||
<Image
|
||||
className="mb-3 rounded-md"
|
||||
src={"/images/blog/posts/1.png"}
|
||||
alt={"category 1"}
|
||||
loading="lazy"
|
||||
width={600}
|
||||
height={500}
|
||||
/>
|
||||
<div className="mb-2 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>
|
||||
<Link href={"#"}>
|
||||
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default hover:underline md:text-[16px]">
|
||||
TOMAS LAURINAVICIUS
|
||||
</h2>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="whit flex gap-2">
|
||||
<p className="text-[16px] font-[600] text-blog-text-passive">
|
||||
IN
|
||||
</p>
|
||||
<Link href={"#"}>
|
||||
<h2 className="text-[16px] font-[400] text-blog-text-default hover:underline">
|
||||
RESOURCE
|
||||
</h2>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default hover:underline">
|
||||
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-[45%] flex-col items-center justify-start gap-1 sm:w-[45%]">
|
||||
<Image
|
||||
className="mb-3 rounded-md"
|
||||
src={"/images/blog/posts/2.png"}
|
||||
alt={"post 2"}
|
||||
loading="lazy"
|
||||
width={600}
|
||||
height={500}
|
||||
/>
|
||||
<div className="mb-2 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>
|
||||
<Link href={"#"}>
|
||||
<h2 className="whitespace-nowrap text-[14px] font-[400] text-blog-text-default hover:underline md:text-[16px]">
|
||||
TOMAS LAURINAVICIUS
|
||||
</h2>
|
||||
</Link>
|
||||
</div>
|
||||
<div className="whit flex gap-2">
|
||||
<p className="text-[16px] font-[600] text-blog-text-passive">
|
||||
IN
|
||||
</p>
|
||||
<Link href={"#"}>
|
||||
<h2 className="text-[16px] font-[400] text-blog-text-default hover:underline">
|
||||
RESOURCE
|
||||
</h2>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<Link
|
||||
className="w-full text-start"
|
||||
href={"/blog/posts/UI design"}
|
||||
>
|
||||
<h3 className="text-[24px] font-[600] text-blog-text-default hover:underline">
|
||||
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>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user