Skip to content

Commit beba749

Browse files
committed
Add more web projects
1 parent 62d1670 commit beba749

7 files changed

Lines changed: 838 additions & 687 deletions

File tree

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
yarn tsc && yarn lint && yarn prettier && yarn test:coverage

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"touchsweep": "2.2.0",
124124
"tough-cookie": "6.0.1",
125125
"typed-usa-states": "2.1.0",
126+
"undici": ">=6.24.0",
126127
"universal-github-client": "1.0.3",
127128
"use-interval": "1.4.0",
128129
"uuid": "14.0.0"
@@ -140,7 +141,7 @@
140141
"@types/d3": "7.4.3",
141142
"@types/jest": "30.0.0",
142143
"@types/markdown-it": "14.1.2",
143-
"@types/mjml": "4.7.4",
144+
"@types/mjml": "5.0.0",
144145
"@types/node": "25.6.2",
145146
"@types/react": "19.2.14",
146147
"@types/react-copy-to-clipboard": "5.0.7",
@@ -178,7 +179,7 @@
178179
"localga": "3.0.0",
179180
"markdown-it": "14.1.1",
180181
"markdown-it-prism": "3.0.1",
181-
"mjml": "4.18.0",
182+
"mjml": "5.2.0",
182183
"package-info": "5.0.7",
183184
"postcss": "8.5.14",
184185
"postcss-browser-comments": "7.0.0",
@@ -193,7 +194,7 @@
193194
"postcss-flexbugs-fixes": "5.0.2",
194195
"postcss-for": "2.1.1",
195196
"postcss-import": "16.1.1",
196-
"postcss-merge-rules": "7.0.11",
197+
"postcss-merge-rules": "8.0.0",
197198
"postcss-mixins": "12.1.2",
198199
"postcss-nested": "7.0.2",
199200
"postcss-normalize": "13.0.1",
@@ -204,7 +205,7 @@
204205
"puppeteer": "24.43.0",
205206
"sass": "1.99.0",
206207
"serwist": "9.5.11",
207-
"stylelint": "17.10.0",
208+
"stylelint": "17.11.0",
208209
"stylelint-config-recommended": "18.0.0",
209210
"stylelint-no-unsupported-browser-features": "8.1.1",
210211
"svg-symbol-sprite": "1.5.2",
588 KB
Loading
242 KB
Loading

src/data/projects.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ export const projects: WebProject[] = withIndex([
4646
title: 'DMARC.io',
4747
url: 'https://dmarc.io/'
4848
},
49+
{
50+
description: 'TypeScript, SVG, Python, SCSS Modules, React, Django, Postgres, Vite, Sentry, Highcharts, ',
51+
image: '/images/web-apps/dmarcian-BIMI-inspector.jpeg',
52+
skip: false,
53+
text: 'Built in collaboration with the dmarcian team',
54+
title: 'dmarcian BIMI Inspector',
55+
url: 'https://us.dmarcian.com/bimi-inspector/'
56+
},
57+
{
58+
description: 'TypeScript, SVG, Python, SCSS Modules, React, Django, Postgres, Vite, Sentry, Highcharts, ',
59+
image: '/images/web-apps/dmarcian-BIMI-builder.jpeg',
60+
skip: false,
61+
text: 'Built in collaboration with the dmarcian team',
62+
title: 'dmarcian BIMI Builder',
63+
url: 'https://us.dmarcian.com/bimi-inspector/?tab=2'
64+
},
4965
{
5066
description: 'TypeScript, SVG, Python, SCSS Modules, React, Django, Postgres, Vite, Sentry, Highcharts, ',
5167
image: '/images/web-apps/dmarcian-DMARC-Validator.jpg',

src/pages/api/mail.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const brevo = new BrevoClient({
1414

1515
const emailTemplate = readFileSync(join(process.cwd(), 'email', 'contact.mjml'), 'utf8');
1616

17-
const interpolateTemplate = (template: string, vars: Record<string, string>): string => {
18-
let { html } = mjml2html(template);
17+
const interpolateTemplate = async (template: string, vars: Record<string, string>): Promise<string> => {
18+
let { html } = await mjml2html(template);
1919

2020
for (const prop in vars) {
2121
html = html.replaceAll(`{{ ${prop} }}`, vars[prop]);
@@ -36,7 +36,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
3636
// eslint-disable-next-line no-useless-assignment
3737
let result = {};
3838

39-
const htmlContent = interpolateTemplate(emailTemplate, data);
39+
const htmlContent = await interpolateTemplate(emailTemplate, data);
4040

4141
try {
4242
result = await brevo.transactionalEmails.sendTransacEmail({

0 commit comments

Comments
 (0)