Better images
This commit is contained in:
parent
0b783aebf0
commit
bfde01c13c
46
README.md
46
README.md
|
@ -5,11 +5,11 @@ It's a package that generates clean, responsive HTML e-mails for sending transac
|
||||||
|
|
||||||
# Demo
|
# Demo
|
||||||
|
|
||||||
![Welcome](screens/default/welcome.png)
|
<img src="https://raw.github.com/matcornic/hermes/master/screens/default/welcome.png" height="400" />
|
||||||
|
|
||||||
![Reset](screens/default/reset.png)
|
<img src="https://raw.github.com/matcornic/hermes/master/screens/default/reset.png" height="400" />
|
||||||
|
|
||||||
![Receipt](screens/default/receipt.png)
|
<img src="https://raw.github.com/matcornic/hermes/master/screens/default/receipt.png" height="400" />
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
|
@ -40,26 +40,26 @@ Next, generate an e-mail using the following code:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
email := hermes.Email{
|
email := hermes.Email{
|
||||||
Body: hermes.Body{
|
Body: hermes.Body{
|
||||||
Name: "Jon Snow",
|
Name: "Jon Snow",
|
||||||
Intros: []string{
|
Intros: []string{
|
||||||
"Welcome to Hermes! We're very excited to have you on board.",
|
"Welcome to Hermes! We're very excited to have you on board.",
|
||||||
},
|
},
|
||||||
Actions: []hermes.Action{
|
Actions: []hermes.Action{
|
||||||
{
|
{
|
||||||
Instructions: "To get started with Hermes, please click here:",
|
Instructions: "To get started with Hermes, please click here:",
|
||||||
Button: hermes.Button{
|
Button: hermes.Button{
|
||||||
Color: "#22BC66", // Optional action button color
|
Color: "#22BC66", // Optional action button color
|
||||||
Text: "Confirm your account",
|
Text: "Confirm your account",
|
||||||
Link: "https://hermes-example.com/confirm?token=d9729feb74992cc3482b350163a1a010",
|
Link: "https://hermes-example.com/confirm?token=d9729feb74992cc3482b350163a1a010",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Outros: []string{
|
Outros: []string{
|
||||||
"Need help, or have questions? Just reply to this email, we'd love to help.",
|
"Need help, or have questions? Just reply to this email, we'd love to help.",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate an HTML email with the provided contents(for modern clients)
|
// Generate an HTML email with the provided contents(for modern clients)
|
||||||
emailBody, err := h.GenerateHTML(email)
|
emailBody, err := h.GenerateHTML(email)
|
||||||
|
|
Loading…
Reference in New Issue