-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlogPreview.tsx
More file actions
58 lines (51 loc) · 2.29 KB
/
Copy pathBlogPreview.tsx
File metadata and controls
58 lines (51 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Link } from "react-router-dom";
import { Button } from "@/components/ui/button";
import { FiClock, FiUser, FiArrowRight } from "react-icons/fi";
const BlogPreview = () => {
return (
<section className="py-16 bg-secondary/30">
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex flex-col items-center mb-12 text-center">
<h2 className="text-3xl font-bold text-primary mb-4">Blog</h2>
<p className="text-muted-foreground max-w-2xl">
Discover best practices, tips, and new updates about security commits.
</p>
</div>
<div className="max-w-4xl mx-auto bg-background rounded-lg shadow-md overflow-hidden">
<div className="p-8">
<div className="flex items-center gap-4 text-sm text-muted-foreground mb-4">
<div className="flex items-center gap-1">
<FiClock size={14} />
<span>June 14, 2023</span>
</div>
<div className="flex items-center gap-1">
<FiUser size={14} />
<span>Sofia Reis</span>
</div>
</div>
<h3 className="text-2xl font-bold mb-4 text-foreground">
Best Practices for Security Commit Messages
</h3>
<p className="text-muted-foreground mb-6">
When working on security-related changes, writing clear commit messages is essential for project maintenance
and security audits. The SECOM convention provides a structured approach to security commit messages,
but there are additional best practices to consider.
</p>
<Button variant="default" className="group">
<Link to="/blog" className="flex items-center gap-2 text-white hover:text-white">
Read Full Article
<FiArrowRight className="group-hover:translate-x-1 transition-transform" />
</Link>
</Button>
</div>
</div>
<div className="flex justify-center mt-8">
<Link to="/blog">
<Button variant="outline">View All Blog Posts</Button>
</Link>
</div>
</div>
</section>
);
};
export default BlogPreview;