Skip to content

Commit

Permalink
feat: buymeacoffee widget added (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
akosbalasko authored Nov 24, 2022
1 parent 9af42b0 commit 909d545
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<link rel="import" href="sections/template.html">
<link rel="import" href="sections/output.html">
<link rel="import" href="sections/convert.html">
<script data-name="BMC-Widget" data-cfasync="false" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="akosbalasko" data-description="Support me on Buy me a coffee!" data-message="" data-color="#40DCA5" data-position="Right" data-x_margin="18" data-y_margin="18"></script>
</head>
<body>

Expand Down Expand Up @@ -71,7 +72,7 @@
require('./assets/js/ipc')
require('./assets/js/dialog')
</script>


</body>
</html>
2 changes: 1 addition & 1 deletion src/ui/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const defaultTemplate = fs.readFileSync(`${__dirname}/../../sampleTemplate.tmpl`
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({titleBarStyle: 'hidden',
width: 1281,
width: 1600,
height: 800,
minWidth: 1281,
minHeight: 800,
Expand Down
21 changes: 19 additions & 2 deletions src/ui/sections/convert.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@

<template class="section-template">
<section id="convert" class="wrapper style1 fullscreen intro">
<section id="convert" class="wrapper style2 spotlights">
<div class="inner">
<h2> Step 5: Convert </h2>

<ul class="actions">
<li><a href="#" id="startConversion" class="button">Start conversion!</a></li>
</ul>
<div class="split style1">

<section>
<div class="field">
<label for="logArea">Logs</label>
<textarea name="logArea" id="logArea" rows="10"></textarea>
<textarea name="logArea" id="logArea" rows="25"></textarea>
</div>
</section>

<section>
<div class="field" style="padding-left: 20px">
<label>Satisfied with the results?</label>
<div>You can show your appreciation by</div>
<div>giving a <a class="github-button" href="https://github.com/akosbalasko/yarle" target="_blank" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" height="41" width="174" data-size="large" data-show-count="true" aria-label="Star akosbalasko/yarle on GitHub">star on github</a></div>
<br>
<div>or, if you can afford, <strong>click to the coffee cup down there, and buy me a coffee!</strong></div>
<br>
<div><strong>Thank you so much! &#x1F918 </strong></div>
</div>
</section>

</div>
<!-- Place this tag where you want the button to render. -->
</div>
</section>
</template>
4 changes: 2 additions & 2 deletions src/ui/sections/output.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ <h2>Step 4: Set your output folder</h2>

<span id='outputDirectory' size=50></span>


</div>

</section>
</template>

0 comments on commit 909d545

Please sign in to comment.