-
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.
- Loading branch information
Showing
6 changed files
with
77 additions
and
13 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,70 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Farfeed Snap</title> | ||
<meta charset="utf-8"/> | ||
<meta name="viewport" content="width=device-width"/> | ||
<meta property="og:title" content="Farfeed Snap" /> | ||
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css"> | ||
<style type="text/css"> | ||
body { | ||
display:flex; | ||
justify-content:center; | ||
align-items:center; | ||
height:100vh; | ||
background-color:#fff; | ||
} | ||
#page { | ||
width:760px; | ||
} | ||
#screenshot { | ||
float:left; | ||
margin-right:36px; | ||
} | ||
#screenshot img { | ||
border:1px solid #777; | ||
border-radius:12px; | ||
} | ||
h1 { | ||
font-size:1.5rem; | ||
line-height:64px; | ||
padding:0; | ||
margin-bottom:72px; | ||
} | ||
h1 img { | ||
vertical-align:top; | ||
} | ||
h2 { | ||
font-size:1.125rem; | ||
font-weight:bold; | ||
} | ||
#footer { | ||
position:fixed; | ||
width:860px; | ||
bottom:0; | ||
left:50%; | ||
margin-left:-430px; | ||
} | ||
#links { | ||
float:right; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div id="screenshot"> | ||
<img src="screenshot.jpg" width="338" height="594" alt="Screenshot of Farfeed"> | ||
</div> | ||
<h1><img src="icon.png" width="64" height="64" alt=""> Farfeed Snap</h1> | ||
<h2>Follow the crowd.</h2> | ||
<p>Get the latest casts from the /metamask channel right inside of MetaMask!</p> | ||
<p>After installing the Snap, open the Snaps menu in MetaMask and click on Farfeed to view the feed.</p> | ||
</div> | ||
<div id="footer"> | ||
Powered by MetaMask Snaps | ||
<div id="links"> | ||
<a href="https://github.com/Montoya/farfeed-snap">GitHub</a> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 +1,6 @@ | ||
# TypeScript Example Snap | ||
# Farfeed Snap | ||
|
||
This snap demonstrates how to develop a snap with TypeScript. It is a simple | ||
snap that displays a confirmation dialog when the `hello` JSON-RPC method is | ||
called. | ||
View the latest casts from the `/metamask` channel on Warpcast inside of a | ||
MetaMask Snap! | ||
|
||
## Testing | ||
|
||
The snap comes with some basic tests, to demonstrate how to write tests for | ||
snaps. To test the snap, run `yarn test` in this directory. This will use | ||
[`@metamask/snaps-jest`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest) | ||
to run the tests in `src/index.test.ts`. | ||
Learn more and install at https://montoya.github.io/farfeed-snap/ |
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
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