Skip to content

Commit

Permalink
Merge pull request #424 from drmcodes/fix-footer-buttons-not-align
Browse files Browse the repository at this point in the history
fix: footer buttons not aligned properly
  • Loading branch information
jaybuidl authored Sep 4, 2024
2 parents 7dfa1c7 + a60f1b6 commit eae2c13
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 55 deletions.
3 changes: 0 additions & 3 deletions src/assets/images/twitter.svg

This file was deleted.

17 changes: 17 additions & 0 deletions src/assets/images/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 98 additions & 42 deletions src/components/footer/footer.css
Original file line number Diff line number Diff line change
@@ -1,49 +1,105 @@
.footer {
background: #4D00B4;
display: flex;
align-items: center;
justify-content: space-between;
background: #4d00b4;
color: white;
height: 60px;
font-size: 14px;
padding: 18px 25px;
padding: 18px 50px;
width: 100%;
margin-top: -60px; }
@media (max-width: 768px) {
.footer {
display: none; } }
.footer a {
color: white;
text-decoration: none; }
.footer-left {
display: inline-block;
text-align: left;
width: 33%; }
.footer-center {
display: inline-block;
margin-top: -60px;
}

@media (max-width: 768px) {
.footer {
display: block;
}
}

.footer a {
color: white;
text-decoration: none;
}

.footer-left {
display: flex;
text-align: center;
align-items: center;
justify-content: flex-start;
width: 33%;
}

.footer-center {
display: inline-block;
text-align: center;
width: 33%;
}

.footer-right {
display: flex;
justify-content: flex-end;
align-items: center;
width: 33%;
}

.footer-right-help {
width: 40%;
display: inline-block;
}

.footer-right-help-text {
display: inline-block;
padding-right: 10px;
}

.footer-right-help-icon {
width: 18px;
position: relative;
}

@media (max-width: 1130px) {
.footer-right-help {
width: 100%;
}
}

.footer-right-icons {
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}

@media (max-width: 1130px) {
.footer-right-icons {
display: flex;
}
}

@media (max-width: 858px) {
.footer {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width: 33%; }
flex-direction: column;
height: auto;
}

.footer-left,
.footer-center,
.footer-right {
justify-content: center;
width: 100%;
padding-bottom: 10px;
}

.footer-right-help {
padding-bottom: 10px;
}

.footer-right {
display: inline-block;
width: 33%;
padding-left: 10%; }
.footer-right-help {
width: 40%;
display: inline-block; }
.footer-right-help-text {
display: inline-block;
padding-right: 10px; }
.footer-right-help-icon {
width: 18px;
position: relative;
top: 4px; }
@media (max-width: 1130px) {
.footer-right-help {
width: 100%; } }
.footer-right-icons {
display: inline-block;
width: 60%;
position: relative;
top: 3px; }
.footer-right-icons a {
padding-right: 10px; }
@media (max-width: 1130px) {
.footer-right-icons {
display: none; } }
flex-wrap: wrap;
}
}
20 changes: 10 additions & 10 deletions src/components/footer/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react'
import { ReactComponent as Question } from '../../assets/images/question-circle.svg'
import { ReactComponent as Twitter } from '../../assets/images/twitter.svg'
import { ReactComponent as Github } from '../../assets/images/github.svg'
import { ReactComponent as Ghost } from '../../assets/images/ghost.svg'
import { ReactComponent as LinkedIn } from '../../assets/images/linkedin.svg'
import { ReactComponent as Telegram } from '../../assets/images/telegram.svg'
import './footer.css'
import React from "react";
import { ReactComponent as Question } from "../../assets/images/question-circle.svg";
import { ReactComponent as Twitter } from "../../assets/images/x.svg";
import { ReactComponent as Github } from "../../assets/images/github.svg";
import { ReactComponent as Ghost } from "../../assets/images/ghost.svg";
import { ReactComponent as LinkedIn } from "../../assets/images/linkedin.svg";
import { ReactComponent as Telegram } from "../../assets/images/telegram.svg";
import "./footer.css";

const Footer = () => (
<div className="footer">
Expand Down Expand Up @@ -39,6 +39,6 @@ const Footer = () => (
</div>
</div>
</div>
)
);

export default Footer
export default Footer;

0 comments on commit eae2c13

Please sign in to comment.