Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request #13

Open
wants to merge 85 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
7b5017f
Update settings.js
emmuliini Jan 3, 2022
bf241a8
Update index.html
emmuliini Jan 3, 2022
15b3964
Create npm-publish-github-packages.yml
emmuliini Jan 3, 2022
722bd0b
Update settings.js
emmuliini Jan 3, 2022
33cab48
Update settings.js
emmuliini Jan 3, 2022
366dd6d
Update settings.js
emmuliini Jan 3, 2022
d506c75
Update settings.js
emmuliini Jan 3, 2022
d286336
Update index.html
emmuliini Jan 4, 2022
881af04
Update index.html
emmuliini Jan 4, 2022
9ce12a4
Update index.html
emmuliini Jan 4, 2022
4e10dea
Update index.html
emmuliini Jan 4, 2022
1203a61
Update index.html
emmuliini Jan 4, 2022
aa3f68a
Update index.html
emmuliini Jan 4, 2022
f7e0de0
Update index.html
emmuliini Jan 4, 2022
e95ff68
Update index.html
emmuliini Jan 4, 2022
3d81966
Update index.html
emmuliini Jan 4, 2022
687eecc
Update index.html
emmuliini Jan 4, 2022
26d6efc
Update index.html
emmuliini Jan 4, 2022
d5409b5
Update index.html
emmuliini Jan 4, 2022
098c82d
Update index.html
emmuliini Jan 4, 2022
fa6156c
Update index.html
emmuliini Jan 4, 2022
f02829a
Update index.html
emmuliini Jan 4, 2022
6ae1d51
Update index.html
emmuliini Jan 4, 2022
bd518bc
Update index.html
emmuliini Jan 4, 2022
57f4b49
Update index.html
emmuliini Jan 4, 2022
2cb7f89
Update index.html
emmuliini Jan 4, 2022
1d25465
Update index.html
emmuliini Jan 4, 2022
ec11e86
Update index.html
emmuliini Jan 4, 2022
90359ee
Update index.html
emmuliini Jan 4, 2022
6bb4c64
Update index.html
emmuliini Jan 4, 2022
869f7f9
Update index.html
emmuliini Jan 4, 2022
5d63a07
Update index.html
emmuliini Jan 4, 2022
1311483
Update index.html
emmuliini Jan 4, 2022
7814803
Update index.html
emmuliini Jan 4, 2022
eb356fb
Update index.html
emmuliini Jan 4, 2022
30066ed
Update index.html
emmuliini Jan 4, 2022
03a5f56
Update index.html
emmuliini Jan 4, 2022
f0830f9
Update index.html
emmuliini Jan 4, 2022
cc47558
Update index.html
emmuliini Jan 4, 2022
dea2c46
Update index.html
emmuliini Jan 4, 2022
5912cac
Update index.html
emmuliini Jan 4, 2022
f993a69
Update index.html
emmuliini Jan 4, 2022
a155c22
Update index.html
emmuliini Jan 4, 2022
a466414
Update index.html
emmuliini Jan 4, 2022
d4f93fc
Update index.html
emmuliini Jan 4, 2022
6701e59
Update index.html
emmuliini Jan 4, 2022
b077561
Update index.html
emmuliini Jan 4, 2022
a3cd9bc
Update index.html
emmuliini Jan 4, 2022
88d6f57
Update index.html
emmuliini Jan 4, 2022
6fad303
Update index.html
emmuliini Jan 4, 2022
226f7dc
Update index.html
emmuliini Jan 4, 2022
daa0ae8
Update index.html
emmuliini Jan 4, 2022
73dd0f7
Update index.html
emmuliini Jan 4, 2022
e8c100c
Update index.html
emmuliini Jan 4, 2022
a152c5c
Update index.html
emmuliini Jan 4, 2022
d965b95
Update index.html
emmuliini Jan 4, 2022
0001261
Update index.html
emmuliini Jan 4, 2022
f6c1aa7
Update index.html
emmuliini Jan 4, 2022
cab7855
Update index.html
emmuliini Jan 4, 2022
53e5150
Update index.html
emmuliini Jan 4, 2022
2a3598d
Update index.html
emmuliini Jan 4, 2022
6a53784
Update index.html
emmuliini Jan 4, 2022
fdee75b
Update index.html
emmuliini Jan 4, 2022
19353a4
Update index.html
emmuliini Jan 4, 2022
e9c7542
Update index.html
emmuliini Jan 4, 2022
1655dda
Update index.html
emmuliini Jan 4, 2022
d7f2405
Update index.html
emmuliini Jan 4, 2022
cf22d5a
Update index.html
emmuliini Jan 4, 2022
a527fe8
Update index.html
emmuliini Jan 4, 2022
e86848f
Update index.html
emmuliini Jan 4, 2022
82a5a42
Update index.html
emmuliini Jan 4, 2022
82bdff8
Update index.html
emmuliini Jan 4, 2022
63efef4
Update index.html
emmuliini Jan 4, 2022
9fcc038
Update index.html
emmuliini Jan 4, 2022
087bdb6
Update index.html
emmuliini Jan 4, 2022
d91094d
Update index.html
emmuliini Jan 4, 2022
2ffba96
Update index.html
emmuliini Jan 4, 2022
a151ee7
Update index.html
emmuliini Jan 4, 2022
df95bfc
Update index.html
emmuliini Jan 4, 2022
1a35ff8
Update index.html
emmuliini Jan 4, 2022
abc6f57
Update index.html
emmuliini Jan 4, 2022
96f0fe3
Update index.html
emmuliini Jan 4, 2022
6364aa4
Update index.html
emmuliini Jan 4, 2022
0fb1873
Update index.html
emmuliini Jan 4, 2022
67924dd
Update settings.js
emmuliini Jan 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
271 changes: 215 additions & 56 deletions server/static/index.html
Original file line number Diff line number Diff line change
@@ -1,63 +1,222 @@
<form action="http://localhost:3090/confirmEmail" method="post">
<fieldset>
<legend>Enter Your Information</legend>

<label for="email">Email:</label>
<input type="text" name="email" placeholder="[email protected]" /><br>

<label for="first_name">First Name:</label>
<input type="text" name="first_name" placeholder="John" /><br>

<label for="last_name">Last Name:</label>
<input type="text" name="last_name" placeholder="Doe" /><br>

<button type="submit" value="Submit" />SIGN UP</button>
<div class="container">
<form action="https://sendgrid-subscribe.herokuapp.com/confirmEmail" method="post">
<fieldset>
<legend></legend>
<div class="chapter">Liity Pohjolan Liikenteen uutiskirjeen tilaajaksi</div>
<div class="chapter2">Uutiskirjeen tilaajana saat ensimmäisenä
tiedon eduista ja tarjouksista sekä ajankohtaisimmat uutiset Länsi-Uudenmaan liikenteestämme suoraan sähköpostiisi. Lähetämme Sinulle tietoa tarjouksista ja
aikatauluista noin kerran kuussa.
Uutiskirjeen tilaaminen kannattaa, sillä tilaajana pääset ensimmäisten joukossa hyödyntämään mm. tarjouksemme, jotka ovat voimassa vain rajoitetun ajan!
Liity tilaajaksi täyttämällä tietosi allaoleviin kenttiin.</div><div class="chapter2"></div>
<ul class="flex-outer">
<li>
<label for="email">Sähköposti</label>
<input type="text" name="email" placeholder="Sähköposti" />
</li>
<li>
<label for="first_name">Etunimi</label>
<input type="text" name="first_name" placeholder="Etunimi" />
</li>
<li>
<label for="last_name">Sukunimi</label>
<input type="text" name="last_name" placeholder="Sukunimi" />
</li>
<li>
<ul class="flex-cent">
<li><input type="checkbox" id="markkinointilupa">
<label for="markkinointilupa">Hyväksyn, että Pohjolan Liikenne lähettää minulle
markkinointiviestejä noin kerran kuukaudessa sisältäen mm. lipputarjouksia,
alennuskoodeja ja etuja.
</label>
</li>
</ul>
</li>
<li>
<button type="submit" value="Submit" />Tilaa uutiskirje</button>
</li>
</ul>
</fieldset>
</form>
</form>
</div>


<style>
html {
font-family: arial;
font-size: 16;
body {
font: normal 18px/1.5 "Fira Sans", "Helvetica Neue", sans-serif;
background: #ffffff;
color: #ffffff;
padding: 50px 0;
}
form {
display: inline-block;
fieldset {
background-color: #333;
padding-top: 40;
padding-bottom: 70;
padding-right: 40;
padding-left: 40;
margin-top: 30;
border: none;
}

legend {
font-size: 14;
}
label {
width: 100px;
display: inline-block;
margin-left: 8;
margin-top: 15;
font-weight: bold;
}
input, button {
font-size: 12px;
padding: 5px;
margin-right: 8;
}
input {
border-radius: 3px;
border: 1px solid #ccc;
height: 25;
width: 200px;
}
button {
border-radius: 3px;
border: 0px solid #ccc;
margin-top: 15px;
margin-bottom: 5px;
background-color: #1A82E2;
color: white;
text-align: center;
font-weight: bold;
font-size: 14px;
width: 308px;
height: 32px;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
float: right;
}
</style>
background-color: transparent;
color: #ffffff;
font: normal 18px/1.5 "Fira Sans", "Helvetica Neue", sans-serif;
padding: 0;
}

.container {
width: 80%;
max-width: 1200px;
margin: 0 auto;
}

.container * {
box-sizing: border-box;
}

.flex-outer,
.flex-inner {
list-style-type: none;
padding: 0;
}

.flex-outer {
max-width: 800px;
margin: 0 auto;
}

.flex-outer li,
.flex-inner {
display: flex;
flex-wrap: wrap;
align-items: center;
}

.flex-outer > li:not(:last-child) {
margin-bottom: 20px;
}

.flex-outer li label,
.flex-outer li p {
padding-left: 10px;
font-weight: 300;
letter-spacing: .09em;
text-transform: uppercase;
font-size: 16;
line-height: 1.4;
}

.flex-outer > li > label,
.flex-outer li p {
flex: 1 0 120px;
max-width: 220px;
}

.flex-outer > li > label + *,
.flex-inner {
flex: 1 0 220px;
}

.flex-outer li p {
margin: 0;
}

.flex-outer li input:not([type='checkbox']),
.flex-outer li textarea {
padding: 15px;
border: none;
}

.flex-outer li button {
margin-left: auto;
padding: 14px 22px;
border: solid white;
border-width: 3px 3px 3px 3px;
background: #333;
color: #ffffff;
text-transform: uppercase;
letter-spacing: .09em;
border-radius: 0px;
transition-duration: 0.4s;
}
.flex-outer li button:hover {
border: solid white;
border-width: 3px 3px 3px 3px;
background: #ffffff;
color: #333;
}
.flex-cent{
list-style-type: none;
padding: 20;
}

.flex-cent {
max-width: 800px;
margin: 0 auto;
}

.flex-cent li {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: end;
}

.flex-cent > li:not(:last-child) {
margin-bottom: 20px;
}

.flex-cent li label,
.flex-cent li p {
padding-left: 10px;
font: normal 19px/1.2 "Fira Sans", "Helvetica Neue", sans-serif;
font-weight: 300;
letter-spacing: .07em;
font-size: 16;
line-height: 1.2;
text-transform: none;
}

.flex-cent > li > label,
.flex-cent li p {
flex: 1 0 120px;
max-width: 820px;
}

.flex-cent > li > label + *{
flex: 1 0 220px;
}

.flex-cent li p {
margin: 0;
}

.flex-cent li input:not([type='checkbox']),
.flex-cent li textarea {
padding: 15px;
border: none;
}
.flex-inner li {
max-width: 1200px;
}
.chapter {
color: #ffffff;
font: normal 20px/1.5 "Fira Sans", "Helvetica Neue", sans-serif;
max-width: 800px;
padding-left: 50;
padding-bottom: 20;
padding-top: 30;
letter-spacing: .07em;
font-weight: 600;
}
.chapter2 {
color: #ffffff;
font: normal 16px/1.5 "Fira Sans", "Helvetica Neue", sans-serif;
max-width: 820px;
padding-left: 70;
padding-bottom: 25;
padding-top: 0;
letter-spacing: .06em;
font-weight: 300;
}
</style>
12 changes: 6 additions & 6 deletions settings.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Change the url to the domain of your app
exports.url = 'http://localhost:3090';
exports.url = 'https://sendgrid-subscribe.herokuapp.com/';

exports.senderEmail = "[email protected]";
exports.senderName = "Sender Name";
exports.senderEmail = "[email protected]";
exports.senderName = "Pohjolan Liikenne";

// set 'exports.listId = null' to add contact to all contacts, but no specific list
// or a string with the listId to add to a specific list
exports.listId = null;
exports.listId = 57887;

// set 'exports.templateId = null' to opt out of using a template
// or a string with the templateId to use a template
exports.templateId = null;

// receive an email when a new signup is confirmed
exports.sendNotification = true;
exports.notificationEmail = "[email protected]";
exports.sendNotification = false;
exports.notificationEmail = "";