Update demo page
parent
a80fd2e5bd
commit
00ac23895f
|
@ -5,16 +5,28 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Vite App</title>
|
<title>Shareon Demo Page</title>
|
||||||
|
|
||||||
<link rel="stylesheet" href="./shareon.css">
|
<link rel="stylesheet" href="./shareon.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/modern-normalize@1/modern-normalize.min.css">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shareon.specimen {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<h1>Shareon Demo</h1>
|
<h1>Shareon Demo Page</h1>
|
||||||
<section>
|
<section>
|
||||||
<h2>All links</h2>
|
<h2><code><a></code></h2>
|
||||||
<div class="shareon">
|
<div class="shareon">
|
||||||
<a class="facebook"></a>
|
<a class="facebook"></a>
|
||||||
<a class="linkedin"></a>
|
<a class="linkedin"></a>
|
||||||
|
@ -32,7 +44,7 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>All buttons</h2>
|
<h2><code><button></code></h2>
|
||||||
<div class="shareon">
|
<div class="shareon">
|
||||||
<button class="facebook"></button>
|
<button class="facebook"></button>
|
||||||
<button class="linkedin"></button>
|
<button class="linkedin"></button>
|
||||||
|
@ -50,9 +62,8 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>All links with custom params</h2>
|
<h2><code><a></code> with custom params</h2>
|
||||||
<div class="shareon" data-title="shareon demo page test" data-url="https://demo.shareon.js.org"
|
<div class="shareon" data-title="shareon demo page test" data-url="https://demo.shareon.js.org" data-text="hey check this out">
|
||||||
data-via="nickkaramoff" data-text="hey check this out">
|
|
||||||
<a class="facebook"></a>
|
<a class="facebook"></a>
|
||||||
<a class="linkedin"></a>
|
<a class="linkedin"></a>
|
||||||
<a class="mastodon" data-via="@NickKaramoff@fosstodon.org"></a>
|
<a class="mastodon" data-via="@NickKaramoff@fosstodon.org"></a>
|
||||||
|
@ -62,15 +73,15 @@
|
||||||
<a class="pocket"></a>
|
<a class="pocket"></a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
<a class="telegram"></a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter"></a>
|
<a class="twitter" data-via="nickkaramoff"></a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
<a class="vkontakte"></a>
|
<a class="vkontakte"></a>
|
||||||
<a class="whatsapp"></a>
|
<a class="whatsapp"></a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>All links with texts</h2>
|
<h2>Specimen</h2>
|
||||||
<div class="shareon">
|
<div class="shareon specimen">
|
||||||
<a class="facebook">Share</a>
|
<a class="facebook">Share</a>
|
||||||
<a class="linkedin"></a>
|
<a class="linkedin"></a>
|
||||||
<a class="mastodon">Toot</a>
|
<a class="mastodon">Toot</a>
|
||||||
|
@ -80,18 +91,16 @@
|
||||||
<br />
|
<br />
|
||||||
<a class="pocket"></a>
|
<a class="pocket"></a>
|
||||||
<a class="reddit"></a>
|
<a class="reddit"></a>
|
||||||
<a class="telegram">Отправить</a>
|
<a class="telegram"></a>
|
||||||
<a class="twitter"></a>
|
<a class="twitter"></a>
|
||||||
<a class="viber"></a>
|
<a class="viber"></a>
|
||||||
<a class="vkontakte"></a>
|
<a class="vkontakte">Отправить</a>
|
||||||
<a class="whatsapp"></a>
|
<a class="whatsapp"></a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script type="module">
|
<script type="module" src="./shareon.js"></script>
|
||||||
import shareon from "./shareon.js";
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue