initial blog commit

This commit is contained in:
Cypro Freelance 2024-08-03 14:36:50 +05:30
parent c802a80283
commit 61dafc3f3f
3 changed files with 5360 additions and 2512 deletions

View file

@ -1,11 +1,18 @@
import React from "react";
import { Metadata } from "next";
import BlogCards from "@/components/cards/BlogCards";
export const metadata: Metadata = {
title: "Blog - SVRJS",
title: "Blog - SVRJS",
};
const BlogPage = () => {
return <div>BlogPage</div>;
return (
<section id="blog" className="mb-12 grid gap-6 p-6 md:gap-12">
<h2 className="text-3xl sm:text-4xl">SVRJS BlogPage</h2>
<BlogCards />
</section>
);
};
export default BlogPage;

View file

@ -0,0 +1,40 @@
import React from "react";
import Link from "next/link";
import Image from "next/image";
import { ExternalLink } from "lucide-react";
const BlogCards = () => {
return (
<section className="grid max-w-6xl gap-2 fade-in sm:grid-cols-2 lg:grid-cols-3">
<div className="fade-in-bottom group h-fit w-fit rounded-lg border delay-300">
<Link
href="/blog"
className="relative block overflow-hidden rounded-lg border"
>
<div className="h-full w-full overflow-hidden">
<Image
src={"/metadata/svrjs-cover.png"}
alt={"svrjs-cover"}
width={500}
height={50}
className="h-full w-full object-cover object-center transition-all md:group-hover:scale-[1.01]"
/>
</div>
<div className="flex w-full flex-col justify-between gap-2 rounded-b-lg border-t bg-accent/25 p-4 md:flex-row md:items-start md:p-2 md:group-hover:bg-accent/50">
<div>
<p>Svrjs Node Server</p>
<span className="text-sm text-muted-foreground">
Description here
</span>
</div>
<p className="text-sm text-muted-foreground opacity-0 group-hover:opacity-100 duration-300">
<ExternalLink />
</p>
</div>
</Link>
</div>
</section>
);
};
export default BlogCards;

7821
package-lock.json generated

File diff suppressed because it is too large Load diff