-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from opportunity-hack/dev
Lets go!
- Loading branch information
Showing
25 changed files
with
3,557 additions
and
8,430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ | |
"@remix-run/server-runtime", | ||
"@remix-run/router", | ||
"react-router" | ||
] | ||
], | ||
"editor.formatOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,9 @@ import { Prisma } from '@prisma/client' | |
|
||
export const siteName = 'The Barn Volunteer Portal' | ||
export const siteEmailAddress = '[email protected]' | ||
export const siteEmailAddressWithName = siteName + ' <[email protected]>' | ||
export const siteEmailAddressWithName = | ||
siteName + ' <[email protected]>' | ||
export const siteBaseUrl = 'https://thebarn.trottrack.org' | ||
|
||
export const volunteerTypes = [ | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Container, Html, Link, Tailwind, Text } from '@react-email/components' | ||
import tailwindConfig from '../../../../tailwind.config.ts' | ||
import { siteBaseUrl, siteName } from '~/data.ts' | ||
|
||
export function CustomEmail({ upcomingEvents, message }: { upcomingEvents: any[], message: string }) { | ||
return ( | ||
<Tailwind config={tailwindConfig}> | ||
<Html lang="en" dir="ltr"> | ||
<Container style={{ backgroundColor: '#F8F8F8', padding: '20px', borderRadius: '5px' }}> | ||
<h1 style={{ color: '#333', fontSize: '24px', marginBottom: '20px' }}> | ||
<Text>A Message from {siteName}</Text> | ||
</h1> | ||
<p style={{ color: '#555', fontSize: '16px', marginBottom: '10px' }}> | ||
<Text>{message}</Text> | ||
</p> | ||
<p style={{ color: '#555', fontSize: '16px', marginBottom: '10px' }}> | ||
<Link href={siteBaseUrl + "/calendar"} style={{ color: '#007BFF', textDecoration: 'none' }}> | ||
View upcoming events | ||
</Link> | ||
{ | ||
// List out upcoming events with event.title | ||
// Render event.start and event.end with a date format | ||
upcomingEvents.map(event => { | ||
return ( | ||
<div key={event.title}> | ||
<Text> | ||
🐴 {event.title} {event.start.toLocaleString()} - {event.end.toLocaleTimeString()} | ||
</Text> | ||
</div> | ||
) | ||
} | ||
) | ||
|
||
|
||
|
||
|
||
} | ||
</p> | ||
</Container> | ||
</Html> | ||
</Tailwind> | ||
) | ||
} |
Oops, something went wrong.