-
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.
Merge pull request #16 from ernestmarcinko/dev
Dev
- Loading branch information
Showing
9 changed files
with
115 additions
and
17 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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,10 @@ | ||
import htmx from "htmx.org"; | ||
import htmxServerless from "htmx-serverless"; | ||
|
||
htmxServerless.init(htmx); | ||
|
||
function garbage() { | ||
return `<p class='idiot'>You are an idiot.</p>`; | ||
} | ||
|
||
export default garbage; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<%- include('../parts/head'); %> | ||
<script src="/dist/github-worth.js"></script> | ||
<style> | ||
.github-worth { | ||
background-image: none; | ||
} | ||
.github-worth button, | ||
.github-worth input[type="text"] { | ||
padding: 12px; | ||
border: none; | ||
border-radius: 5px; | ||
font-weight: 700; | ||
margin: 1em; | ||
} | ||
.github-worth input[type="text"] { | ||
background: var(--color-bg); | ||
border: 1px solid #354b5e; | ||
color: white; | ||
} | ||
p.idiot { | ||
font-style: italic; | ||
font-size: 2em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<main class="wrapper github-worth" role="main"> | ||
<section class="intro"> | ||
<h1 id="tw1">How much is your github repo worth?</h1> | ||
<div> | ||
<h3>Click the button to withdraw $$$</h3> | ||
<input type="text" placeholder="github username"> | ||
<button hx-get="js:garbage" hx-trigger="click" hx-target=".github-worth div" hx-ext="serverless"> | ||
Give me my money | ||
</button> | ||
</div> | ||
</section> | ||
<section style="max-width: 640px;"> | ||
<p><a href='../'><< Back Home</a></p> | ||
</section> | ||
</main> | ||
|
||
<%- include('../parts/footer'); %> | ||
</body> | ||
</html> |
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