Skip to content

Commit

Permalink
Merge pull request #18 from opeolluwa/dev
Browse files Browse the repository at this point in the history
refactor
  • Loading branch information
opeolluwa authored Sep 8, 2023
2 parents 83204a1 + 3b75c4e commit 3a5cbfb
Show file tree
Hide file tree
Showing 12 changed files with 434 additions and 77 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/shell.js
/utils.db
utils.db-shm
utils.db-wal
utils.db-wal
.env
7 changes: 1 addition & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"cSpell.words": [
"sqlx"
],
"workbench.colorCustomizations": {
"activityBar.background": "#462511",
"titleBar.activeBackground": "#613417",
"titleBar.activeForeground": "#FDFAF8"
}
]
}
98 changes: 98 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ clap = {version = "4.3.23", features = ["derive"]}
console = "0.15.7"
dialoguer = {version = "0.10.4", features = ["fuzzy-select", "completion"]}
dirs = "5.0.1"
handlebars = "4.4.0"
include_dir = "0.7.3"
indicatif = "0.17.6"
lazy_static = "1.4.0"
lettre = "0.10.4"
lettre = { version = "0.10.4", features = ["tokio1", "tokio1-native-tls"] }
serde = {versio = "1.0.185", features = ["derive"]}
serde_json = "1.0.105"
sqlx = {version = "0.6.2", features = ["runtime-tokio-native-tls", "sqlite"]}
tokio = {version = "1.20.0", features = ["macros"]}
uuid = {version = "1.4.1", features = ["v4", "fast-rng", "macro-diagnostics"]}
20 changes: 0 additions & 20 deletions src/assets/email.hbs

This file was deleted.

19 changes: 13 additions & 6 deletions src/assets/email.mjml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
<mjml>
<mj-body background-color="#fcfcfc">

<mj-wrapper background-color="#ffbb45">
</mj-wrapper>

<mj-section background-color="#FFF">
<mj-column width="100%">
<mj-image src="https://ik.imagekit.io/nethbooks/cdn/mailer_IIjJfa1vo.png?updatedAt=1694136384730" alt="opeolluwa::maier" />
<mj-text font-size="16px" line-height="32px" font-family="Urbanist, arial, 'san-serif'" color="#0B0C14" padding-top="20px">
Hi <span>{{recipient}}</span>,
Hi <span style="text-transform:capitalize:font-weight:bold">{{recipient}}</span>,
</mj-text>

<mj-text font-size="16px" line-height="32px" font-family="Urbanist, arial, 'san-serif'" color="#0B0C14" padding-top="10px">
{{content}}
</mj-text>
{{#each body}}
<mj-text font-size="16px" line-height="32px" font-family="Urbanist, arial, 'san-serif'" color="#0B0C14" padding-top="10px" padding-bottom="25px">
{{this}}
</mj-text>

{{/each}}
</mj-column>

<mj-column width="100%">
Expand All @@ -26,6 +31,8 @@
</mj-column>
</mj-section>


<!-- <mj-include path="./footer.mjml" /> -->
<mj-wrapper background-color="#ffbb45">
</mj-wrapper>
</mj-body>
</mjml>
Loading

0 comments on commit 3a5cbfb

Please sign in to comment.