-
Notifications
You must be signed in to change notification settings - Fork 3
/
home.js
88 lines (68 loc) · 1.76 KB
/
home.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*
HOME PAGE
*/
import Header from './core/header/index.js';
import Banner from './core/banner/index.js';
import Recs from './core/recs/index.js';
import Contact from './core/contact/index.js';
import Features from './core/features/index.js';
import Footer from './core/footer/index.js';
import Google from './lib/google.js';
import {Render, Text} from './lib/core.js';
async function Values() {
// Pull Content
let content = await Text('pages');
let w = content.home;
const html =
`<section class="silver">
<div class="box">
<div class="box_two left">
<img src="assets/img/home-components.png" alt="Web Components" />
</div>
<div class="box_two right">
<h3>${w.H1}</h3>
<p>${w.M1}</p>
</div>
</div>
</section>
<section>
<div class="box">
<div class="box_two left">
<h3>${w.H2}</h3>
<p>${w.M2}</p>
</div>
<div class="box_two right">
<img src="assets/img/home-assets.png" alt="Static Assets" />
</div>
</div>
</section>
<section class="silver">
<div class="box">
<div class="box_two left">
<img src="assets/img/home-hosting.png" alt="Free Hosting" />
</div>
<div class="box_two right">
<h3>${w.H3}</h3>
<p>${w.M3}</p>
</div>
</div>
</section>`;
Render(html, document.querySelector('#values'));
}
async function Home() {
// Pull Content
let content = await Text('pages');
let w = content.home;
let img = "assets/img/bg-home.jpg";
let msg = w.banner;
let sub = w.sub;
Google()
Header('', 'light');
Banner(img, msg, sub);
Features();
Values();
Recs();
Contact();
Footer();
}
export default Home();