-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial commit; basic page, 3 components used
- Loading branch information
1 parent
7b4f3b9
commit a0dd3f0
Showing
6 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,3 +128,5 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# sourdoge | ||
# Sourdoge | ||
|
||
Purpose of this project is to demonstrate consumption of Doge Web Components. | ||
|
||
We might bake some bread here some day. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>Sourdoge</title> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<link rel="stylesheet" href="resources/prism.css"> | ||
</head> | ||
<body> | ||
|
||
<div class="page"> | ||
|
||
<header> | ||
<h1>Sourdoge</h1> | ||
<p>Demonstrating consumption of Doge Web Components. We might bake some bread here some day.</p> | ||
<hr> | ||
</header> | ||
|
||
<section> | ||
<h3>1. Add an image of a dog to your webpage (because ..why not)</h3> | ||
<pre class="language-html"> | ||
<code><script type="module" src="https://fetch.dogecoin.org/doge-pal.js"></script> | ||
<doge-pal></doge-pal></code> | ||
</pre> | ||
|
||
<script type="module" src="https://fetch.dogecoin.org/doge-pal.js"></script> | ||
<doge-pal></doge-pal> | ||
</section> | ||
|
||
<section> | ||
<h3>2. Display the current price of Dogecoin in a currency of your choice</h3> | ||
<pre class="language-html"> | ||
<code><script type="module" src="https://fetch.dogecoin.org/doge-price.js"></script> | ||
<doge-price currency="usd"></doge-price></code> | ||
</pre> | ||
|
||
<script type="module" src="https://fetch.dogecoin.org/doge-price.js"></script> | ||
<doge-price currency="usd"></doge-price> | ||
</section> | ||
|
||
<section> | ||
<h3>3. Display a Dogecoin themed QR code</h3> | ||
<pre class="language-html"> | ||
<code><script type="module" src="https://fetch.dogecoin.org/doge-qr.js"></script> | ||
<doge-qr address="D89DhnsgKncmN12RejxudfU8AwXp3946q1"></doge-qr></code> | ||
</pre> | ||
|
||
<script type="module" src="https://fetch.dogecoin.org/doge-qr.js"></script> | ||
<doge-qr address="D89DhnsgKncmN12RejxudfU8AwXp3946q1"></doge-qr> | ||
|
||
</section> | ||
|
||
<script src="resources/prism.js"></script> | ||
<script> | ||
Prism.highlightAll(); | ||
</script> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
:root { | ||
--doge-font: "Comic Sans MS", "Comic Sans", cursive; | ||
} | ||
|
||
html, body { | ||
margin: 0; | ||
padding: 1em; | ||
font-family: sans-serif; | ||
font-size: 1rem; | ||
} | ||
|
||
header { | ||
margin-bottom: 5em; | ||
} | ||
|
||
header h1 { | ||
font-family: var(--doge-font); | ||
} | ||
|
||
.page { | ||
max-width: 700px; | ||
margin: 2em auto; | ||
text-align: left; | ||
} | ||
|
||
.code { | ||
background: #fff; | ||
padding: 20px; | ||
white-space: pre-line; | ||
font-size: .8rem; | ||
} | ||
|
||
section { | ||
margin: 4em 0em; | ||
padding: 2em; | ||
border-radius: 20px; | ||
background: #f7f7f8; | ||
} | ||
|
||
section h3 { | ||
font-family: var(--doge-font); | ||
} | ||
|
||
.comic { | ||
font-family: "Comic Sans MS", "Comic Sans", cursive; | ||
} |