Skip to content

Commit 7ea27a2

Browse files
authored
Merge pull request #7 from levizwannah/develop
finished
2 parents 740ce05 + da80c07 commit 7ea27a2

File tree

5 files changed

+43
-75
lines changed

5 files changed

+43
-75
lines changed

docs/index-3.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1 class="page-heading single-col-max mx-auto">Documentation</h1>
5959
<input type="text" placeholder="Search the docs..." name="search" class="form-control search-input">
6060
<button type="submit" class="btn search-btn" value="Search"><i class="fas fa-search"></i></button>
6161
</form>
62-
</div>
62+
</div>
6363
</div>
6464
</div><!--//page-header-->
6565
<div class="page-content">
Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
class App extends OpenScript.Component {
1+
class Index extends OpenScript.Component {
22

33
async mount() {
44
await super.mount();
55
req('Sections.Header');
6-
req('Sections.Hero');
6+
req('SearchForm');
77
req('Overview');
88
}
99

@@ -19,7 +19,41 @@ class App extends OpenScript.Component {
1919

2020
h.MainHeader(),
2121

22-
h.HeroSection(),
22+
h.div(
23+
{
24+
class: 'page-header theme-bg-dark py-5 text-center position-relative'
25+
},
26+
27+
h.div(
28+
{class: 'theme-bg-shapes-right'}
29+
),
30+
31+
h.div(
32+
{class: 'theme-bg-shapes-left'}
33+
),
34+
35+
h.div(
36+
{
37+
class: 'container'
38+
},
39+
40+
h.h1(
41+
{class: 'page-heading single-col-max mx-auto'},
42+
v(context('config').site, (site) => site.value.name)
43+
),
44+
45+
h.div(
46+
{class: 'page-intro single-col-max mx-auto'},
47+
v(context('config').site, (site) => site.value.description)
48+
),
49+
50+
h.div(
51+
{class: 'main-search-box pt-3 d-block mx-auto'},
52+
53+
h.Search('hero')
54+
)
55+
)
56+
),
2357

2458
// page content
2559
h.div(

docs/js/components/Sections/Hero.js

Lines changed: 0 additions & 50 deletions
This file was deleted.

docs/js/ui-logic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ojs(async e => {
22

33
// init components
4-
req('App');
4+
req('Index');
55

66
// init contexts
77
let rc = fetchContext('root', 'Root');
@@ -17,7 +17,7 @@ ojs(async e => {
1717

1818
rc.root = h.dom.querySelector('#root');
1919

20-
h.App({
20+
h.Index({
2121
parent: rc.root
2222
});
2323

readme.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
# OpenScript.Js
2-
This is a frontend framework for developing and Managing UI's in the most elegant and easy way. It is called open script because you don't need to work with javascript modules. If you want to export, then use a `Context`. Welcome to `OJS`.
2+
A frontend framework for developing and Managing Reactive UIs in the most elegant and easy way using normal non-module base JavaScript. That is, you can run this just like every other browser script. You can use OJs as part of a project or using it to create you whole UI.
33

4-
```js
5-
const rc = context("RootCxt");
4+
Full documentation at: https://levizwannah.github.io/OpenScript.Js
65

7-
h.div(
8-
{
9-
class: "div-class",
10-
aria_labelledby: "blah blah",
11-
parent: rc.domRoot
12-
}
6+
Developed by: Levi Kamara Zwannah
137

14-
h.p("Hello Paragraph")
15-
)
16-
```
178

18-
# Core
19-
1. Components - render function do not have default arguments
20-
2. Markup
21-
3. State
22-
4. Context
23-
5. Auto Loading
24-
6. Anonymous Components

0 commit comments

Comments
 (0)