mirror of
https://github.com/Xevion/old.xevion.github.io.git
synced 2025-12-06 11:15:37 -06:00
add halcyon theme to projects
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
# Personal Website V3
|
# Personal Website V3
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
- [Ruby](https://github.com/creationix/nvm)
|
|
||||||
- [Node.js](https://github.com/creationix/nvm)
|
- [Node.js](https://github.com/creationix/nvm)
|
||||||
|
- [Ruby](https://github.com/creationix/nvm)
|
||||||
- `npm install gulp-cli -g`
|
- `npm install gulp-cli -g`
|
||||||
- `gem install jekyll sass bundler jekyll-minifier jekyll-sitemap`
|
- `gem install jekyll sass bundler jekyll-minifier jekyll-sitemap`
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
1. `npm install`
|
1. `npm install`
|
||||||
1. `gulp serve` for development
|
1. `gulp serve` for development
|
||||||
1. `gulp build` for prod
|
1. `gulp build` for prod
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
- name: Halcyon Theme
|
||||||
|
url: https://marketplace.visualstudio.com/items?itemName=brittanychiang.halcyon-vscode
|
||||||
|
code: https://github.com/bchiang7/halcyon-vscode
|
||||||
|
description: A dark UI & syntax theme for Visual Studio Code. Published to Visual Studio Marketplace.
|
||||||
|
used:
|
||||||
|
- thing: JSON
|
||||||
|
- thing: VS Code
|
||||||
|
|
||||||
- name: Lonely Planet DBMS
|
- name: Lonely Planet DBMS
|
||||||
url: https://github.com/bchiang7/CS3200-Project
|
url: https://github.com/bchiang7/CS3200-Project
|
||||||
code: https://github.com/bchiang7/CS3200-Project
|
code: https://github.com/bchiang7/CS3200-Project
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
const d = new Date();
|
const d = new Date();
|
||||||
const hours = d.getHours();
|
const hours = d.getHours();
|
||||||
const nighttime = (hours >= 19) || (hours <= 7); // between 7pm and 7am
|
const night = (hours >= 19) || (hours <= 7); // between 7pm and 7am
|
||||||
const body = document.querySelector('body');
|
const body = document.querySelector('body');
|
||||||
const toggle = document.getElementById('toggle');
|
const toggle = document.getElementById('toggle');
|
||||||
const input = document.getElementById('switch');
|
const input = document.getElementById('switch');
|
||||||
|
|
||||||
if (nighttime) {
|
if (night) {
|
||||||
input.checked = true;
|
input.checked = true;
|
||||||
body.classList.add('night');
|
body.classList.add('night');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user