Skip to content

Commit 8c812f6

Browse files
author
Arghya Ghosh
authored
Merge pull request #140 from javaistic/add-made-in-india-badge
Add Made with ❤️ in India badge.
2 parents 68aeb72 + a3f1299 commit 8c812f6

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

src/components/home/Footer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { programsNav } from '@/navs/program'
55
import clsx from 'clsx'
66
import Link from 'next/link'
77
import styles from './Footer.module.css'
8+
import MadeInBadge from './MadeInBadge'
89

910
const footerNav = {
1011
'Getting started': {
@@ -146,8 +147,9 @@ export function Footer() {
146147
Status
147148
</p>
148149
</a>
149-
<span className="mt-4 inline-flex justify-center sm:ml-auto sm:mt-0 sm:justify-start">
150-
</span>
150+
<div className="mt-4 inline-flex justify-center sm:ml-auto sm:mt-0 sm:justify-start">
151+
<MadeInBadge />
152+
</div>
151153
</div>
152154
</div>
153155
</footer>

src/components/home/MadeInBadge.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { IndianFlag } from '@/components/Logos'
2+
3+
export default function MadeInBadge() {
4+
return (
5+
<div className="title-font flex items-center justify-center pl-6 font-medium text-gray-900 md:justify-start">
6+
<div className="mt-2 flex items-center text-sm text-gray-500 dark:text-gray-300">
7+
Made with
8+
<div className="heart mx-2"></div>
9+
in
10+
<p className="sr-only">India</p>
11+
<IndianFlag className="ml-2 h-4 w-auto rounded-sm" />
12+
</div>
13+
</div>
14+
)
15+
}

src/css/main.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,51 @@ thead tr th {
5252
.prose strong {
5353
font-weight: 700;
5454
}
55+
56+
/* Heart */
57+
58+
.heart {
59+
position: relative;
60+
width: 10px;
61+
height: 10px;
62+
background-color: red;
63+
transform: rotate(45deg) scale(1);
64+
border-radius: 0 0 2px 0;
65+
animation: pumpHeart 1500ms ease-in-out infinite;
66+
}
67+
.heart::before,
68+
.heart::after {
69+
content: '';
70+
position: absolute;
71+
width: 100%;
72+
height: 100%;
73+
border-radius: 50%;
74+
background-color: red;
75+
}
76+
.heart::before {
77+
transform: translateY(-50%);
78+
}
79+
.heart::after {
80+
transform: translateX(-50%);
81+
}
82+
83+
@keyframes pumpHeart {
84+
0% {
85+
transform: rotate(45deg) scale(1);
86+
}
87+
50% {
88+
transform: rotate(45deg) scale(1);
89+
}
90+
60% {
91+
transform: rotate(45deg) scale(1.2);
92+
}
93+
80% {
94+
transform: rotate(45deg) scale(0.95);
95+
}
96+
90% {
97+
transform: rotate(45deg) scale(1);
98+
}
99+
100% {
100+
transform: rotate(45deg) scale(1);
101+
}
102+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy