forked from cristinalare/green-pill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
205 lines (180 loc) · 9.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GreenPill.Party</title>
<meta name="description" content="Build a more solarpunk future by getting Green Pilled, pledge to support public goods + join the Green Pill Party today.">
<link rel="stylesheet" href="./css/reset.css" type="text/css">
<link rel="stylesheet" href="./css/style.min.css" type="text/css">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@500&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="https://s.gitcoin.co/static/v2/images/favicon.ico/apple-touch-icon.486115005c66.png"/>
<link rel="icon" href="./images/greenpill-party.svg" type="image/gif"/>
<link rel="shortcut icon" href="https://greenpill.party/images/greenpill-party.svg"/>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@gitcoin">
<meta name="twitter:creator" content="@owocki">
<meta name="twitter:title" content="GreenPill.Party">
<meta name="twitter:description" content="Build a more solarpunk future by getting Green Pilled, pledge to support public goods + join the Green Pill Party today.">
<meta name="twitter:image" content="https://greenpill.party/images/greenpill-card.jpeg">
<meta property="og:title" content="greenpill.party" />
<meta property="og:type" content="blockchain" />
<meta property="og:url" content="https://greenpill.party" />
<meta property="og:image" content="https://greenpill.party/images/greenpill-card.jpeg" />
<meta property="og:description" content="Build a more solarpunk future by getting Green Pilled, pledge to support public goods + join the Green Pill Party today." />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DPDC59RT5Y"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-DPDC59RT5Y');
</script>
</head>
<body>
<header>
<a class="logo" href="#">
<img src="./images/greenpill-logo.svg" alt="Green Pill logo"/>
</a>
<nav>
<ul>
<li><a href="#book">BOOK2</a></li>
<li><a href="#podcast">PODCAST</a></li>
<li><a href="#pledge">PLEDGE</a></li>
</ul>
</nav>
</header>
<main>
<div class="hero" id="hero">
<img class="hero-background" src="./images/hero-background.svg" alt="">
<div class="hero-content">
<h1 class="slide right">Take the<br>Green Pill</h1>
<a href="#pledge" class="button large green cta">Take the Pledge</a>
</div>
<img class="hero-logo" src="./images/greenpill-party.svg" alt="green pill party logo" width="799" height="816">
</div>
<!-- book -->
<div class="book" id="book">
<img src="./images/book-cover.svg" alt="Green Pill book cover" width="35%">
<div class="book-content">
<h2 class="slide left hidden-right">Purchase the <br>Green Pill book</h2>
<div class="book-content-buttons">
<div class="book-button-container">
<a class="button green" id="hardcover-button" href="https://www.blurb.com/b/11078160-greenpilled-regenerative-cryptoeconomics" target="_blank">Hardcover</a>
<p class="price">($69.42)</p>
</div>
<div class="book-button-container">
<a class="button green" href="https://www.blurb.com/bookstore/invited/9502747/c7ff865edc08edd6b595c5a9bf5bd613117953e7" target="_blank">Softcover</a>
<p class="price">($33.33)</p>
</div>
<div class="book-button-container">
<a class="button green" href="https://store.gitcoin.co/products/green-pill-book-digital-edition" target="_blank">Ebook</a>
<p class="price">($13.37)</p>
</div>
</div>
<a class="preview" download="Green Pill preview" href="./preview.pdf">Download a preview</a>
<a class="preview" download="Green Pill preview" href="https://store.gitcoin.co/search?q=greenpill&options%5Bprefix%5D=last">Translations</a>
</div>
</div>
<!-- podcast -->
<div class="podcast-container" id="podcast">
<div class="podcast-background">
<img class="effects" src="./images/podcast-background-effects.svg" alt="background-effects"/>
<div class="podcast">
<div class="podcast-content">
<h2 class="slide right hidden-left">Subscribe<br>to the<br>Green Pill<br>podcast</h2>
<a href="https://pod.link/1609313639" target="_blank" class="button">Listen</a>
</div>
<img src="./images/podcast-cover.svg" alt="greenpill podcast cover" width="48%"/>
</div>
</div>
</div>
<!-- telegram -->
<div class="telegram">
<h2>Join the<br>conversation</h2>
<a class="button large green" href="https://t.me/+g9TM8i7GpxAzMGUx" target="_blank">Join Telegram Group</a>
</div>
<!-- pledge -->
<div class="pledge" id="pledge">
<form>
<h2>Make a Pledge:</h2>
<label>I've been GreenPilled!</label><br>
<label for="percentage">I Pledge</label>
<input type="text" name="percentage" id="percentage" placeholder="1%" value="1%"/>
<label for="cause">of my net worth to the cause</label>
<input type="text" name="cause" id="cause" placeholder="funding public goods" value="funding public goods"/>
<div class="form-buttons">
<div class="alert-container hide">
<div class="alertbox">
<p class="alert-msg">This is a simple tool created by the Gitcoin community to facilitate pledges to support a more Solarpunk world.</p>
<input class="btn-close-alert" type="button" value="OK"/>
</div>
</div>
<input class="btn-open-alert button-question" type="button" value="What's this?"/>
<input type="button" value="Tweet" class="button-tweet button" id="tweet"/>
</div>
<a class="announcement" href="https://www.youtube.com/watch?v=qP7wqLWV33M" target="_blank">Watch the announcement</a>
</form>
<footer>
<img src="./images/footer-icon.svg" alt="built by gitcoin community icon"/>
<span>|</span>
<a class="footer-telegram" href="https://t.me/+g9TM8i7GpxAzMGUx" target="_blank">Join the Telegram</a>
</footer>
</div>
</main>
<!-- alert box -->
<script>
let box = document.querySelector(".alert-container");
document.querySelector(".btn-open-alert").addEventListener("click", showAlert);
document.querySelector(".btn-close-alert").addEventListener("click", hideAlert);
function showAlert() {
box.classList.remove("hide");
}
function hideAlert() {
box.classList.add("hide");
}
</script>
<!-- heading animation -->
<script>
const headings = document.querySelectorAll('.slide');
const config = {
root: null,
rootMargin: "0px"
};
if ('IntersectionObserver' in window) { //set initial state to hidden
const left = document.querySelector('.hidden-left');
const right = document.querySelector('.hidden-right');
left.style.transform = 'translateX(99.9%)';
right.style.transform = 'translateX(-99.9%)';
}
observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.intersectionRatio > 0) {
entry.target.classList.add('animation');
} else {
entry.target.classList.remove('animation');
}
}, config);
});
headings.forEach(heading => {
observer.observe(heading);
});
</script>
<script>
document.getElementById('tweet').onclick = function(e){
var X = document.getElementById('percentage').value;
var cause = document.getElementById('cause').value;
var text = `💚 I took the #GreenPill and pledged ${X} of my net worth to the cause of ${cause}!
🤖❤️ If you join me we can build a #SolarPunk future together.
👉 Make the pledge here:`
var url = 'https://GreenPill.Party/'
window.open("https://twitter.com/intent/tweet?text=" +encodeURIComponent(text)+ "&url=" + encodeURI(url),"_blank");
}
</script>
</body>
</html>