Skip to content

Commit a8b9c9b

Browse files
committed
sponsor
1 parent 999361b commit a8b9c9b

File tree

1 file changed

+93
-2
lines changed

1 file changed

+93
-2
lines changed

examples/index.html

+93-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script type="text/javascript" charset="utf-8"> hljs.initHighlightingOnLoad(); </script>
1313
<script async defer src="https://buttons.github.io/buttons.js"></script>
1414
<link rel="stylesheet" href="highlight/github.css" type="text/css" media="screen" />
15-
<link href="https://fonts.googleapis.com/css?family=Nunito:400,400i,700,800" rel="stylesheet">
15+
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,900,900i&display=swap" rel="stylesheet">
1616
<link href="https://fonts.googleapis.com/css?family=Fira+Mono:400" rel="stylesheet">
1717
<style type="text/css" media="screen">
1818
html {
@@ -21,7 +21,7 @@
2121

2222
body {
2323
font-weight: 400;
24-
font-family: "Nunito", "Helvetica Neue", arial, sans-serif;
24+
font-family: "Lato", "Helvetica Neue", arial, sans-serif;
2525
line-height: 1.666;
2626
-webkit-font-smoothing: antialiased;
2727
color: #5e6c76;
@@ -148,6 +148,74 @@
148148
a.btn { display: block; text-align: center; padding: 1rem; }
149149
}
150150

151+
.sponsor .note {
152+
font-size: 11px;
153+
text-transform: uppercase;
154+
color: #bbb;
155+
}
156+
157+
.sponsor img {
158+
display: block;
159+
max-width: 100%;
160+
}
161+
162+
.sponsor .banner {
163+
display: flex;
164+
align-items: center;
165+
justify-content: space-around;
166+
}
167+
168+
.sponsor .illustration {
169+
width: 40%;
170+
}
171+
172+
.sponsor .content {
173+
width: 50%;
174+
}
175+
176+
.sponsor .text {
177+
font-size: 16px;
178+
line-height: 1.75;
179+
margin: 28px 0;
180+
}
181+
182+
.sponsor .content .text a {
183+
color: #1284ff;
184+
border-color: #1284ff;
185+
}
186+
187+
.sponsor .content .text a:hover {
188+
color: #373a3c;
189+
border-color: #373a3c;
190+
}
191+
192+
.sponsor .button {
193+
background: #3ecf4a;
194+
border-radius: 3px;
195+
color: #fff;
196+
padding: 10px 20px;
197+
display: inline-block;
198+
border: none;
199+
}
200+
201+
.sponsor .button:hover {
202+
background: #2baf36;
203+
transform: translateY(-3px);
204+
}
205+
206+
@media only screen and (max-width: 600px) {
207+
.sponsor .note {
208+
margin-bottom: 16px;
209+
}
210+
211+
.sponsor .illustration {
212+
display: none;
213+
}
214+
215+
.sponsor .content {
216+
width: 100%;
217+
}
218+
}
151219
</style>
152220
<title>jQuery Modal</title>
153221
<meta name="description" content="jQuery Modal is the easiest way to display modal windows with jQuery. Built by Kyle Fox.">
@@ -190,6 +258,29 @@ <h1>jQuery Modal</h1>
190258

191259
<hr>
192260

261+
<div class="sponsor">
262+
<div class="note">Sponsor</div>
263+
<div class="banner">
264+
<div class="illustration">
265+
<a href="https://www.getrewardful.com/?via=jquery-modal" target="_blank">
266+
<img src="https://r.wdfl.co/financial-money-heart.svg" alt="Incentivize and reward your best promoters.">
267+
</a>
268+
</div>
269+
<div class="content">
270+
<a href="https://www.getrewardful.com/?via=jquery-modal" target="_blank">
271+
<img width="200" src="https://r.wdfl.co/rewardful-logo.svg" alt="Rewardful: simple affiliate programs for Stripe.">
272+
</a>
273+
<div class="text">
274+
<a href="https://www.getrewardful.com/?via=jquery-modal" target="_blank">Rewardful</a> is a simple way for SaaS companies to create <strong>affiliate and referral programs with Stripe.</strong>
275+
Just connect your account and let us track referrals, discounts, and commissions for you!
276+
</div>
277+
<a href="https://www.getrewardful.com/?via=jquery-modal" class="button" target="_blank">Learn more &rarr;</a>
278+
</div>
279+
</div>
280+
</div>
281+
282+
<hr>
283+
193284
<h2 id="install"><a href="#install">#</a> Install</h2>
194285

195286
<p>The simplest method is to use the hosted version from <a href="https://cdnjs.com/libraries/jquery-modal">cdnjs</a>:</p>

0 commit comments

Comments
 (0)