-
Notifications
You must be signed in to change notification settings - Fork 8
/
index-2019.html
91 lines (86 loc) · 3.16 KB
/
index-2019.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
<!DOCTYPE html>
<html>
<head>
<!-- always start with these two lines to set a clean baseline for different devices -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/gun/examples/style.css">
<script src="https://cdn.jsdelivr.net/npm/gun/examples/jquery.js"></script>
<title>Decentralized Database</title>
</head>
<body class="black whitet">
<style>
/*
Choose white text on a black background so you can add color in.
Pick your favorite font and choose a font size.
*/
@import url('https://fonts.googleapis.com/css?family=Raleway');
html, body {
font-family: "Raleway", sans-serif;
}
a {
background: transparent;
}
.icon {
height: 1.5em;
}
.fade {
opacity: 0.75;
transition: all 0.3s;
}
.fade:hover {
opacity: 1;
}
button {
font-size: 100%;
padding: 1em;
background: transparent;
border: 1px solid white;
border-radius: 1.5em;
color: white;
margin: 0.5em;
margin-bottom: 0;
cursor: pointer;
}
button:hover {
background: white;
color: black;
}
</style>
<!-- for educational sites, consider starting with a nice full screen welcome message -->
<div id="hi" class="hold full hue center">
<div class="row">
<a href="https://era.eco" class="left stack gap fade"><img src="https://gun.eco/media/era.png" class="icon"></a>
<a href="https://github.com/amark/gun" class="right stack gap fade"><img src="https://gun.eco/media/github.svg" class="icon"></a>
</div>
<div class="focus min row leak gap">
<!-- just like in real life, looking pretty attracts attention, so show off and look glamorous! -->
<img id="logo" src="https://gun.eco/media/gun.svg" style="margin-top: 4%; width: 30%; min-width: 250px;">
</div>
<div class="focus row">
<p class="loud">protecting <span id="many"></span> people's privacy <span></span></p>
<p>the decentralized database for developers.</p>
<a href="https://gun.eco/docs/Todo-Dapp"><button>GET STARTED</button></a>
<a href="https://gun.eco/docs/API"><button>DOCUMENTATION</button></a>
</div>
<script>
;(function(){
var c = ['hue', 'hue2', 'hue3', 'hue4'], d;
var hi = $('#hi'), logo = $('#logo'), w = $(window).on('mousemove touchmove', function(eve){
eve = eve.originalEvent || eve;
eve = (eve.touches && eve.touches[0]) || eve;
var x = eve.clientX - (w.outerWidth()/2), y = eve.clientY - (w.outerHeight()/2);
logo.css({'transform': 'rotateX('+y/15+'deg) rotateY('+x/15+'deg)'});
hi.removeClass(c.join(' '));
if(x < 0 && y < 0){ hi.addClass('hue2') } else
if(x > 0 && y < 0){ hi.addClass('hue4') } else
if(x < 0 && y > 0){ hi.addClass('hue3') } else
if(x > 0 && y > 0){ hi.addClass('hue') }
});
//$.getJSON('https://guntest.herokuapp.com/gun/stats.radata'), function(data){ console.log(data) });
}());
</script>
<a href="https://gitter.im/amark/gun" class="left stack gap fade" style="position: absolute; bottom: 0; left: 0;"><img src="https://gun.eco/media/gitter.svg" class="icon"></a>
<a href="https://twitter.com/marknadal" class="right stack gap fade" style="position: absolute; bottom: 0; right: 0;"><img src="https://gun.eco/media/twitter.png" class="icon"></a>
</div>
</body>
</html>