Skip to content

Commit

Permalink
update image url
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik108 committed Aug 1, 2023
1 parent dec0269 commit 74320e1
Show file tree
Hide file tree
Showing 17 changed files with 144 additions and 126 deletions.
56 changes: 55 additions & 1 deletion pulumi/app/.react-email/package.json
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
{"name":"react-email-client","version":"0.0.14","description":"The React Email preview application","license":"MIT","scripts":{"dev":"next dev","build":"next build","start":"next start","lint":"next lint","format:check":"prettier --check \"**/*.{ts,tsx,md}\"","format":"prettier --write \"**/*.{ts,tsx,md}\""},"engines":{"node":">=16.0.0"},"dependencies":{"@radix-ui/colors":"0.1.8","@radix-ui/react-collapsible":"1.0.1","@radix-ui/react-popover":"1.0.2","@radix-ui/react-slot":"1.0.1","@radix-ui/react-toggle-group":"1.0.1","@radix-ui/react-tooltip":"1.0.2","@react-email/render":"0.0.7","classnames":"2.3.2","framer-motion":"8.4.6","next":"13.2.4","prism-react-renderer":"1.3.5","react":"18.2.0","react-dom":"18.2.0","@react-email/components":"^0.0.7","aws-lambda":"^1.0.7","node-fetch":"^3.3.1","react-email":"^1.9.4","resend":"^0.17.1"},"devDependencies":{"@types/classnames":"2.3.1","@types/node":"18.11.9","@types/react":"18.0.25","@types/react-dom":"18.0.9","autoprefixer":"10.4.13","eslint":"8.36.0","eslint-config-next":"13.2.4","eslint-config-prettier":"8.7.0","eslint-plugin-simple-import-sort":"10.0.0","eslint-plugin-unused-imports":"2.0.0","postcss":"8.4.19","prettier":"2.8.4","tailwindcss":"3.2.4","typescript":"4.9.3"},"readme":"ERROR: No README data found!","_id":"[email protected]"}
{
"name": "react-email-client",
"version": "0.0.14",
"description": "The React Email preview application",
"license": "MIT",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format:check": "prettier --check \"**/*.{ts,tsx,md}\"",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"engines": {
"node": ">=16.0.0"
},
"dependencies": {
"@radix-ui/colors": "0.1.8",
"@radix-ui/react-collapsible": "1.0.1",
"@radix-ui/react-popover": "1.0.2",
"@radix-ui/react-slot": "1.0.1",
"@radix-ui/react-toggle-group": "1.0.1",
"@radix-ui/react-tooltip": "1.0.2",
"@react-email/render": "0.0.7",
"classnames": "2.3.2",
"framer-motion": "8.4.6",
"next": "13.4.10",
"prism-react-renderer": "1.3.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"@react-email/components": "^0.0.7",
"aws-lambda": "^1.0.7",
"node-fetch": "^3.3.1",
"react-email": "^1.9.4",
"resend": "^0.17.1"
},
"devDependencies": {
"@types/classnames": "2.3.1",
"@types/node": "18.11.9",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"autoprefixer": "10.4.13",
"eslint": "8.36.0",
"eslint-config-next": "13.2.4",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-simple-import-sort": "10.0.0",
"eslint-plugin-unused-imports": "2.0.0",
"postcss": "8.4.19",
"prettier": "2.8.4",
"tailwindcss": "3.2.4",
"typescript": "4.9.3"
},
"readme": "ERROR: No README data found!",
"_id": "[email protected]"
}
14 changes: 8 additions & 6 deletions pulumi/app/emails/snowbrainTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ interface SnowBrainEmailProps {
username?: string;
}

// const url = process.env.URL;

const baseUrl = process.env.URL
? `https://${process.env.URL}`
: '';

console.log('baseUrl', baseUrl);
export const SnowBrainEmail = ({
username = 'people from earth',
}: SnowBrainEmailProps) => {
Expand All @@ -32,8 +34,8 @@ export const SnowBrainEmail = ({
<Head />
<Preview>{previewText}</Preview>
<Tailwind>
<Body className="bg-gray-100 flex justify-center items-center h-screen font-sans">
<Container className="bg-white border border-gray-300 rounded-lg mx-auto p-8 w-full max-w-2xl">
<Body className="bg-gray-100 my-auto mx-auto font-sans">
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]">
<Section className="flex justify-center text-5xl font-bold mb-8">
<Text className="text-gray-900">SnowBrain</Text>
</Section>
Expand All @@ -57,12 +59,12 @@ export const SnowBrainEmail = ({
className="bg-blue-600 hover:bg-blue-700 rounded text-white text-sm font-semibold"
href="https://snowbrain.dev"
>
Experience SnowBrain
Experience snowBrain
</Button>
</Section>
<Section className="mt-8 mb-4">
<Img
src={`https://res.cloudinary.com/dmq9hcus4/image/upload/v1690797582/snowbrain/snowbrain-logo_mq07ew.png`}
src={`${baseUrl}/static/snowbrain-logo.png`}
alt="SnowBrain Logo"
className="rounded-lg w-full max-w-md mx-auto"
/>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 74320e1

Please sign in to comment.