Giter Club home page Giter Club logo

root-startpage's Introduction

Root is a start-page aimed to simplicity and elegance

This project is blazing fast โšก, it only contains an html, css and javascript files.

Customizing

Root was created to be lightweight, fast and easy to customize.

Changing Colors

To change the colors used in the startpage edit styles.css.

:root {
  --primary: #dd2e44;
  --text-light: #eeeeee;
  --background: #1e1c21;
  --background-light: #333138;
}

Changing Name and Adding Custom Cards

This project uses Remix Icons.

To change the default name and edit the cards, edit app.js. It should look something like this:

const NAME = "John Doe";

const CARDS = [
  {
    name: "Twitter",
    icon: "ri-twitter-fill",
    link: "https://twitter.com",
  },
  {
    name: "Github",
    icon: "ri-github-fill",
    link: "https://github.com/",
  },
];

To add a new card, just append a new object to the CARDS constant. The object should look something like this:

{
  name: "<Webpage Name>",
  icon: "<Icon Class-Name>",
  link: "<Webpage Link>",
  clipboard: true,
  color: '#550499'
},

To get the icon class-name, just go to Remix Icons, select the desired icon. You should see something like this: <i class="this-is-the-class-name"></i>.

If you prefer to copy the link to the clipboard instead of the default behavior, just add clipboard: true to the card object.

Optional individual card accent color can be achieved by setting a color: string property in the card object.

To use 24 hour time simply change the time section of app.js to

// Update the Time
  currentTime.innerHTML = `${currentHour}:${currentMinute}`;

root-startpage's People

Contributors

1ardotno avatar imreyesjorge avatar technowhizz avatar xelarate86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

root-startpage's Issues

not issue, just update

Custom colors for every card for example: discord purple, reddit orange, spotify green, youtube red etc.
unnamed

Opening links in a new tab

I love the start-page!

Would it be possible to add a function to define per card if it opens in a new tab/page of in the same window?

No script support

Hey this looks great!

It would be awesome to have this supported with JavaScript disabled.

Iโ€™m thinking a build step that statically renders the cards, and a noscript tag for the clock.

Iโ€™ll see if I can add it sometime ๐Ÿ‘

Allow option to open in new tab.

Hello!

Since iframes are blocked from loading in another site, I would like the links to open in a new tab. Please advise solutions or add a option. Thank you!

Not an issue, more a question!

I love this start page! I've been using it for a while and want to change something slightly, but can't seem to figure it out.

I want one of my button cards to just copy the link to my clipboard instead of opening the page. I know how to create and call an onclick function, but since this is rendered dynamically in the app.js file, I'm not exactly sure where to add the function.

I've tried adding a function with an if statement to the bottom of app.js, but it doesn't seem to work and continues to just open the webpage. I suppose when the card is created with the <a tag, I could say if the currentCard.href is link_xyz, add a script + onclick function? Not sure how nesting functions like that works in Javascript - I'm the least familiar with js.

Any tips or suggestions?

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.