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

Registration #71

Merged
merged 40 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
53ab83d
remove unused CanvasCursor component
joywin2003 Nov 15, 2024
50b9da8
renamed container scroll into kebab case
joywin2003 Nov 15, 2024
cfa24cf
refactor: reorganize registration form schemas
joywin2003 Nov 15, 2024
2021227
refactor: rename components to kebab case and update registration for…
joywin2003 Nov 15, 2024
bb61bcb
fix: adjust heading margin and update registration form option label
joywin2003 Nov 16, 2024
41308af
changed the speed of performer description hover effect - need review
joywin2003 Nov 16, 2024
9e99e56
Feat: change email button in the registration email feild
joywin2003 Nov 16, 2024
ed335b9
feat: pre-fill name and email fields in registration form and shift t…
joywin2003 Nov 16, 2024
f9564bd
added tool tip and info button
joywin2003 Nov 16, 2024
cd6de84
feat: added info button to show SJEC email is required based on membe…
joywin2003 Nov 16, 2024
d512824
refactor: added info button to designation label instead of select
joywin2003 Nov 16, 2024
0f297f3
style: update registration page and form appearance with new backgrou…
joywin2003 Nov 16, 2024
d8c076f
removed unwanted comments from main page.tsx
joywin2003 Nov 16, 2024
d6db695
added the loading animatiion for registration form
joywin2003 Nov 16, 2024
d399372
chore: removed all legacy layout props
joywin2003 Nov 16, 2024
bcf47cc
style: add margin-top to registration form card
joywin2003 Nov 16, 2024
6fb40f5
Feat: Added support FAB in register page
joywin2003 Nov 16, 2024
3aa495c
remove admin only access to registration
Vyshnav001 Nov 15, 2024
8461ff8
Fix registration page authentication and redirect
Vyshnav001 Nov 15, 2024
9366b13
Fix registration form authentication and redirect
Vyshnav001 Nov 15, 2024
13fa9af
Fix registration form authentication and redirect
Vyshnav001 Nov 17, 2024
102f608
rm hidden
Vyshnav001 Nov 17, 2024
82bd9b9
add loading for payment
Vyshnav001 Nov 17, 2024
6c61a26
Implement payment processing in the backend - NOT TESTED
joywin2003 Nov 17, 2024
5e64352
refactor: removed unknown/employee and added external
joywin2003 Nov 17, 2024
c1922d8
refactor: rename sjecMemberType to memberType for clarity
joywin2003 Nov 17, 2024
95c64fe
fix: ensure signOut and signIn are awaited in registration form
joywin2003 Nov 17, 2024
1b050b1
style: update layout and color scheme in registration and payment suc…
joywin2003 Nov 18, 2024
90415d9
style: enhance payment loading component with new layout and loading …
joywin2003 Nov 18, 2024
44f9199
fix: handled invalid coupan error gracefully
joywin2003 Nov 18, 2024
7480bb4
fix: improve coupon code invalidation with error handling
joywin2003 Nov 18, 2024
619941c
fix: enhance invalidateCouponCode function to return detailed updated…
joywin2003 Nov 18, 2024
11e3aa3
refactor: Refactor TedxRegistrationEmail component
Vyshnav001 Nov 19, 2024
29058ed
refactor: remove unused email template and related mailer functions
joywin2003 Nov 19, 2024
a0409f4
fix: ensure finalPrice defaults to basePrice if not provided
joywin2003 Nov 19, 2024
500a831
fix: ensuring return basePrice, discountAmount, and finalPrice on error
joywin2003 Nov 19, 2024
428aae9
removed sendmail fuunction use in jobs
joywin2003 Nov 19, 2024
cef2853
fix: removed duplicate files(ex: Container-Scroll since container-scr…
joywin2003 Nov 19, 2024
1af1c81
No registration allowed for non-admins
joywin2003 Nov 19, 2024
995fecc
removed unused effect
joywin2003 Nov 21, 2024
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
129 changes: 0 additions & 129 deletions emails/email-template.tsx

This file was deleted.

162 changes: 79 additions & 83 deletions emails/user-registration-email-template.tsx
Original file line number Diff line number Diff line change
@@ -1,95 +1,91 @@
import { tedxsjecAssetsPrefix } from "@/lib/utils";
import {
Body,
Button,
Container,
Head,
Heading,
Hr,
Html,
Img,
Preview,
Section,
Text,
Body,
Button,
Container,
Head,
Heading,
Hr,
Html,
Img,
Preview,
Section,
Text,
} from "@react-email/components";
import { Tailwind } from "@react-email/tailwind";

interface TedxRegistrationEmailProps {
name?: string;
registrationLink: string;
name?: string;
registrationLink: string;
}

export const TedxRegistrationEmail = ({
name,
registrationLink,
}: TedxRegistrationEmailProps) => {
const previewText = `TEDxSJEC 2024 Registration Successful!`;
export const TedxRegistrationEmail = ({ name, registrationLink }: TedxRegistrationEmailProps) => {
const previewText = `TEDxSJEC 2024 Registration Successful!`;

return (
<Html>
<Head />
<Preview>{previewText}</Preview>
<Tailwind>
<Body className="bg-white my-auto mx-auto font-sans px-4">
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] max-w-[465px]">
{/* Logo Section */}
<Section className="text-center">
<Img
src={`${tedxsjecAssetsPrefix}/logo/tedxsjec-logo.avif`}
alt="TEDxSJEC Logo"
className="mx-auto w-[150px] h-auto mb-[20px]"
/>
</Section>
{/* Heading Section */}
<Section className="mt-[32px] items-center">
<Heading className="text-black text-[24px] font-bold text-center p-0 my-[30px] mx-0">
<strong>TEDxSJEC 2024 Registration Confirmed!</strong>
</Heading>
</Section>
<Text className="text-black text-[14px] leading-[24px]">
Dear {name ?? "Participant"},
</Text>
<Text className="text-black text-[14px] leading-[24px]">
We are excited to confirm your registration for TEDxSJEC Talk.{" "}
<br />
You are all set to join us for an inspiring day filled with ideas
worth sharing. Please bring this email on the event day for a
smooth entry process.
</Text>
{/* QR Code Section */}
<Section className="text-center mt-[32px] mb-[32px]">
<Text className="text-center">
Below is your unique QR code for registration. Kindly keep it
accessible on event day for quick check-in:
</Text>
<Img
className="mx-auto flex items-center justify-center py-4"
src={`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${registrationLink}`}
alt="QR Code"
/>
</Section>
<Text className="text-black text-[14px] leading-[24px]">
We look forward to seeing you at TEDxSJEC! <br />
</Text>
<Hr className="border border-solid border-[#eaeaea] my-[26px] mx-0 w-full" />
<Text className="text-[#666666] text-[12px] leading-[24px]">
Thanks & Regards, <br /> TEDxSJEC Team <br />
For any queries, feel free to contact us at: [email protected]
</Text>
<div className="flex flex-col items-center justify-center text-[12px] space-x-4">
<Button href="https://tedxsjec.in/privacy">Privacy Policy</Button>
&nbsp;|&nbsp;
<Button href="https://tedxsjec.in/refund">Refund Policy</Button>
&nbsp;|&nbsp;
<Button href="https://tedxsjec.in/terms">
Terms and Conditions
</Button>
</div>
</Container>
</Body>
</Tailwind>
</Html>
);
return (
<Html>
<Head />
<Preview>{previewText}</Preview>
<Tailwind>
<Body className="bg-white my-auto mx-auto font-sans px-4">
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] max-w-[465px]">
{/* Logo Section */}
<Section className="text-center">
<Img
src={`${tedxsjecAssetsPrefix}/logo/tedxsjec-logo.avif`}
alt="TEDxSJEC Logo"
className="mx-auto w-[150px] h-auto mb-[20px]"
/>
</Section>
{/* Heading Section */}
<Section className="mt-[32px] items-center">
<Heading className="text-black text-[24px] font-bold text-center p-0 my-[30px] mx-0">
<strong>TEDxSJEC 2024 Registration Confirmed!</strong>
</Heading>
</Section>
<Text className="text-black text-[14px] leading-[24px]">
Dear {name ?? "Participant"},
</Text>
<Text className="text-black text-[14px] leading-[24px]">
We are excited to confirm your registration for TEDxSJEC 2024. <br />
You are all set to join us for an inspiring day filled with ideas worth sharing.
Please bring this email on the event day for a smooth entry process.
</Text>
{/* QR Code Section */}
<Section className="text-center mt-[32px] mb-[32px]">
<Text className="text-center">
Below is your unique QR code for registration. Kindly keep it accessible on
event day for quick check-in:
</Text>
<Img
className="mx-auto flex items-center justify-center py-4"
src={`https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${registrationLink}`}
alt="QR Code"
/>
</Section>
<Text className="text-black text-[14px] leading-[24px]">
We look forward to seeing you at TEDxSJEC! <br />
</Text>
<Hr className="border border-solid border-[#eaeaea] my-[26px] mx-0 w-full" />
<Text className="text-[#666666] text-[12px] leading-[24px]">
Thanks & Regards, <br /> TEDxSJEC Team <br />
For any queries, feel free to contact us at:{" "}
<a href="mailto:[email protected]" className="text-[#0073e6] underline">
[email protected]
</a>
</Text>
<div className="flex flex-col items-center justify-center text-[12px] space-x-4">
<Button href="https://tedxsjec.in/privacy">Privacy Policy</Button>
&nbsp;|&nbsp;
<Button href="https://tedxsjec.in/refund">Refund Policy</Button>
&nbsp;|&nbsp;
<Button href="https://tedxsjec.in/terms">Terms and Conditions</Button>
</div>
</Container>
</Body>
</Tailwind>
</Html>
);
};

export default TedxRegistrationEmail;
Loading
Loading