@zumer/orbit 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,90 +1,162 @@
1
1
 
2
2
  <p align="center">
3
3
  <a href="http://zumerlab.github.io/orbit-docs">
4
- <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/favicon.svg" width="200">
4
+ <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/orbithero.gif" width="100%">
5
5
  </a>
6
6
  </p>
7
-
8
7
  <p align="center">
9
- <b>ORBIT</b>
8
+ <a href="#installation"><b>⚙️ Install</b></a>
9
+ <a href="#features"><b>🤖 Features</b></a> •
10
+ <a href="#examples"><b>🎮 Examples</b></a> •
11
+ <a href="https://zumerlab.github.io/orbit-docs" target="_blank"><b>📚 Docs</b></a> •
12
+ <a href="https://github.com/zumerlab/orbit/discussions" target="_blank"><b>💬 Github Discussions</b></a> •
13
+ <a href="https://t.me/ZumlyCommunity" target="_blank"><b>🧑‍💻 Telegram Group</b></a>
10
14
  </p>
11
15
  <p align="center">
12
- <b>Create radial interfaces using only CSS.</b>
16
+ <b>Use Orbit to create amazing radial UIs using CSS only!</b>
13
17
  </p>
14
18
 
15
19
  <p align="center">
16
20
  <a href="https://www.npmjs.com/package/@zumer/orbit"><img src="https://img.shields.io/github/package-json/v/zumerlab/orbit"></a>
17
-
18
21
  </p>
19
22
 
20
23
  <p align="center">
21
- <a href="https://github.com/zumerlab/orbit/blob/main/CONTRIBUTING.md" target="_blank"> Get involved</a> and spread the word! <a href="https://github.com/zumerlab/orbit/stargazers"> <img src="https://img.shields.io/github/stars/zumerlab/orbit.svg?label=%E2%98%85%20Stars&logo=-&style=social"></a>
22
-
24
+ <a href="#stay-in-orbit"><b>Get involved</b></a>, leave a star <a href="https://github.com/zumerlab/orbit/stargazers"> <img src="https://img.shields.io/github/stars/zumerlab/orbit.svg?label=%E2%98%85%20Stars&logo=-&style=social"></a>
23
25
  </p>
24
26
 
25
- ## Orbit in short
26
27
 
27
- **Orbit** is a CSS framework designed to create radial UI designs effortlessly. It provides intuitive CSS classes and standard web components for building radial menus, dashboards, creative portfolios, or a cutting-edge applications.
28
+ ## 🖖 Orbit in a nutshell
28
29
 
29
- ## Examples
30
- Taste what can be done with Orbit by [checking out this examples](https://zumerlab.github.io/orbit-docs/examples)
30
+ **Orbit** is the first general-purpose CSS framework designed specifically for radial user interfaces. We've used the latest CSS features to make building radial layouts a breeze. It provides intuitive CSS classes and Custom Elements for building radial menus, dashboards, creative portfolios, or a cutting-edge applications.
31
+
32
+ ## Why Orbit?
33
+
34
+ Because creating radial UIs generally involves resorting to JS or other languages to calculate angles, radius, distances, etc. **Orbit** helps and saves you a lot of time by allowing you to build these UIs with just CSS.
31
35
 
32
36
  ## Status
37
+ > We’re in the early stages of development, things are still evolving. You’re welcome to explore and experiment, but keep in mind that names, features, and functionalities may change as we refine our project. We appreciate your understanding and flexibility during this exciting phase!
38
+
39
+ ## What is radial UI?
40
+
41
+ Radial UI refers to a design paradigm where elements are organized and laid out in a circular or radial pattern, rather than the traditional grid-based or linear layouts. This approach can create visually appealing and intuitive interfaces, especially for applications that involve:
42
+
43
+ - Circular data visualization (e.g., pie charts, multi-level pie charts, gauges, watch faces)
44
+ - Navigation menus or controls (e.g., radial or pie menus, circular scrolling)
45
+ - Dashboards (e.g., car dashboards, infotainment, smart-home dashboards)
46
+ - Landing pages (e.g., Orbit website landing page)
47
+
48
+ **Characteristics of Radial UI:**
49
+
50
+ - Circular layout: Elements are arranged in a circular or curved pattern.
51
+ - Center-focused: The center of the circle often serves as a focal point.
52
+ - Symmetry: Radial UIs often exhibit symmetry, creating a sense of balance.
53
+ - Angular relationships: Elements are positioned at specific angles relative to each other.
54
+
55
+ **Benefits of Radial UI:**
56
+
57
+ - Aesthetics: Radial designs can be visually stunning and engaging.
58
+ - Intuitive navigation: Circular layouts can simplify navigation and reduce cognitive load.
59
+ - Space efficiency: Radial UIs can make efficient use of screen real estate.
60
+
61
+ ## Features
62
+
63
+ With Orbit, you can:
64
+
65
+ - ⁠Build any kind of radial UI using our predefined CSS classes that do the heavy lifting.
66
+ - ⁠Easily compose simple or complex radial designs by combining Orbit elements.
67
+ - ⁠Use Orbit alongside other traditional CSS frameworks.
68
+ - ⁠Get started quickly with our detailed documentation, examples, and guides that walk you through using Orbit's features effectively.
69
+
70
+ ## 🚀 Try Orbit now!
71
+
72
+ To quickly get a taste of Orbit, you can try it directly in a [Orbit Codepen template](https://codepen.io/pen?template=KKjaoRj).
73
+
74
+ ## Installation
75
+
76
+ Orbit comes with just two files: `orbit.css` (or `orbit.min.css`), and `orbit.js` (or `orbit.min.js`).
77
+
78
+ ### Getting the Orbit files:
79
+
80
+ You have three ways to get **Orbit** files:
81
+
82
+ #### 1. Download the Orbit files
83
+
84
+ - Get the **Orbit CSS file**: [orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css) or [orbit.min.css (minified)](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css)
33
85
 
34
- We’re in the early stages of development, things are still evolving. You’re welcome to explore and experiment, but keep in mind that names, features, and functionalities may change as we refine our project. We appreciate your understanding and flexibility during this exciting phase!
86
+ - Get the **Orbit JS file**: [orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js) or [orbit.min.js (minified)](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js)
35
87
 
36
- ## Installation & quick start
37
88
 
38
- This guide will help you quickly get started and install everything you need.
89
+ #### 2. Use Orbit via CDN (content delivery network)
39
90
 
40
- ### Step 1: Include Orbit stylesheet
91
+ - For latest version of **Orbit CSS file**:
41
92
 
42
- To start using Orbit, include its CSS in your HTML file. You have two options:
93
+ Uncompressed version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css)
43
94
 
44
- 1. **Download or Import the CSS file**:
45
- - **Download**: Download the CSS file from [here](https://unpkg.com/@zumer/orbit@latest/dist/orbit.css) and link it in your HTML file:
46
- ```html
47
- <head>
48
- <link rel="stylesheet" href="path/to/orbit.css">
49
- </head>
50
- ```
51
- - **Import**: Add the following to your stylesheet:
52
- ```css
53
- @import url('path/to/orbit.css');
54
- ```
95
+ Minified version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.css)
55
96
 
56
- 2. **Include via CDN**:
57
- - Add this to your HTML file:
58
- ```html
59
- <head>
60
- <link rel="stylesheet" href="https://unpkg.com/@zumer/orbit@latest/dist/orbit.css">
61
- </head>
62
- ```
97
+ - For latest version of **Orbit JS file**:
63
98
 
64
- ### Step 2: Include Orbit JavaScript (Recommended)
99
+ Uncompressed version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js)
65
100
 
66
- If you plan to use additional features like radial progress bars, curved text, and slices, include Orbit's JavaScript. You can do this in two ways:
101
+ Minified version: [https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js](https://unpkg.com/@zumer/orbit@latest/dist/orbit.min.js)
67
102
 
68
- 1. **Download the JavaScript file**:
69
- - Download from [here](https://unpkg.com/@zumer/orbit@latest/dist/orbit.js).
70
- - Link it in your HTML file:
71
- ```html
72
- <head>
73
- <script src="path/to/orbit.js" defer></script>
74
- </head>
75
- ```
76
103
 
77
- 2. **Include via CDN**:
78
- - Add this to your HTML file:
79
- ```html
80
- <head>
81
- <script src="https://unpkg.com/@zumer/orbit@latest/dist/orbit.js" defer></script>
82
- </head>
83
- ```
104
+ #### 3. Install Orbit via a Package Manager
84
105
 
85
- ### Step 3: Set up Orbit layout
106
+ You can also install Orbit using **npm** or **yarn**:
86
107
 
87
- Now, create a container with the `gravity-spot` class, and within it, add a radial layout using the `orbit` class. Inside the `orbit`, add radial elements, such us: `satellite` class or `o-text` web component . Here’s a minimal working example:
108
+ ```sh
109
+ npm install @zumer/orbit
110
+ ```
111
+
112
+ Or
113
+
114
+ ```sh
115
+ yarn add @zumer/orbit
116
+ ```
117
+
118
+ ### Setting up Orbit in your project:
119
+
120
+ After install Orbit, follow this simple steps to get Orbit working.
121
+
122
+ #### Link Orbit files or CDN in your HTML file:
123
+
124
+ If you have downloaded them just use `<link> tag ` for the CSS file, and `<script> tag` for the JS file within the `<head>` section:
125
+
126
+ In case you have downloaded the files:
127
+
128
+ ```html
129
+ <head>
130
+ <link rel="stylesheet" href="path/to/orbit.css">
131
+ <script src="path/to/orbit.js"></script>
132
+ </head>
133
+ ```
134
+
135
+ In case you are using CDN:
136
+
137
+ ```html
138
+ <head>
139
+ <link rel="stylesheet" href="https://unpkg.com/@zumer/orbit@latest/dist/orbit.css">
140
+ <script src="https://unpkg.com/@zumer/orbit@latest/dist/orbit.js"></script>
141
+ </head>
142
+ ```
143
+
144
+ > **Tip for CSS file**: You can use `@import` CSS rule in your `<style> tag` to import the **CSS file**:
145
+ >
146
+ > Downloaded file:
147
+ > ```css
148
+ > @import url('path/to/orbit.css');
149
+ > ```
150
+ > Or via CDN:
151
+ >```css
152
+ > @import url('https://unpkg.com/@zumer/orbit@latest/dist/orbit.css');
153
+ > ```
154
+
155
+ ## 🏁 Quick start
156
+
157
+ ### Basic Orbit layout
158
+
159
+ Just add `.bigbang` CSS class in a HTML element like `<div>`. Then use `.gravity-spot` class, and within it, add another element with `.orbit` class. Finally, inside `.orbit` element, add radial elements, such us: `.satellite`, `.vector`, `.side`, or `<o-text>`, `<o-arc>`, `<o-progress>` web components . Here’s a minimal working example:
88
160
 
89
161
  ```html
90
162
  <!DOCTYPE html>
@@ -112,19 +184,103 @@ Now, create a container with the `gravity-spot` class, and within it, add a radi
112
184
  </html>
113
185
  ```
114
186
 
115
- ### Step 4: Install via Package Manager (Optional)
187
+ ## Radial elements
116
188
 
117
- You can also install Orbit using npm or yarn for easier management in your project:
189
+ ### Bigbang
118
190
 
119
- ```sh
120
- npm install @zumer/orbit
121
- ```
191
+ The foundation of every Orbit project, serving as a container for your application.
192
+
193
+ ### Gravity-spot
194
+
195
+ The parent container for organizing Orbit elements within a radial layout.
196
+
197
+ ### Orbit
198
+
199
+ Defines a circular path around a .gravity-spot, with variations from .orbit-0 to .orbit-24. Within .orbit element, various Orbit elements such as `satellites`, `o-arcs`, `o-progress`, `vectors`, `sides`, and `o-texts` can be positioned.
122
200
 
123
- ## Want to learn more about Orbit? read our documentation
201
+ ### Satellite
202
+
203
+ Places elements along an .orbit or .orbit-* path, serving as content containers or nesting points for other orbits.
124
204
 
125
- Check our detailed docs [here.](https://zumerlab.github.io/orbit-docs)
205
+ ### Vector
206
+
207
+ Renders perpendicular lines across orbits, perfect for creating connector lines or minute marks.
208
+
209
+ ### Side
210
+
211
+ Generates a regular polygon figure when used with other sides.
212
+
213
+ ### O-Text
214
+
215
+ A web-component for rendering curved text.
216
+
217
+ ### o-arc
218
+
219
+ A web-component for rendering radial slices, arcs, or pies.
220
+
221
+ ### O-Progress
222
+
223
+ A web-component for rendering a radial progress bar.
224
+
225
+
226
+ ## Examples
227
+
228
+ ### A dashboard
229
+
230
+ <p align="center">
231
+ <a href="https://zumerlab.github.io/orbit-docs/examples/#a-dashboard" target="_blank">
232
+ <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo1.png" width="60%">
233
+ </a>
234
+ </p>
235
+
236
+
237
+ ### An orbital map
238
+
239
+ <p align="center">
240
+ <a href="https://zumerlab.github.io/orbit-docs/examples/#an-abstract-orbital-map" target="_blank">
241
+ <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo2.png" width="60%">
242
+ </a>
243
+ </p>
244
+
245
+ ### A watch
246
+
247
+ <p align="center">
248
+ <a href="https://zumerlab.github.io/orbit-docs/examples/#a-watch" target="_blank">
249
+ <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo3.png" width="60%">
250
+ </a>
251
+ </p>
252
+
253
+ ### The solar system
254
+
255
+ <p align="center">
256
+ <a href="https://zumerlab.github.io/orbit-docs/examples/#the-solar-system" target="_blank">
257
+ <img src="https://raw.githubusercontent.com/zumerlab/orbit-docs/main/public/images/demo4.png" width="60%">
258
+ </a>
259
+ </p>
260
+
261
+
262
+ > **Show & Tell**:
263
+ >
264
+ > Join to [Discussion section](https://github.com/zumerlab/orbit/discussions/15) and show off what have you done with Orbit.
265
+
266
+
267
+ ## 🥋 Mastering Orbit
268
+
269
+ Read the Orbit docs [here.](https://zumerlab.github.io/orbit-docs)
126
270
 
127
271
  ## Stay in orbit
128
272
 
129
- There are many way to contribute to Orbit development. Check our [guide.](https://github.com/zumerlab/orbit/blob/main/CONTRIBUTING.md)
273
+ There are many ways to **contribute** to **Orbit** development:
274
+
275
+ - [**Contribution guidelines**](https://github.com/zumerlab/orbit/blob/main/CONTRIBUTING.md): This guide outlines how you can contribute to Orbit, help us test and improve it, and share your experiences with the community.
276
+ - [**GitHub discussions**](https://github.com/zumerlab/orbit/discussions): Engage with other contributors, ask questions, and share your experiences.
277
+ - [**Telegram group**](https://t.me/ZumlyCommunity): Join our Telegram group for real-time discussions and updates.
278
+
279
+
280
+
281
+ ## License
282
+
283
+ [MIT](https://github.com/zumerlab/orbit/blob/main/LICENSE)
284
+
285
+
130
286