Skip to content
/ UI Public

Welcome to Our Web UI-gilob. <Front-end development> 🥴

License

Notifications You must be signed in to change notification settings

uigilob/UI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ui-gilob

UI-Gilob


CDN

<link href="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.css" rel="stylesheet" type="text/css">
<script src="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.js"></script>
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>smaple</title> <!-- defulat  scropts-->
  <link href="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.css" rel="stylesheet" type="text/css">
  <script src="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.js"></script>
</head>

<body>
  <div class="h1 t-center">Hello World</div>
  <script>
   $alert("Hello World")
 </script>
</body>

</html>

dynamic-load

<div
    htp-get="/hello.html"
    htp-load="[event]"
    htp-t="[target]" 
    htp-swap="[swap-method]">
</div>
<div class="target"
    htp-get="/hello.html"
    htp-swap="append"
    htp-sync="true"
    htp-load="click">
  Click show button to load Content
</div>

dropdown

<button class="dropdown" d-event="click" data="post-id-2" d-defind="rest" dropdown="trigger">rest</button>

<ul class="dropdown-menu" overflow-x="nowrap" d-event="mouseover" d-defind="rest">
    <a href="#home">Home</a>
    <a>About</a>
    <a disabled>Services</a> <!-- Target disabled: This item is disabled and cannot be clicked. -->
    <a event="remove">Contact</a>
    <!-- Not closeable when clicked: This item will not close the dropdown when clicked. -->
    <button event="remove">Button</button>
</ul>

$http GET

  var req = $http.get('/data', { param1: 'value1', param2: 'value2' });

   req.done(function(response) {
     console.log('GET request successful:', response);
   }).error(function() {
     console.log('Error occurred during the GET request.');
   });

Theme

Ajax

components

functions

events

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>smaple</title>
    <link href="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.css" rel="stylesheet" type="text/css">
    <script src="https://cdn.jsdelivr.net/gh/uigilob/UI@main/src/ui-gilob.js"></script>
</head>

<body class="theme fixed p0 over-x-adjust center">
    <!-- Sidebar -->
    <nav class="sidebar b-right" s-defind="menu">
        <!-- Sidebar Header -->
        <div class="padding-cnt bar-exp">Sidebar Header</div>

        <!-- Sidebar Content -->
        <div class="sidebar-content flex flex-col gap-l-f padding-cnt">
            Sidebar Content
        </div>

        <!-- Sidebar Footer -->
        <div class="padding-cnt" cnt-tag="footer">Sidebar Footer</div>
    </nav>

    <!-- Main Content Body -->
    <div class="body flex flex-col">
        <!-- Header -->
        <header class=" center-tb b-b p gap" md-fix="true">
            <a href="/" class="h6 bold c-p ">BRAND</a>
            <button class="button m-auto-l" sidebar="trigger" s-defind="menu">Menu</button>
        </header>

        <!-- Content Area -->
        <div class="home padding-cnt d-scroll">
            <h1 class="h1 t-center">Heading of a Blog Post</h1>
            <!-- Add your main content here -->
        </div>
    </div>

    <!-- Add your scripts or other body elements here -->

</body>

</html>

Getting Started

Visit https://ui.gilob.in/get-started to get started with UI-Gilob.

CH-Py modules

<link href="https://cdn.gilob.in/v1/import.css?c=all&g=t&f=all" rel="stylesheet" type="text/css">
  <script src="https://cdn.gilob.in/v1/import.js?c=all&g=t&g=hl&f=all"></script>
<!-- Import all modules -->
<link href="/import.css?c=all" rel="stylesheet" type="text/css">
<script src="/import.js?c=all&g=cmd"></script>

<!-- Or import specific modules -->
<link href="/import.css?c=b&c=at" rel="stylesheet" type="text/css">
<script src="/import.js?c=b&c=at"></script>

Multiple Parts Importing

You can import multiple parts using the following syntax:

<!-- Import multiple parts -->
<link href="/import.css?c=tb" rel="stylesheet" type="text/css">
<script src="/import.js?c=tb"></script>

<!-- Import additional modules -->
<link href="/modules.css?c=b&c=at" rel="stylesheet" type="text/css">
<script src="/import.js?c=b&c=at"></script>

Default Imports

Here's a list of default imports in [Your Web UI Framework/Library Name]:

  • functions Import functions
  • Ajax Import Ajax-related modules, including
    • $Http
    • $htp
  • theme theme

Global

The global table consists of various import keys that allow you to import multiple modules or components at once. Here a breakdown of the available global import keys

Import Key Description
g=all Import all modules globals
g=e Event bind
g=c Event cmd
g=t template
g=hl dynamic loading (Ajax)

Components

The components table lists the available components in [Your Web UI Framework/Library Name], along with their corresponding import keys and descriptions:

Component Import Key Description
all c=all all Component
Alert c=a Component for displaying alerts/messages
Avatar c=at Component for displaying user avatars
Breadcrumbs c=bc Navigation trail indicating the current page's location
Button c=b UI button component
Clipboard c=cb Copy to clipboard functionality
Collapsible c=c Component for creating collapsible sections
Dialog c=dl Modal dialog component
Dropdown c=d Dropdown/select component
Image c=i Component for displaying images
Loader c=l Loading indicator component
Pagination c=p Pagination component for navigating through data
Pop Title c=pt Popup title component
Table c=t Table component for displaying tabular data
Tabs c=tb Tabs component for organizing content
Tabstack c=tk Tabstack component for organizing multiple tabs

Form

Component Import Key Description
all f=all all input component
Checkbox f=c Checkbox input component
Input f=i Text input component
Progress f=p Progress bar component
Radio f=r Radio button input component
Range f=rg Range/slider input component
Select f=s Select dropdown input component
Textarea f=t Textarea input component