Git Product home page Git Product logo

presqu11's Introduction

enter image description here

For all information, read the wiki.

Windows 11 native-like apps using Javascript and HTML. Works with Electron and NW.js !

Download latest version

Preview of the window

Installation

Grab this repository and import it into your project's folder.

In your HTML file

import Presqu'11 CSS files in your tag

<head>
  <link rel="stylesheet" href="presqu11.css">
</head>

and then import the JS at the end of

<body>
  <!-- your code -->

  <!-- importing Presqu'11 -->
  <script src="presqu11.js"></script>
</body>

Usage

To use Presqu'11 components, just add them in your HTML file.

Title bar / Topbar

Preview of topbar

The topbar is a key element of a Windows app. This one has been recreated from scratch using CSS, to fit Windows 11 guidelines.

<w11-topbar icon="//your icon//" title="//your title//"></w11-topbar>

NWJS users : Controls like close, maximize etc... already works straight from with no additionnal code. Dragging works too.

Electron users : Dragging works out-of-the-box, but controls will not work and may crash the app

Tabs

To use tabs, you need two key things : a tab and a way to select tabs. Both are included and works with no additionnal code.

Tabs explaination

Tab selection (w11-tabs)

Tab selection preview

<w11-tabs default="// default tab //">
      <w11-tab-select icon="// icon //" text="Tab 1" for="tab1" class="selected"></w11-tab-select>
      <w11-tab-select icon="// icon //" text="Tab 2" for="tab2"></w11-tab-select>
  </w11-tabs>
  • default="" tells which tab should be shown by default. The default app should also get the class="selected" to be selected in the selection.
  • The rest of the code is pretty self-explainatory, try by yourself.*

Tab (w11-tab)

The tab is what should be shown to users (it contains the main content).

<w11-tab id="tab11">
      <w11-tab-title>Tab 1</w11-tab-title>
      <w11-tab-content>
      </w11-tab-content>
</w11-tab>

The ID should be the same as for="" in your tab selection, otherwise, it may crash the app.

The <w11-tab-title> is optionnal, but recommended for user experience If used, you should add your content in <w11-tab-content>. If you don't use <w11-tab-title>, it's optionnal to use <w11-tab-content>.

Other components

For the other components, read the wiki.

presqu11's People

Contributors

ecnivtwelve 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

Watchers

 avatar

presqu11's Issues

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.