footer ui changes

This commit is contained in:
Priyatham Sai Chand 2021-04-21 10:37:13 +05:30
parent 4e20978e81
commit 0ac0ba1ad1
6 changed files with 14 additions and 11 deletions

View File

@ -1,4 +1,6 @@
.App{
margin-bottom: 46px;
}
.App-logo { .App-logo {
height: 40vmin; height: 40vmin;
pointer-events: none; pointer-events: none;

View File

@ -4,11 +4,13 @@ import {Footer } from '../src/components/Footer'
import {Header } from '../src/components/Header' import {Header } from '../src/components/Header'
import {MainPage } from '../src/components/MainPage' import {MainPage } from '../src/components/MainPage'
import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/css/bootstrap.min.css';
import '../src/components/styles.css';
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
<MainPage /> <MainPage />
</div> </div>
); );
} }

View File

@ -9,6 +9,7 @@ export class Footer extends Component {
render() { render() {
return( return(
<div class="footer">
<div className="d-flex align-items-center text-center"> <div className="d-flex align-items-center text-center">
<div className="footer-text">Copyright © 2019</div> <div className="footer-text">Copyright © 2019</div>
<div className="footer-text">HodlInfo.com</div> <div className="footer-text">HodlInfo.com</div>
@ -17,6 +18,7 @@ export class Footer extends Component {
<a href="mailto:support@hodlinfo.com" class="footer-text-link">Support</a> <a href="mailto:support@hodlinfo.com" class="footer-text-link">Support</a>
</div> </div>
</div> </div>
</div>
) )
} }
} }

View File

@ -7,6 +7,7 @@ export const MainPage = () => {
const [isLightTheme, setIsLightTheme ] = useState(false); const [isLightTheme, setIsLightTheme ] = useState(false);
const [countDownTimer, setCountDownTimer] = useState(60); const [countDownTimer, setCountDownTimer] = useState(60);
useEffect(() => { useEffect(() => {
if(countDownTimer == 0) setCountDownTimer(60);
countDownTimer > 0 && setTimeout(() => setCountDownTimer(countDownTimer - 1), 1000); countDownTimer > 0 && setTimeout(() => setCountDownTimer(countDownTimer - 1), 1000);
}, [countDownTimer]) }, [countDownTimer])
const onThemeButtonClick = () => { const onThemeButtonClick = () => {
@ -133,8 +134,8 @@ const onThemeButtonClick = () => {
<img src="BannerFTXNews.png" style={{ width: "100%" }} /></a> <img src="BannerFTXNews.png" style={{ width: "100%" }} /></a>
</div> </div>
<Footer /> <Footer />
</div>
<div class="d-flex justify-content-center" style={{border:"solid 1px #191d28","background-color":"#191d28",position:"fixed",left:"0","align-items":"center",width:"100vw",height:"47px",bottom:"0","z-index":"8"}}><button class="add-button btn btn-outline-info" style={{display: "block"}}>Add hodlinfo to home screen</button></div> <div class="d-flex justify-content-center" style={{border:"solid 1px #191d28","background-color":"#191d28",position:"fixed",left:"0","align-items":"center",width:"100vw",height:"47px",bottom:"0","z-index":"8"}}><button class="add-button btn btn-outline-info" style={{display: "block"}}>Add hodlinfo to home screen</button></div>
</div>
</React.Fragment> </React.Fragment>
) )

View File

@ -305,6 +305,8 @@
} }
.theme-dark .footer { .theme-dark .footer {
border-top: 2px solid #2e3241; border-top: 2px solid #2e3241;
color: white;
background-color: #2e3241;
} }
.theme-dark .header-button { .theme-dark .header-button {
background-color: #2e3241; background-color: #2e3241;

View File

@ -1,12 +1,6 @@
* { html{
margin: 0; margin-top: -16px;
padding: 0; }
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
body { body {
margin: 0; margin: 0;