Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed alignment and email container of Footer #403

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 43 additions & 47 deletions src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -1,58 +1,54 @@
.footer-link {
position: relative;
text-decoration: none;
color: white;
font-size: 18px;
}

.footer-link::after {
content: '';
position: absolute;
width: 0%;
height: 2px;
bottom: -5px;
left: 0;
background-color: white;
transition: all 0.3s ease-in-out;
}

.footer-link:hover {
color: #00FF00;
position: relative;
text-decoration: none;
color: white;
font-size: 18px;
}

.footer-link::after {
content: '';
position: absolute;
width: 0%;
height: 2px;
bottom: -5px;
left: 0;
background-color: white;
transition: all 0.3s ease-in-out;
}

.footer-link:hover::after {
width: 100%;
}

.email-container input[type="text"] {
width: 80%;
}

@media screen and (max-width: 768px) {
.footer-link {
font-size: 16px;
}
.footer-link:hover::after {

.email-container {
width: 100%;
background-color: #00FF00;
padding: 0 1rem;
}

#title{
margin-left: -50px;
@media (min-width: 786px) and (max-width: 905px) {

margin-left: 0;
}
@media (width: 319px) {
margin-left: 0;
.email-container input[type="text"] {
width: 70%;
}
@media (max-width: 319px) {
margin-left: 0;


}
}

.footer {
background-color: #000;
background-color: var(--footer-color);
padding: 2rem 0;
text-align: center;
}
.container input {
width: auto;

@media screen and (max-width: 480px) {
.footer-link {
font-size: 14px;
}


@media (min-width: 786px) and (max-width: 905px) {
.container {
width: 90% !important;
}

.email-container input[type="text"] {
width: 100%;
}
}

66 changes: 29 additions & 37 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ import {
WebsiteRights,
Footerbg,
FooterLinkInitial,
SocialMediaWrap,
} from "./FooterElements";
import { Height, Padding } from "@mui/icons-material";
import { blue } from "@mui/material/colors";
import { RiH5, RiHome3Line } from "@remixicon/react";

const Footer = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -71,28 +69,23 @@ const Footer = () => {
<FooterLinkItems>
<ListItem>
<ListItemIcon style={{ minWidth: "0px" }}>
{/* <LocationOn style={{ marginRight: '0.5rem',color:' #FDA5A4' }} /> */}
<lord-icon
style={{
Height: "25px",
width: "25px",
}}
style={{ height: "25px", width: "25px" }}
src="https://cdn.lordicon.com/surcxhka.json"
trigger="hover"
stroke="bold"
colors="primary:#ffffff,secondary:#ffffff"
></lord-icon>{" "}
</ListItemIcon>
<ListItemText primary="ABCDEF, Rohini, ND-India" className="footer-link" />
<ListItemText
primary="ABCDEF, Rohini, ND-India"
className="footer-link"
/>
</ListItem>
<ListItem>
<ListItemIcon style={{ minWidth: "0px" }}>
{/* <Phone style={{ marginRight: '0.5rem',color:' #FDA5A4' }} /> */}
<lord-icon
style={{
Height: "25px",
width: "25px",
}}
style={{ height: "25px", width: "25px" }}
src="https://cdn.lordicon.com/srsgifqc.json"
trigger="hover"
colors="primary:#ffffff"
Expand All @@ -104,19 +97,20 @@ const Footer = () => {
style={{ textDecoration: "none", color: "inherit" }}
>
</a>
<a href="tel:+01234567890" style={{ textDecoration: 'none', color: 'inherit' }}>
<ListItemText primary="+012 345 67890" className="footer-link"/>

<a
href="tel:+01234567890"
style={{ textDecoration: "none", color: "inherit" }}
>
<ListItemText
primary="+012 345 67890"
className="footer-link"
/>
</a>
</ListItem>
<ListItem>
<ListItemIcon style={{ minWidth: "0px" }}>
{/* <Mail style={{ marginRight: '0.5rem',color:' #FDA5A4' }} /> */}
<lord-icon
style={{
Height: "25px",
width: "25px",
}}
style={{ height: "25px", width: "25px" }}
src="https://cdn.lordicon.com/xtzvywzp.json"
trigger="hover"
colors="primary:#ffffff"
Expand All @@ -129,9 +123,14 @@ const Footer = () => {
>

</a>
<a href="mailto:[email protected]" style={{ textDecoration: 'none', color: 'inherit' }}>
<ListItemText primary="[email protected]" className="footer-link"/>

<a
href="mailto:[email protected]"
style={{ textDecoration: "none", color: "inherit" }}
>
<ListItemText
primary="[email protected]"
className="footer-link"
/>
</a>
</ListItem>
</FooterLinkItems>
Expand Down Expand Up @@ -209,33 +208,30 @@ const Footer = () => {
</FooterLinkInitial>
usiness Hours
</FooterLinkTitle>
<FooterLinkItems style={{ marginRight: "50px" }}>
<FooterLinkItems style={{ marginRight: "10px" }}>
<ListItem>

<ListItemText primary="Monday - Friday : 9am - 5pm" />
</ListItem>
<ListItem>
<ListItemText primary="Saturday : 9am - 12pm" />
</ListItem>
<ListItem>
<ListItemText primary="Sunday : Closed" />

</ListItem>
</FooterLinkItems>
</FooterLinkItems>
</FooterLinksWrapper>
</FooterLinksContainer>

<div
className="container"
style={{ display: "inline-block", marginTop: "-15rem" , width: "90%" }}

>
<h5 style={{ color: "white", marginLeft: "0rem",fontWeight:"bold" }}> Email Us</h5>
<div
style={{
display: "flex",
alignItems: "center",
marginLeft: "25rem",
justifyContent: "center",
marginBottom: "28px",
}}
>
Expand All @@ -245,8 +241,7 @@ const Footer = () => {
placeholder="Type your message here"
style={{
padding: "3px",
width: "auto",
marginLeft: "-25rem",

height: "2rem",
fontSize: "15px",
borderRadius: "8px",
Expand All @@ -257,7 +252,7 @@ const Footer = () => {
/>
<a
href="mailto:[email protected]"
style={{ display: "flex", alignItems: "center" }}
style={{ display: "flex", alignItems: "center", marginLeft: "0.5rem" }}
>
<SendIcon
style={{
Expand All @@ -266,15 +261,12 @@ const Footer = () => {
width: "30px",
padding: "3px",
cursor: "pointer",
marginBottom: "-1px",
}}
/>
</a>
</div>
</div>

<WebsiteRights style={{ marginTop: "3rem" }}>
EmoWell © {new Date().getFullYear()}&nbsp;All rights reserved.
</WebsiteRights>
</FooterWrap>
</FooterContainer>
Expand Down