-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (89 loc) · 4.39 KB
/
index.html
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<title>BGS Demo</title>
</head>
<body>
<section class="full-height bg-purple" data-bgs data-bgs-size="1000" data-bgs-double>
<div class="container center-inside p-5 text-center">
<h1 class="dm-700 title text-white">BGS.js</h1>
<h4 class="dm-400 text-white">Simple background shapes for your websites.</h4>
<a href="index.html#first"><button type="button" class="btn btn-light btn-lg dm-700 mt-4">View examples</button></a>
</div>
</section>
<section class="container height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6 align-self-center">
<h2 class="dm-700 subtitle">Normal circle.</h2>
<p class="dm-400 mt-5 text-enlarged">The basic usage</p>
</div>
<div class="col-12 col-md-6" data-bgs>
</div>
</div>
</section>
<section class="container height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6" data-bgs data-bgs-color="red">
</div>
<div class="col-12 col-md-6 text-right align-self-center">
<h2 class="dm-700 subtitle">Red circle.</h2>
<p class="dm-400 mt-5 text-enlarged">Change the color with <b>"red"</b> or <b>"#ff0000"</b></p>
</div>
</div>
</section>
<section class="container height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6 align-self-center">
<h2 class="dm-700 subtitle">Width: 50</h2>
<p class="dm-400 mt-5 text-enlarged">The default width is <b>80</b></p>
</div>
<div class="col-12 col-md-6" data-bgs data-bgs-color="green" data-bgs-width="50">
</div>
</div>
</section>
<section class="container height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6" data-bgs data-bgs-color="yellow" data-bgs-opacity="0.5">
</div>
<div class="col-12 col-md-6 text-right align-self-center">
<h2 class="dm-700 subtitle">Opacity: 0.5</h2>
<p class="dm-400 mt-5 text-enlarged">The default opacity is <b>0.1</b></p>
</div>
</div>
</section>
<section class="container-fluid height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6 align-self-center text-right">
<h2 class="dm-700 subtitle">Size: 800</h2>
<h2 class="dm-700 subtitle">Position: right</h2>
<p class="dm-400 mt-5 text-enlarged">The default is <b>500</b> & <b>center</b></p>
</div>
<div class="col-12 col-md-6" data-bgs data-bgs-position="right" data-bgs-size="800">
</div>
</div>
</section>
<section class="container-fluid height-75" id="first">
<div class="row center-inside h-100">
<div class="col-12 col-md-6" data-bgs data-bgs-position="left" data-bgs-size="800" data-bgs-double data-bgs-color="gray">
</div>
<div class="col-12 col-md-6 align-self-center">
<h2 class="dm-700 subtitle">Left, 800 and double.</h2>
<p class="dm-400 mt-5 text-enlarged">Add properties as you want</p>
</div>
</div>
</section>
<script src="dist/bgs.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"></script>
</body>
</html>