-
-
Notifications
You must be signed in to change notification settings - Fork 357
/
Copy pathFooter.js
196 lines (177 loc) · 4.88 KB
/
Footer.js
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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import React from 'react'
import styled from '@emotion/styled'
import { themeColors } from './settings'
import Logo from './Logo'
import { Link } from './Button'
import { FaTwitter, FaGithub, FaFacebookF, FaLinkedinIn } from 'react-icons/fa'
const FooterContainer = styled.footer`
width: 100%;
background-color: ${themeColors.dark};
color: ${themeColors.light};
padding: 3em 1em;
box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
`
const FooterContent = styled.div`
max-width: 1200px;
margin: 0 auto;
`
const FooterColumns = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: space-between;
`
const FooterColumn = styled.div`
flex: 1;
min-width: 250px;
margin: 1em 0;
`
const FooterTitle = styled.h4`
margin-bottom: 1em;
color: ${themeColors.primary};
`
const FooterLink = styled(Link)`
display: block;
color: ${themeColors.light};
text-decoration: none;
margin: 0.5em 0;
transition: color 0.3s;
&:hover {
color: ${themeColors.primary};
}
`
const SocialIcons = styled.div`
display: flex;
margin-top: 1em;
`
const SocialIcon = styled.a`
width: 40px;
height: 40px;
margin-right: 0.5em;
display: inline-flex;
align-items: center;
justify-content: center;
color: ${themeColors.light};
background-color: ${themeColors.lightGrey};
border-radius: 50%;
transition: background-color 0.3s, color 0.3s;
text-decoration: none;
&:hover {
background-color: ${themeColors.primary};
color: #fff;
}
`
const NewsletterForm = styled.form`
display: flex;
flex-direction: column;
`
const NewsletterInput = styled.input`
padding: 0.5em;
border: 1px solid ${themeColors.grey};
border-radius: 4px;
margin-bottom: 1em;
`
const NewsletterButton = styled.button`
padding: 0.5em;
color: #000;
background-color: ${themeColors.primary};
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: background-color 0.3s;
&:hover {
background-color: ${themeColors.secondary};
}
`
const CopyRight = styled.p`
text-align: center;
margin-top: 2em;
color: ${themeColors.grey};
font-size: 0.8em;
`
function Footer() {
return (
<FooterContainer>
<FooterContent>
<FooterColumns>
{/* Company Info */}
<FooterColumn>
<Logo size="60px" iso={false} />
<p>
Reactour helps you create guided tours in your React apps with ease.
</p>
{/* Social Media Icons */}
<SocialIcons>
<SocialIcon
href="https://twitter.com/elrumordelaluz"
target="_blank"
rel="noopener noreferrer"
aria-label="Twitter"
>
<FaTwitter />
</SocialIcon>
<SocialIcon
href="https://github.com/elrumordelaluz/reactour"
target="_blank"
rel="noopener noreferrer"
aria-label="GitHub"
>
<FaGithub />
</SocialIcon>
<SocialIcon
href="https://facebook.com"
target="_blank"
rel="noopener noreferrer"
aria-label="Facebook"
>
<FaFacebookF />
</SocialIcon>
<SocialIcon
href="https://linkedin.com"
target="_blank"
rel="noopener noreferrer"
aria-label="LinkedIn"
>
<FaLinkedinIn />
</SocialIcon>
</SocialIcons>
</FooterColumn>
{/* Navigation Links */}
<FooterColumn>
<FooterTitle>Quick Links</FooterTitle>
<FooterLink
href="https://docs.react.tours"
target="_blank"
rel="noopener noreferrer"
>
Documentation
</FooterLink>
<FooterLink
href="https://github.com/elrumordelaluz/reactour"
target="_blank"
rel="noopener noreferrer"
>
GitHub Repository
</FooterLink>
<FooterLink href="/about">About Us</FooterLink>
<FooterLink href="/contact">Contact Us</FooterLink>
</FooterColumn>
{/* Newsletter Subscription */}
<FooterColumn>
<FooterTitle>Newsletter</FooterTitle>
<p>Subscribe to our newsletter for the latest updates.</p>
<NewsletterForm>
<NewsletterInput type="email" placeholder="Your email address" />
<NewsletterButton type="submit">Subscribe</NewsletterButton>
</NewsletterForm>
</FooterColumn>
</FooterColumns>
{/* Copyright */}
<CopyRight>
© {new Date().getFullYear()} Reactour. All rights reserved.
</CopyRight>
</FooterContent>
</FooterContainer>
)
}
export default Footer