pdfequips-footer 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Footer.tsx +172 -140
- package/components/FooterLinks.tsx +18 -18
- package/index.scss +10 -10
- package/package.json +2 -2
- package/scss/_footer.scss +215 -206
- package/scss/_mixins.scss +47 -47
- package/src/content/content-ar.ts +158 -158
- package/src/content/content-es.ts +158 -158
- package/src/content/content-fr.ts +156 -156
- package/src/content/content-hi.ts +156 -156
- package/src/content/content-zh.ts +157 -157
- package/src/content/content.ts +156 -156
- package/src/getFooterContent.ts +32 -32
- package/src/getFooterLinks.ts +32 -32
- package/todo.txt +1 -0
package/components/Footer.tsx
CHANGED
|
@@ -1,140 +1,172 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
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
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
import {
|
|
2
|
+
FaFacebook,
|
|
3
|
+
FaInstagram,
|
|
4
|
+
FaLinkedinIn,
|
|
5
|
+
FaXTwitter,
|
|
6
|
+
FaTiktok,
|
|
7
|
+
FaReddit,
|
|
8
|
+
} from "react-icons/fa6";
|
|
9
|
+
import FooterLinks from "./FooterLinks";
|
|
10
|
+
import { getFooterContent } from "../src/getFooterContent";
|
|
11
|
+
import { getFooterLinks } from "../src/getFooterLinks";
|
|
12
|
+
export const Footer = ({
|
|
13
|
+
includeTools = true,
|
|
14
|
+
title,
|
|
15
|
+
lang,
|
|
16
|
+
}: {
|
|
17
|
+
title: string;
|
|
18
|
+
lang: string;
|
|
19
|
+
includeTools?: boolean;
|
|
20
|
+
}) => {
|
|
21
|
+
const footer = getFooterContent(lang);
|
|
22
|
+
const footerLinks = includeTools ? getFooterLinks(lang) : [];
|
|
23
|
+
return (
|
|
24
|
+
<footer id="footer">
|
|
25
|
+
<div className="container">
|
|
26
|
+
<div className="footer-wrapper">
|
|
27
|
+
<div className="copyright-row">
|
|
28
|
+
<p className="copyright-text col text-muted mb-0 py-0">
|
|
29
|
+
{footer.brand} © {new Date().getFullYear()} ® - {title}
|
|
30
|
+
</p>
|
|
31
|
+
<div className="socials">
|
|
32
|
+
<a
|
|
33
|
+
href="https://www.facebook.com/pdfequips4real"
|
|
34
|
+
target="_blank"
|
|
35
|
+
className="facebook"
|
|
36
|
+
>
|
|
37
|
+
<FaFacebook size="25" />
|
|
38
|
+
</a>
|
|
39
|
+
<a
|
|
40
|
+
href="https://twitter.com/PDFEquips"
|
|
41
|
+
target="_blank"
|
|
42
|
+
className="twitter"
|
|
43
|
+
>
|
|
44
|
+
<FaXTwitter size="25" />
|
|
45
|
+
</a>
|
|
46
|
+
<a
|
|
47
|
+
href="https://www.instagram.com/sanusihassan122/"
|
|
48
|
+
target="_blank"
|
|
49
|
+
>
|
|
50
|
+
<svg width="0" height="0">
|
|
51
|
+
<radialGradient id="rg" r="150%" cx="30%" cy="107%">
|
|
52
|
+
<stop stopColor="#fdf497" offset="0"></stop>
|
|
53
|
+
<stop stopColor="#fdf497" offset="0.05"></stop>
|
|
54
|
+
<stop stopColor="#fd5949" offset="0.45"></stop>
|
|
55
|
+
<stop stopColor="#d6249f" offset="0.6"></stop>
|
|
56
|
+
<stop stopColor="#285AEB" offset="0.9"></stop>
|
|
57
|
+
</radialGradient>
|
|
58
|
+
</svg>
|
|
59
|
+
|
|
60
|
+
<FaInstagram size="25" className="instagram" />
|
|
61
|
+
</a>
|
|
62
|
+
<a
|
|
63
|
+
href="https://www.linkedin.com/in/sanusi-hassan-umar-343a6011a/"
|
|
64
|
+
target="_blank"
|
|
65
|
+
className="linkedin"
|
|
66
|
+
>
|
|
67
|
+
<FaLinkedinIn size="25" />
|
|
68
|
+
</a>
|
|
69
|
+
<a
|
|
70
|
+
href="https://www.reddit.com/r/pdfequips/"
|
|
71
|
+
target="_blank"
|
|
72
|
+
className="reddit"
|
|
73
|
+
>
|
|
74
|
+
<FaReddit size="25" />
|
|
75
|
+
</a>
|
|
76
|
+
<a
|
|
77
|
+
href="https://www.tiktok.com/@pdfequips"
|
|
78
|
+
target="_blank"
|
|
79
|
+
className="tiktok"
|
|
80
|
+
>
|
|
81
|
+
<FaTiktok size="25" />
|
|
82
|
+
</a>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
<div className="bottom-row">
|
|
86
|
+
{!includeTools ? null : (
|
|
87
|
+
<div>
|
|
88
|
+
<strong>{footer.bottom_row.pdf_tools}</strong>
|
|
89
|
+
<FooterLinks links={footerLinks} />
|
|
90
|
+
</div>
|
|
91
|
+
)}
|
|
92
|
+
<div>
|
|
93
|
+
<strong>{footer.bottom_row.languages}</strong>
|
|
94
|
+
<ul className="footer-links">
|
|
95
|
+
<li>
|
|
96
|
+
<a href="/" className="text-muted">
|
|
97
|
+
English
|
|
98
|
+
</a>
|
|
99
|
+
</li>
|
|
100
|
+
<li>
|
|
101
|
+
<a href="/ar/" className="text-muted">
|
|
102
|
+
العربية
|
|
103
|
+
</a>
|
|
104
|
+
</li>
|
|
105
|
+
<li>
|
|
106
|
+
<a href="/es/" className="text-muted">
|
|
107
|
+
Español
|
|
108
|
+
</a>
|
|
109
|
+
</li>
|
|
110
|
+
<li>
|
|
111
|
+
<a href="/fr/" className="text-muted">
|
|
112
|
+
Français
|
|
113
|
+
</a>
|
|
114
|
+
</li>
|
|
115
|
+
<li>
|
|
116
|
+
<a href="/hi/" className="text-muted">
|
|
117
|
+
हिन्दी
|
|
118
|
+
</a>
|
|
119
|
+
</li>
|
|
120
|
+
<li>
|
|
121
|
+
<a href="/zh/" className="text-muted">
|
|
122
|
+
中文
|
|
123
|
+
</a>
|
|
124
|
+
</li>
|
|
125
|
+
</ul>
|
|
126
|
+
</div>
|
|
127
|
+
<div>
|
|
128
|
+
<strong>{footer.bottom_row.company}</strong>
|
|
129
|
+
<ul className="footer-links">
|
|
130
|
+
<li>
|
|
131
|
+
<a href="/about" className="text-muted">
|
|
132
|
+
{footer.bottom_row.about}
|
|
133
|
+
</a>
|
|
134
|
+
</li>
|
|
135
|
+
<li>
|
|
136
|
+
<a href="/faq" className="text-muted">
|
|
137
|
+
{footer.bottom_row.faq}
|
|
138
|
+
</a>
|
|
139
|
+
</li>
|
|
140
|
+
<li>
|
|
141
|
+
<a href="/blog/" className="text-muted">
|
|
142
|
+
{footer.bottom_row.blog}
|
|
143
|
+
</a>
|
|
144
|
+
</li>
|
|
145
|
+
<li>
|
|
146
|
+
<a href="/contact" className="text-muted">
|
|
147
|
+
{footer.bottom_row.contact}
|
|
148
|
+
</a>
|
|
149
|
+
</li>
|
|
150
|
+
</ul>
|
|
151
|
+
</div>
|
|
152
|
+
<div>
|
|
153
|
+
<strong>{footer.bottom_row.legal.title}</strong>
|
|
154
|
+
<ul className="footer-links">
|
|
155
|
+
<li>
|
|
156
|
+
<a href="/privacy-policy" className="text-muted">
|
|
157
|
+
{footer.bottom_row.legal.privacy_policy}
|
|
158
|
+
</a>
|
|
159
|
+
</li>
|
|
160
|
+
<li>
|
|
161
|
+
<a href="/terms" className="text-muted">
|
|
162
|
+
{footer.bottom_row.legal.terms}
|
|
163
|
+
</a>
|
|
164
|
+
</li>
|
|
165
|
+
</ul>
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</footer>
|
|
171
|
+
);
|
|
172
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
interface FooterLinkProps {
|
|
2
|
-
links: { URL: string, text: string }[];
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
const FooterLinks: React.FC<FooterLinkProps> = ({ links }) => {
|
|
6
|
-
return (
|
|
7
|
-
<ul className="footer-links">
|
|
8
|
-
{links.map((link, index) => (
|
|
9
|
-
<li key={index}>
|
|
10
|
-
<a href={`${link.URL}`} target="_blank" rel="noopener noreferrer">
|
|
11
|
-
{link.text}
|
|
12
|
-
</a>
|
|
13
|
-
</li>
|
|
14
|
-
))}
|
|
15
|
-
</ul>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
1
|
+
interface FooterLinkProps {
|
|
2
|
+
links: { URL: string, text: string }[];
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
const FooterLinks: React.FC<FooterLinkProps> = ({ links }) => {
|
|
6
|
+
return (
|
|
7
|
+
<ul className="footer-links">
|
|
8
|
+
{links.map((link, index) => (
|
|
9
|
+
<li key={index}>
|
|
10
|
+
<a href={`${link.URL}`} target="_blank" rel="noopener noreferrer">
|
|
11
|
+
{link.text}
|
|
12
|
+
</a>
|
|
13
|
+
</li>
|
|
14
|
+
))}
|
|
15
|
+
</ul>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
19
|
export default FooterLinks;
|
package/index.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// these are two packages i installed
|
|
2
|
-
@import "~cssmolecule";
|
|
3
|
-
@import "~custom-bs";
|
|
4
|
-
@import "./scss/mixins";
|
|
5
|
-
@include bootstrap;
|
|
6
|
-
|
|
7
|
-
body {
|
|
8
|
-
min-height: 2040px;
|
|
9
|
-
}
|
|
10
|
-
|
|
1
|
+
// these are two packages i installed
|
|
2
|
+
@import "~cssmolecule";
|
|
3
|
+
@import "~custom-bs";
|
|
4
|
+
@import "./scss/mixins";
|
|
5
|
+
@include bootstrap;
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
min-height: 2040px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
11
|
@import "./scss/footer";
|