Skip to content

Commit ba0f3d2

Browse files
nehaguphubsMIT1
andauthored
feat: blog website footer like main website (#8)
* implement the footer section in the blog website Signed-off-by: hubsMIT1 <[email protected]> * replace Link tag with a Signed-off-by: hubsMIT1 <[email protected]> * fix: sitemap Signed-off-by: Neha Gupta <[email protected]> * Implement footer in the blog website #1236 Signed-off-by: hubsMIT1 <[email protected]> * fix: footer logo and hydration error Signed-off-by: Neha Gupta <[email protected]> * fix: improve gitignore Signed-off-by: Neha Gupta <[email protected]> --------- Signed-off-by: hubsMIT1 <[email protected]> Signed-off-by: Neha Gupta <[email protected]> Co-authored-by: hubsMIT1 <[email protected]>
1 parent 90ce3a7 commit ba0f3d2

12 files changed

+227
-23
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
# misc
2020
.DS_Store
2121
*.pem
22+
.idea/
2223

2324
# debug
2425
npm-debug.log*

.idea/.gitignore

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/blog-website.iml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/footer.tsx

+117-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,125 @@
1-
import Container from './container'
2-
import { EXAMPLE_PATH } from '../lib/constants'
1+
import Link from "next/link";
2+
import Logo from './logo';
3+
import Image from "next/image";
4+
import CNCF from "../public/images/cncf-landscape.png";
5+
import GSA from "../public/images/gsa.png";
36

47
export default function Footer() {
8+
const sections = [
9+
{
10+
title: "Resources",
11+
links: [
12+
{ text: "Documentation", url: "https://docs.keploy.io/" },
13+
{ text: "Tech Blog", url: "https://blog.keploy.io/" },
14+
{ text: "Community Blog", url: "https://community.keploy.io/" },
15+
],
16+
},
17+
{
18+
title: "Company",
19+
links: [
20+
{ text: "Home", url: "#0" },
21+
{ text: "Security", url: "https://docs.keploy.io/security/" },
22+
{
23+
text: "Privacy Policy",
24+
url: "https://docs.keploy.io/privacy-policy/",
25+
},
26+
],
27+
},
28+
];
529
return (
6-
<footer className="bg-accent-1 border-t border-accent-2">
7-
{/* <Container>
8-
<div className="py-28 flex flex-col lg:flex-row items-center">
9-
<h3 className="text-4xl lg:text-5xl font-bold tracking-tighter leading-tight text-center lg:text-left mb-10 lg:mb-0 lg:pr-4 lg:w-1/2">
10-
Statically Generated with Next.js.
11-
</h3>
12-
<div className="flex flex-col lg:flex-row justify-center items-center lg:pl-4 lg:w-1/2">
13-
<a
14-
href="https://nextjs.org/docs/basic-features/pages"
15-
className="mx-3 bg-black hover:bg-white hover:text-black border border-black text-white font-bold py-3 px-12 lg:px-8 duration-200 transition-colors mb-6 lg:mb-0"
16-
>
17-
Read Documentation
18-
</a>
19-
<a
20-
href={`https://github.com/vercel/next.js/tree/canary/examples/${EXAMPLE_PATH}`}
21-
className="mx-3 font-bold hover:underline"
30+
<footer className="bg-secondary-300">
31+
<div className="max-w-6xl mx-auto px-4 sm:px-6">
32+
<div className="grid sm:grid-cols-12 gap-8 py-8 md:py-12">
33+
34+
<div className="sm:col-span-12 lg:col-span-3">
35+
<div className="mb-2">
36+
<Logo />
37+
</div>
38+
<div className="text-sm text-neutral-300">
39+
<a href="https://keploy.io/docs/security/" className="text-neutral-300 hover:text-primary-300 hover:underline transition duration-150 ease-in-out">Security</a> · <a href="https://docs.keploy.io/privacy-policy/" className="text-neutral-300 hover:text-primary-300 hover:underline transition duration-150 ease-in-out">Privacy Policy</a>
40+
</div>
41+
</div>
42+
43+
{sections.map((section, index) => (
44+
<div
45+
key={index}
46+
className="sm:col-span-6 md:col-span-4 lg:col-span-3"
2247
>
23-
View on GitHub
24-
</a>
48+
<h6 className="text-[#ff914d] font-[500] mb-2 footer-font tracking-tighter mb-2">
49+
{section?.title}
50+
</h6>
51+
<ul className="text-sm">
52+
{section?.links?.map((link, linkIndex) => (
53+
<li key={linkIndex} className="mb-2">
54+
<a
55+
href={link.url}
56+
className="text-[#e6e2d4] hover:text-[#ff914d] transition duration-150 ease-in-out"
57+
>
58+
{link.text}
59+
</a>
60+
</li>
61+
))}
62+
</ul>
63+
</div>
64+
))}
65+
66+
<div className="sm:col-span-6 md:col-span-4 lg:col-span-3">
67+
<h6 className="text-primary-300 font-medium mb-2">Find us on CNCF Landscape</h6>
68+
<Link href="https://landscape.cncf.io/card-mode?selected=keploy">
69+
<Image width={200} height={100} src={CNCF} alt="CNCF Landscape" className=" sm:w-9/12" />
70+
</Link>
71+
<Link href="https://blog.google/intl/en-in/introducing-the-eighth-cohort-of-google-for-startups-accelerator-india/">
72+
<Image width={200} height={100} src={GSA} alt="CNCF Landscape" className=" sm:w-9/12 py-2" />
73+
</Link>
2574
</div>
2675
</div>
27-
</Container> */}
76+
77+
<div className="md:flex md:items-center md:justify-between py-4 md:py-8 border-t border-gray-200">
78+
<ul className="flex mb-4 md:order-1 md:ml-4 md:mb-0">
79+
<li>
80+
<a
81+
href="https://twitter.com/Keployio"
82+
className="flex justify-center items-center text-secondary-300 hover:text-primary-300 bg-white hover:bg-white-100 rounded-full shadow transition duration-150 ease-in-out"
83+
aria-label="Twitter"
84+
>
85+
<svg
86+
className="w-8 h-8 fill-current"
87+
viewBox="0 0 32 32"
88+
xmlns="http://www.w3.org/2000/svg"
89+
>
90+
<svg
91+
className="w-8 h-8 fill-current"
92+
viewBox="0 0 32 32"
93+
xmlns="http://www.w3.org/2000/svg"
94+
>
95+
<path d="M24 11.5c-.6.3-1.2.4-1.9.5.7-.4 1.2-1 1.4-1.8-.6.4-1.3.6-2.1.8-.6-.6-1.5-1-2.4-1-1.7 0-3.2 1.5-3.2 3.3 0 .3 0 .5.1.7-2.7-.1-5.2-1.4-6.8-3.4-.3.5-.4 1-.4 1.7 0 1.1.6 2.1 1.5 2.7-.5 0-1-.2-1.5-.4 0 1.6 1.1 2.9 2.6 3.2-.3.1-.6.1-.9.1-.2 0-.4 0-.6-.1.4 1.3 1.6 2.3 3.1 2.3-1.1.9-2.5 1.4-4.1 1.4H8c1.5.9 3.2 1.5 5 1.5 6 0 9.3-5 9.3-9.3v-.4c.7-.5 1.3-1.1 1.7-1.8z"/>
96+
</svg>
97+
</svg>
98+
</a>
99+
</li>
100+
<li className="ml-4">
101+
<a
102+
href="https://www.github.com/keploy/keploy"
103+
className="flex justify-center items-center text-secondary-300 hover:text-primary-300 bg-white hover:bg-white-100 rounded-full shadow transition duration-150 ease-in-out"
104+
aria-label="Github"
105+
>
106+
<svg
107+
className="w-8 h-8 fill-current"
108+
viewBox="0 0 32 32"
109+
xmlns="http://www.w3.org/2000/svg"
110+
>
111+
<path d="M16 8.2c-4.4 0-8 3.6-8 8 0 3.5 2.3 6.5 5.5 7.6.4.1.5-.2.5-.4V22c-2.2.5-2.7-1-2.7-1-.4-.9-.9-1.2-.9-1.2-.7-.5.1-.5.1-.5.8.1 1.2.8 1.2.8.7 1.3 1.9.9 2.3.7.1-.5.3-.9.5-1.1-1.8-.2-3.6-.9-3.6-4 0-.9.3-1.6.8-2.1-.1-.2-.4-1 .1-2.1 0 0 .7-.2 2.2.8.6-.2 1.3-.3 2-.3s1.4.1 2 .3c1.5-1 2.2-.8 2.2-.8.4 1.1.2 1.9.1 2.1.5.6.8 1.3.8 2.1 0 3.1-1.9 3.7-3.7 3.9.3.4.6.9.6 1.6v2.2c0 .2.1.5.6.4 3.2-1.1 5.5-4.1 5.5-7.6-.1-4.4-3.7-8-8.1-8z"/>
112+
</svg>
113+
</a>
114+
</li>
115+
</ul>
116+
<div className="text-sm text-neutral-300 mr-4">
117+
© Keploy Inc {new Date().getFullYear()}. All rights reserved.
118+
</div>
119+
</div>
120+
</div>
28121
</footer>
29-
)
122+
);
30123
}
124+
125+

0 commit comments

Comments
 (0)