Skip to content
This repository was archived by the owner on Feb 7, 2022. It is now read-only.

Commit b4c95ce

Browse files
committed
Revert "New Dark Mode Button"
This reverts commit 59722f2.
1 parent 59722f2 commit b4c95ce

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

src/layouts/Layout.jsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from "react";
22
import { Link } from "react-router-dom";
3-
import { faSun, faMoon } from "@fortawesome/free-solid-svg-icons";
4-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
53
import "../styles/Layout.css";
64

75
export default class Layout extends React.Component {
@@ -49,16 +47,16 @@ export default class Layout extends React.Component {
4947

5048
return (
5149
<div className="layout">
52-
<button onClick={this.toggleDarkMode} className={"mode-toggle"} id={"colourToggle"}>{darkMode ? <FontAwesomeIcon icon={faSun} size="5x" style={{ color: '#222222' }}/> : <FontAwesomeIcon icon={faMoon} size="5x"/>}</button>
5350
<div className={contentClass}>
5451
{this.props.children}
5552
</div>
5653
<footer className="footer">
5754
©{" "}
58-
<a href="https://www.pogify.net/">Pogify</a> |&nbsp;
59-
<Link to="/tou">Terms of Use</Link> |&nbsp;
60-
<Link to="/privacy">Privacy Policy</Link>
61-
<br/>
55+
<a href="https://www.pogify.net/">Pogify</a>{" "}|{" "}
56+
<Link to="/tou">Terms of Use</Link>{" "}|{" "}
57+
<Link to="/privacy">Privacy Policy</Link>{" "}|{" "}
58+
<button onClick={this.toggleDarkMode} className={"mode-toggle"}>Switch to {darkMode ? 'Light' : 'Dark'} Mode!</button>
59+
<br />
6260
<a href="https://www.spotify.com">Spotify</a> is copyright Spotify AB and is not affiliated with Pogify.
6361
</footer>
6462

src/styles/Layout.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,3 @@
7676
text-decoration: underline;
7777
}
7878

79-
#colourToggle{
80-
position:absolute;
81-
right: 20px;
82-
top: 20px;
83-
}

0 commit comments

Comments
 (0)