Skip to content

Commit

Permalink
Merge pull request #229 from sonechca/issue-193-sonechca
Browse files Browse the repository at this point in the history
Create sky theme changing CSS and add new dropdown-item in HTML
  • Loading branch information
DavidMatthewFraser authored Oct 15, 2020
2 parents 60ce122 + f74e949 commit a7b6adf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions home-page/themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,30 @@ let winter = {
"section-header-color": "white",
};

let sky = {
themeName: "sky",
"page-background": "#58B1FF",
"sectionContainer-background": "#E3F5F8",
"header-background": "#239CFF",
"header-color": "white",
"contributor-background": "#B8DEFF ",
"panel-background": "#B8DEFF ",
"panel-border-left": "15px solid #669DA5 ",
"contributor-name-color": "#B8DEFF ",
"role-color": "#620050",
"github-btn-background": "#3b0632",
"chooseTheme-background": "#B8DEFF",
"btn-default-background": "#B8DEFF ",
"btn-primary-background": "#B8DEFF ",
"btn-default-color": "black",
"btn-primary-color": "white",
"comment-slide-background": "#B8DEFF",
"comment-slide-color": "black",
"widget-background": "#B8DEFF",
"section-header-color": "white",
"footer-bg": "hsl(0,0%,5%)"
};

//Dropdown onclick listeners
defaultTheme.onclick = () => {
changeTheme(pageDefault);
Expand All @@ -237,6 +261,9 @@ abyssTheme.onclick = () => {
winterTheme.onclick = () => {
changeTheme(winter);
}
skyTheme.onclick = () => {
changeTheme(sky);
}
//Change Theme with jQuery selectors
let changeTheme = (theme) => {
localStorage.setItem("theme", JSON.stringify(theme));
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h3>Home</h3>
<a class="dropdown-item" href="#" id="pumpkinSpiceTheme">Pumpkin Fall Theme</a>
<a class="dropdown-item" href="#" id="abyssTheme">Abyss Theme</a>
<a class="dropdown-item" href="#" id="winterTheme">Winter Theme</a>
<a class="dropdown-item" href="#" id="skyTheme">Sky Theme</a>

</div>
</div>
Expand Down

0 comments on commit a7b6adf

Please sign in to comment.