GithubHelp home page GithubHelp logo

honsa / retro-crt-startpage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scar45/retro-crt-startpage

0.0 0.0 0.0 17.21 MB

HTML5-based layout for a personalized retro CRT startpage.

Home Page: https://scar45.github.io/retro-crt-startpage/index.html

License: MIT License

JavaScript 8.29% CSS 60.09% HTML 9.81% SCSS 21.81%

retro-crt-startpage's Introduction

Retro CRT Startpage

by George Merlocco (scar45) @ https://george.merloc.co

This repository contains an HTML5-based layout for creating (or using) a personalized startpage with a retro CRT feel.

Interactive example @ http://scar45.github.io/retro-crt-startpage/index.html

Amber Screenie

Green Screenie

Features

  • Links are read in from a JSON file that's easy to update (see links.dist.json for an example)
  • Tag filters
  • Search form via DuckDuckGo (can be changed to other search providers if you wish)
  • 3 customizable design features toggled via the metal plate in the top-right area:
    • Power On/Off with CRT and sound effects
    • Animated Scanlines/Flicker effect
    • Colour choice between Amber and Green
  • Each of the settings above are saved as cookies, so the site will remember the state of what you've enabled/disabled
  • Variations of the ASCII header in ascii-headers.html, or generate your own, and paste into the <pre class="title"> tag in index.html
  • NOTE: The animated scanlines/flicker can be quite CPU intensive. Consider disabling if your system is stressed.

Editing links.json

Before working with this file, you'll need to rename the example links.dist.json to links.json. You can simply start editing the file with a text editor, and modify each link to your liking. Here's an example:

    {
      "name": "Syncthing",
      "url": "https://syncthing.net/",
      "icon": "icon-syncthing.png",
      "invert": false,
      "tags": [
        "files",
        "encrypted"
      ]
    }

Most are straight forward, however note that the icon should be a file in images/, as this path gets prepended automatically. invert, if true, will invert the colours of the icon image in the event that it is hard to see otherwise.

NOTE: As with any JSON, the last node should not contain any commas (,) -- This includes the main link, and tags arrays. Verify this first if you aren't seeing any links.

Running this startpage

Traditional web server

  • Apache, nginx, IIS, etc.
  • Download the latest release
  • Extract the .zip and rename links.dist.json to links.json
  • Edit links.json to contain the links you desire
  • Upload entire local directory to your hosted directory

Included Node.js http-server

  • Requires Node.js to be installed
  • Clone the repository, or download the latest archive, and rename links.dist.json to links.json
  • Edit links.json to contain the links you desire
  • Run:
    • npm install
    • npm start
  • Then browse to http://127.0.0.1:8080
  • If you wish, you can modify the scripts: {start} node in package.json to pass extra parameters to http-server which allows you to run on a different port, use SSL, etc.
  • Press CTRL+C to stop the server

Developing

If you just wish to use this startpage as your own, then you do not need to read this section. However, if you wish to modify the source (pull requests are encouraged!) then below is a brief outline of how this project has been put together.

Requirements

Live Coding

Install dependencies:

npm install

...then rename links.dist.json to links.json, and customize it to your heart's content.

Start a first build, then spawn webserver for live coding (browser-sync):

gulp

This will dump compiled/processed files in a ./build directory, which will then be served by browser-sync, with files being watched for changes. When changes occur, browser-sync will automagically refresh the browser.

Browsersync is used for live coding (browser-sync) which vastly accelerates development time.

Releasing

Run gulp with a parameter of release to clean the ./build directory, recompile all sources fresh, exclude unneeded files, and write a .zip file to dist/:

gulp release

...and that's about it! I hope you enjoy this little nostalgic throwback to the terminals of old.

Thanks!

Colophon

.end

retro-crt-startpage's People

Contributors

dependabot[bot] avatar scar45 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.