Skip to content

Commit 1ad51f3

Browse files
committed
add star button to examples
1 parent 3ac1c73 commit 1ad51f3

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

examples/parallax-example/index.html

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>Example: React Scroll Parallax</title>
6+
<title>React Scroll Parallax</title>
77
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/6.0.0/normalize.css">
88
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:700i" rel="stylesheet">
9+
<style>
10+
.star {
11+
position: fixed;
12+
top: 1em;
13+
right: 1em;
14+
}
15+
</style>
916
</head>
1017
<body>
1118
<div id="root">$react</div>
19+
<div class="star">
20+
<a class="github-button" href="https://github.com/jscottsmith/react-scroll-parallax" data-icon="octicon-star" aria-label="Star jscottsmith/react-scroll-parallax on GitHub">Star</a>
21+
</div>
1222
<script src="/static/bundle.js"></script>
23+
<script async defer src="https://buttons.github.io/buttons.js"></script>
1324
</body>
1425
</html>

examples/parallax-test/index.html

+11
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@
66
<title>React Scroll Parallax</title>
77
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/6.0.0/normalize.css">
88
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono:300,700" rel="stylesheet">
9+
<style>
10+
.star {
11+
position: fixed;
12+
top: 1em;
13+
right: 1em;
14+
}
15+
</style>
916
</head>
1017
<body>
1118
<div id="root">$react</div>
19+
<div class="star">
20+
<a class="github-button" href="https://github.com/jscottsmith/react-scroll-parallax" data-icon="octicon-star" aria-label="Star jscottsmith/react-scroll-parallax on GitHub">Star</a>
21+
</div>
1222
<script src="/static/bundle.js"></script>
23+
<script async defer src="https://buttons.github.io/buttons.js"></script>
1324
</body>
1425
</html>

0 commit comments

Comments
 (0)