Giter Site home page Giter Site logo

mariobarisa / vaporflow-startpage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gaelgoth/vaporflow-startpage

0.0 0.0 0.0 5.01 MB

Vaporflow is a browser start page with daisyui distinctive aesthetic, featuring OpenWeather

License: MIT License

JavaScript 3.28% TypeScript 88.30% CSS 7.51% HTML 0.90%

vaporflow-startpage's Introduction

Vaporflow Chrome Startpage
≋≋≋(🗻📼🌸🌴⛲️🐬💾 )≋≋≋

logo

"Vaporflow is a browser start page where I have gathered the elements that I like the most about the projects found on r/startpages. This Chrome extension (and soon Firefox as well) embeds these features:"

  • Based on Tailwind CSS + Daisy UI component
  • OpenWeather
  • React + Typescript
  • Support Manifest V3

Table of Contents

Table of Contents

Intro

Welcome to the Vaporflow Chrome Extension README! Vaporflow is a stylish and customizable browser start page that is now available as a Chrome extension. Built on top of Chrome Extension Boilerplate React Vite, Vaporflow is powered by React 18 and TypeScript, and uses Vite as its build tool. The design is based on the popular Tailwind CSS framework, with added components from Daisy UI, to make customization a breeze. It supports the latest Chrome Extension Manifest V3 specification.

As soon as the Boilerplate template supports manifest v3, support will be added in this repo as well.

  • Read more about Chrome manifest v2 support here.
  • Read more about Firefox Manifest v3 support here.

Usage

Prerequisite for OpenWeather

Want to keep up-to-date with the latest weather conditions right from your start page? No problem! To add the Weather Widget to your start page, simply create an account on OpenWeather and generate an API KEY.

Setup

  1. Clone of Fork this repository.
  2. Run yarn or npm i (check your node version >= 16)
  3. Run yarn dev or npm run dev
  4. Load Extension on Chrome
    1. Open - Chrome browser
    2. Access - chrome://extensions
    3. Check - Developer mode
    4. Find - Load unpacked extension
    5. Select - dist folder in this project (after dev or build)
  5. If you want to build in production, Just run yarn build or npm run build.

Configs

With the src/pages/newtab/config.json file, you can easily set your OpenWeather API key, language, units, location, and the page themes to suit your preferences. All theme reference are available in tailwind.config.cjs.

// src/pages/newtab/config.json
{
  "username": "Gaël",
  "openweather":{
    "apikey": "YOUR_API_KEY", // 👈 Add your OpenWeather key here
    "language": "en",
    "units": "metric",
    "location": "Lausanne"
  },
  "theme": [ // 👈 See tailwind.config.cjs for more themes
    {
      "name": "Light",
      "emoji": "🖨️",
      "theme": "light"
    },
    {
      "name": "Dark",
      "emoji": "🌑",
      "theme": "dark"
    },
  ]
}

Sample theme:

alt text

Bookmarks

The configuration of bookmarks is done in src/pages/newtab/Bookmarks.tsx:

  1. Update const YourLinks = ... link list
/// src/pages/newtab/Bookmarks.tsx
  const socialLinks = [
    {
      href: "https://www.instagram.com/", // 👈 url link
      icon: <SlSocialInstagram className="hidden md:block" size={20} />, // 👈 react-icons
      text: "instagram", // 👈 displayed text
    },
    {
      href: "https://www.twitter.com/",
      icon: <SlSocialTwitter className="hidden md:block" size={20} />,
      text: "twitter",
    },
    ...
  ];
  1. Update category title
/// src/pages/newtab/Bookmarks.tsx
      <div className="col-start-2 text-center">
        <h3 className="text-accent text-xl font-semibold">Social</h3> // 👈 Category title
        {renderLinks(socialLinks)} // 👈 Link list constant
      </div>

Tech Docs

Contributing

Feel free to open PRs or raise issues!

vaporflow-startpage's People

Contributors

dependabot[bot] avatar gaelgoth 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.