⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
refactor: update email templates
Andrej0e2b62b0d7ae
diff --git a/apps/web/public/logo-dark.svg b/apps/web/public/logo-dark.svgnew file mode 100644index 000000000..69a252b2e--- /dev/null+++ b/apps/web/public/logo-dark.svg@@ -0,0 +1,13 @@+<svg width="450" height="104" viewBox="0 0 450 104" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_108_64)">+<path d="M14.6855 95.7248C10.5715 96.5963 8 95.2648 8 93.6604L8 62.0256C8 61.8599 8.00323 61.686 8.00879 61.5071C8.00389 61.385 8.00098 61.2492 8.00098 61.0979L8.00098 29.9436C8.01504 28.6517 8.25897 27.7441 11.2588 27.1086L25.3145 24.2756C29.4285 23.4042 32 24.7356 32 26.3401L32 57.9748C32 58.1408 31.9978 58.3151 31.9922 58.4944C31.9971 58.6162 31.999 58.7517 31.999 58.9026L31.999 90.0569C31.985 91.3487 31.7411 92.2563 28.7412 92.8918L14.6855 95.7248Z" fill="#141414"/>+<path d="M46.6855 87.7244C42.5715 88.5958 40 87.2643 40 85.66L40 54.0262C40 53.8602 40.0032 53.6859 40.0088 53.5066C40.0039 53.3846 40.001 53.2486 40.001 53.0975L40.001 21.9441C40.0151 20.6524 40.2592 19.7446 43.2588 19.1092L57.3145 16.2771C61.4284 15.4057 64 16.7363 64 18.3406L64 49.9744C64 50.1405 63.9978 50.3155 63.9922 50.4949C63.997 50.6167 63.999 50.7523 63.999 50.9031L63.999 82.0564C63.985 83.3484 63.7412 84.2559 60.7412 84.8914L46.6855 87.7244Z" fill="#141414"/>+<path d="M89.3145 8.27518C93.4285 7.40373 96 8.7352 96 10.3396V21.1844L78.0576 44.5008L95.999 66.7791V74.0574C95.9849 75.3488 95.7404 76.257 92.7412 76.8924L78.6855 79.7244C74.572 80.5957 72.0005 79.2651 72 77.6609V46.0262C72 45.8604 72.0032 45.6856 72.0088 45.5066C72.0039 45.3846 72.001 45.2486 72.001 45.0974V13.9431C72.015 12.6513 72.259 11.7437 75.2588 11.1082L89.3145 8.27518Z" fill="#141414"/>+<path d="M146.15 80V7.9H160.57V37.667L183.024 7.9H201.873L173.96 41.684L203.933 80H185.496L160.57 48.173V80H146.15ZM226.563 81.339C221.688 81.339 217.225 80.103 213.173 77.631C209.191 75.0903 205.998 71.7257 203.594 67.537C201.26 63.2797 200.092 58.576 200.092 53.426C200.092 49.5807 200.779 45.9757 202.152 42.611C203.526 39.1777 205.414 36.1907 207.817 33.65C210.221 31.0407 213.002 29.015 216.16 27.573C219.388 26.0623 222.855 25.307 226.563 25.307C231.233 25.307 234.872 26.1997 237.481 27.985C240.091 29.7017 242.116 32.002 243.558 34.886V26.44H257.36V80H243.867V71.245C242.425 74.2663 240.365 76.704 237.687 78.558C235.078 80.412 231.37 81.339 226.563 81.339ZM228.829 68.773C231.919 68.773 234.563 68.0863 236.76 66.713C239.026 65.271 240.777 63.3827 242.013 61.048C243.249 58.7133 243.867 56.1727 243.867 53.426C243.867 50.6107 243.249 48.0357 242.013 45.701C240.777 43.3663 239.026 41.478 236.76 40.036C234.563 38.594 231.919 37.873 228.829 37.873C225.877 37.873 223.267 38.594 221.001 40.036C218.804 41.4093 217.087 43.2633 215.851 45.598C214.615 47.9327 213.997 50.5077 213.997 53.323C213.997 56.001 214.615 58.5417 215.851 60.945C217.087 63.2797 218.804 65.168 221.001 66.61C223.267 68.052 225.877 68.773 228.829 68.773ZM265.622 80V26.44H279.321V34.268C282.136 28.2253 287.595 25.204 295.698 25.204C299.543 25.204 303.011 26.0967 306.101 27.882C309.191 29.6673 311.629 32.208 313.414 35.504C315.199 38.8 316.092 42.714 316.092 47.246V80H302.187V50.645C302.187 45.9757 301.123 42.611 298.994 40.551C296.865 38.4223 294.084 37.358 290.651 37.358C287.698 37.358 285.089 38.4223 282.823 40.551C280.626 42.611 279.527 45.9757 279.527 50.645V80H265.622ZM349.508 81.339C344.015 81.339 339.174 80.0687 334.985 77.528C330.797 74.9873 327.535 71.6227 325.2 67.434C322.934 63.1767 321.801 58.473 321.801 53.323C321.801 48.173 323.003 43.4693 325.406 39.212C327.81 34.886 331.071 31.4527 335.191 28.912C339.38 26.3713 344.152 25.101 349.508 25.101C354.864 25.101 359.568 26.3713 363.619 28.912C367.739 31.4527 370.932 34.886 373.198 39.212C375.533 43.4693 376.7 48.173 376.7 53.323C376.7 54.0783 376.666 54.868 376.597 55.692C376.529 56.516 376.426 57.3743 376.288 58.267H336.221C336.977 61.4257 338.487 64.0007 340.753 65.992C343.088 67.9833 346.006 68.979 349.508 68.979C352.53 68.979 355.139 68.2923 357.336 66.919C359.602 65.5457 361.353 63.829 362.589 61.769L373.404 69.906C371.276 73.2707 368.083 76.0173 363.825 78.146C359.568 80.2747 354.796 81.339 349.508 81.339ZM349.302 37.049C346.006 37.049 343.191 38.0447 340.856 40.036C338.522 42.0273 336.977 44.6367 336.221 47.864H362.692C361.937 44.9113 360.358 42.3707 357.954 40.242C355.62 38.1133 352.736 37.049 349.302 37.049ZM408.571 81.339C403.078 81.339 398.168 80.0687 393.842 77.528C389.516 74.9873 386.117 71.6227 383.645 67.434C381.242 63.1767 380.04 58.473 380.04 53.323C380.04 48.173 381.242 43.4693 383.645 39.212C386.117 34.9547 389.516 31.5557 393.842 29.015C398.168 26.4743 403.078 25.204 408.571 25.204C414.133 25.204 419.043 26.4743 423.3 29.015C427.626 31.5557 430.991 34.9547 433.394 39.212C435.866 43.4693 437.102 48.173 437.102 53.323C437.102 58.473 435.866 63.1767 433.394 67.434C430.991 71.6227 427.626 74.9873 423.3 77.528C419.043 80.0687 414.133 81.339 408.571 81.339ZM408.571 68.67C411.524 68.67 414.099 67.9833 416.296 66.61C418.494 65.168 420.176 63.2797 421.343 60.945C422.579 58.6103 423.197 56.0697 423.197 53.323C423.197 50.5077 422.579 47.9327 421.343 45.598C420.176 43.2633 418.494 41.4093 416.296 40.036C414.099 38.594 411.524 37.873 408.571 37.873C405.619 37.873 403.044 38.594 400.846 40.036C398.649 41.4093 396.932 43.2633 395.696 45.598C394.529 47.9327 393.945 50.5077 393.945 53.323C393.945 56.0697 394.529 58.6103 395.696 60.945C396.932 63.2797 398.649 65.168 400.846 66.61C403.044 67.9833 405.619 68.67 408.571 68.67Z" fill="#141414"/>+</g>+<defs>+<clipPath id="clip0_108_64">+<rect width="450" height="104" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/public/logo-light.svg b/apps/web/public/logo-light.svgnew file mode 100644index 000000000..efb6145da--- /dev/null+++ b/apps/web/public/logo-light.svg@@ -0,0 +1,13 @@+<svg width="450" height="104" viewBox="0 0 450 104" fill="none" xmlns="http://www.w3.org/2000/svg">+<g clip-path="url(#clip0_2_171)">+<path d="M14.6855 95.7243C10.5716 96.5957 8.00007 95.2652 8 93.6608L8 62.026C8 61.8601 8.00321 61.6857 8.00879 61.5065C8.00391 61.3845 8.00098 61.2485 8.00098 61.0973L8.00098 29.944C8.01499 28.6519 8.25865 27.7436 11.2588 27.1081L25.3145 24.276C29.4283 23.4047 31.9997 24.7352 32 26.3395L32 57.9743C32 58.1404 31.9978 58.3153 31.9922 58.4948C31.997 58.6166 31.999 58.7522 31.999 58.903L31.999 90.0573C31.9849 91.349 31.7407 92.2568 28.7412 92.8923L14.6855 95.7243Z" fill="#F5F5F5"/>+<path d="M46.6855 87.7238C42.5715 88.5952 40 87.2647 40 85.6603L40 54.0265C40 53.8607 40.0032 53.6861 40.0088 53.507C40.0039 53.3849 40.001 53.2491 40.001 53.0978L40.001 21.9445C40.015 20.6526 40.2589 19.745 43.2588 19.1095L57.3145 16.2765C61.4285 15.4051 64 16.7366 64 18.341L64 49.9748C64 50.141 63.9978 50.3157 63.9922 50.4953C63.997 50.617 63.999 50.7528 63.999 50.9035L63.999 82.0568C63.9849 83.3485 63.7408 84.2563 60.7412 84.8918L46.6855 87.7238Z" fill="#F5F5F5"/>+<path d="M89.3145 8.27571C93.4284 7.40429 95.9999 8.73481 96 10.3392V21.1839L78.0576 44.5013L95.999 66.7796V74.057C95.9849 75.3486 95.7407 76.2565 92.7412 76.8919L78.6855 79.7249C74.572 80.5963 72.0005 79.2647 72 77.6605V46.0257C72 45.8599 72.0032 45.6853 72.0088 45.5062C72.0039 45.3843 72.001 45.2479 72.001 45.097V13.9427C72.0151 12.6511 72.2594 11.7432 75.2588 11.1077L89.3145 8.27571Z" fill="#F5F5F5"/>+<path d="M146.15 80V7.9H160.57V37.667L183.024 7.9H201.873L173.96 41.684L203.933 80H185.496L160.57 48.173V80H146.15ZM226.563 81.339C221.688 81.339 217.225 80.103 213.173 77.631C209.191 75.0903 205.998 71.7257 203.594 67.537C201.26 63.2797 200.092 58.576 200.092 53.426C200.092 49.5807 200.779 45.9757 202.152 42.611C203.526 39.1777 205.414 36.1907 207.817 33.65C210.221 31.0407 213.002 29.015 216.16 27.573C219.388 26.0623 222.855 25.307 226.563 25.307C231.233 25.307 234.872 26.1997 237.481 27.985C240.091 29.7017 242.116 32.002 243.558 34.886V26.44H257.36V80H243.867V71.245C242.425 74.2663 240.365 76.704 237.687 78.558C235.078 80.412 231.37 81.339 226.563 81.339ZM228.829 68.773C231.919 68.773 234.563 68.0863 236.76 66.713C239.026 65.271 240.777 63.3827 242.013 61.048C243.249 58.7133 243.867 56.1727 243.867 53.426C243.867 50.6107 243.249 48.0357 242.013 45.701C240.777 43.3663 239.026 41.478 236.76 40.036C234.563 38.594 231.919 37.873 228.829 37.873C225.877 37.873 223.267 38.594 221.001 40.036C218.804 41.4093 217.087 43.2633 215.851 45.598C214.615 47.9327 213.997 50.5077 213.997 53.323C213.997 56.001 214.615 58.5417 215.851 60.945C217.087 63.2797 218.804 65.168 221.001 66.61C223.267 68.052 225.877 68.773 228.829 68.773ZM265.622 80V26.44H279.321V34.268C282.136 28.2253 287.595 25.204 295.698 25.204C299.543 25.204 303.011 26.0967 306.101 27.882C309.191 29.6673 311.629 32.208 313.414 35.504C315.199 38.8 316.092 42.714 316.092 47.246V80H302.187V50.645C302.187 45.9757 301.123 42.611 298.994 40.551C296.865 38.4223 294.084 37.358 290.651 37.358C287.698 37.358 285.089 38.4223 282.823 40.551C280.626 42.611 279.527 45.9757 279.527 50.645V80H265.622ZM349.508 81.339C344.015 81.339 339.174 80.0687 334.985 77.528C330.797 74.9873 327.535 71.6227 325.2 67.434C322.934 63.1767 321.801 58.473 321.801 53.323C321.801 48.173 323.003 43.4693 325.406 39.212C327.81 34.886 331.071 31.4527 335.191 28.912C339.38 26.3713 344.152 25.101 349.508 25.101C354.864 25.101 359.568 26.3713 363.619 28.912C367.739 31.4527 370.932 34.886 373.198 39.212C375.533 43.4693 376.7 48.173 376.7 53.323C376.7 54.0783 376.666 54.868 376.597 55.692C376.529 56.516 376.426 57.3743 376.288 58.267H336.221C336.977 61.4257 338.487 64.0007 340.753 65.992C343.088 67.9833 346.006 68.979 349.508 68.979C352.53 68.979 355.139 68.2923 357.336 66.919C359.602 65.5457 361.353 63.829 362.589 61.769L373.404 69.906C371.276 73.2707 368.083 76.0173 363.825 78.146C359.568 80.2747 354.796 81.339 349.508 81.339ZM349.302 37.049C346.006 37.049 343.191 38.0447 340.856 40.036C338.522 42.0273 336.977 44.6367 336.221 47.864H362.692C361.937 44.9113 360.358 42.3707 357.954 40.242C355.62 38.1133 352.736 37.049 349.302 37.049ZM408.571 81.339C403.078 81.339 398.168 80.0687 393.842 77.528C389.516 74.9873 386.117 71.6227 383.645 67.434C381.242 63.1767 380.04 58.473 380.04 53.323C380.04 48.173 381.242 43.4693 383.645 39.212C386.117 34.9547 389.516 31.5557 393.842 29.015C398.168 26.4743 403.078 25.204 408.571 25.204C414.133 25.204 419.043 26.4743 423.3 29.015C427.626 31.5557 430.991 34.9547 433.394 39.212C435.866 43.4693 437.102 48.173 437.102 53.323C437.102 58.473 435.866 63.1767 433.394 67.434C430.991 71.6227 427.626 74.9873 423.3 77.528C419.043 80.0687 414.133 81.339 408.571 81.339ZM408.571 68.67C411.524 68.67 414.099 67.9833 416.296 66.61C418.494 65.168 420.176 63.2797 421.343 60.945C422.579 58.6103 423.197 56.0697 423.197 53.323C423.197 50.5077 422.579 47.9327 421.343 45.598C420.176 43.2633 418.494 41.4093 416.296 40.036C414.099 38.594 411.524 37.873 408.571 37.873C405.619 37.873 403.044 38.594 400.846 40.036C398.649 41.4093 396.932 43.2633 395.696 45.598C394.529 47.9327 393.945 50.5077 393.945 53.323C393.945 56.0697 394.529 58.6103 395.696 60.945C396.932 63.2797 398.649 65.168 400.846 66.61C403.044 67.9833 405.619 68.67 408.571 68.67Z" fill="white"/>+</g>+<defs>+<clipPath id="clip0_2_171">+<rect width="450" height="104" fill="white"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/src/components/auth/layout.tsx b/apps/web/src/components/auth/layout.tsxindex 507bf3a1e..f07a67d3d 100644--- a/apps/web/src/components/auth/layout.tsx+++ b/apps/web/src/components/auth/layout.tsx@@ -1,4 +1,11 @@import { Logo } from "../common/logo";+import {+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+} from "../ui/card";type AuthLayoutProps = {children: React.ReactNode;@@ -8,20 +15,17 @@ type AuthLayoutProps = {export function AuthLayout({ children, title, subtitle }: AuthLayoutProps) {return (- <div className="min-h-screen w-full bg-background flex flex-col items-center justify-center p-4">- <div className="w-full max-w-sm">- <Logo className="mx-auto mb-6 w-full flex items-end justify-center" />+ <div className="min-h-screen w-full bg-background flex flex-col items-center justify-center px-4 py-6 sm:py-10">+ <div className="w-full max-w-sm space-y-4">+ <Logo className="mx-auto flex w-full items-end justify-center" />- <div className="rounded-xl border border-border bg-card p-6 shadow-sm">- <h1 className="text-lg font-semibold text-foreground mb-2">- {title}- </h1>- {subtitle && (- <p className="text-sm text-muted-foreground">{subtitle}</p>- )}-- {children}- </div>+ <Card>+ <CardHeader className="pb-3">+ <CardTitle className="text-lg">{title}</CardTitle>+ {subtitle ? <CardDescription>{subtitle}</CardDescription> : null}+ </CardHeader>+ <CardContent className="pt-0">{children}</CardContent>+ </Card></div></div>);diff --git a/apps/web/src/components/common/logo.tsx b/apps/web/src/components/common/logo.tsxindex f9c3f2770..e8179454e 100644--- a/apps/web/src/components/common/logo.tsx+++ b/apps/web/src/components/common/logo.tsx@@ -16,48 +16,16 @@ export function Logo({ className = "" }: LogoProps) {to="/dashboard"className={`w-auto ${className}`}>- <svg- width="450"- height="104"- viewBox="0 0 450 104"- fill="none"- xmlns="http://www.w3.org/2000/svg"- className="h-6 w-auto text-foreground"- >- <title>Kaneo Logo</title>- <path- d="M14.6855 95.7242C10.5716 96.5957 8.00007 95.2652 8 93.6608L8 62.026C8 61.8601 8.00321 61.6857 8.00879 61.5065C8.00391 61.3845 8.00098 61.2484 8.00098 61.0973L8.00098 29.944C8.01499 28.6519 8.25865 27.7436 11.2588 27.108L25.3145 24.276C29.4283 23.4046 31.9997 24.7352 32 26.3395L32 57.9742C32 58.1404 31.9978 58.3153 31.9922 58.4948C31.997 58.6165 31.999 58.7522 31.999 58.903L31.999 90.0573C31.9849 91.3489 31.7407 92.2568 28.7412 92.8922L14.6855 95.7242Z"- fill="#5463FF"- />- <path- d="M46.6855 87.7238C42.5716 88.5952 40 87.2647 40 85.6603L40 54.0265C40 53.8607 40.0032 53.6861 40.0088 53.507C40.0039 53.3849 40.001 53.2491 40.001 53.0978L40.001 21.9445C40.015 20.6526 40.2589 19.7451 43.2588 19.1096L57.3145 16.2765C61.4285 15.4051 64 16.7366 64 18.341L64 49.9748C64 50.141 63.9978 50.3157 63.9922 50.4953C63.997 50.617 63.999 50.7528 63.999 50.9035L63.999 82.0568C63.9849 83.3485 63.7408 84.2564 60.7412 84.8918L46.6855 87.7238Z"- fill="#5463FF"- />- <path- d="M89.3145 8.27576C93.4284 7.40433 95.9999 8.73485 96 10.3392V21.184L78.0576 44.5013L95.999 66.7797V74.057C95.9849 75.3486 95.7407 76.2565 92.7412 76.892L78.6855 79.725C74.572 80.5963 72.0005 79.2647 72 77.6605V46.0258C72 45.8599 72.0032 45.6853 72.0088 45.5062C72.0039 45.3844 72.001 45.248 72.001 45.097V13.9427C72.0151 12.6511 72.2594 11.7432 75.2588 11.1078L89.3145 8.27576Z"- fill="#5463FF"- />- <path- d="M413.776 80C408.324 80 403.571 78.8698 399.515 76.6094C395.46 74.2826 392.302 71.0249 390.041 66.8366C387.781 62.6482 386.651 57.7285 386.651 52.0775C386.651 46.4266 387.781 41.5401 390.041 37.4183C392.302 33.2299 395.46 29.9723 399.515 27.6454C403.571 25.3185 408.324 24.1551 413.776 24.1551C419.227 24.1551 423.981 25.3185 428.036 27.6454C432.091 29.9723 435.249 33.2299 437.51 37.4183C439.77 41.5401 440.9 46.4266 440.9 52.0775C440.9 57.7285 439.77 62.6482 437.51 66.8366C435.249 71.0249 432.091 74.2826 428.036 76.6094C423.981 78.8698 419.227 80 413.776 80ZM413.776 68.5318C417.499 68.5318 420.391 67.1025 422.451 64.2438C424.512 61.3186 425.543 57.2631 425.543 52.0775C425.543 46.8919 424.512 42.8698 422.451 40.0111C420.391 37.0858 417.499 35.6232 413.776 35.6232C410.053 35.6232 407.161 37.0858 405.1 40.0111C403.039 42.8698 402.008 46.8919 402.008 52.0775C402.008 57.2631 403.039 61.3186 405.1 64.2438C407.161 67.1025 410.053 68.5318 413.776 68.5318Z"- fill="currentColor"- />- <path- d="M354.17 80C348.719 80 343.965 78.8698 339.91 76.6094C335.921 74.2826 332.796 71.0249 330.536 66.8366C328.342 62.6482 327.245 57.7285 327.245 52.0775C327.245 46.4266 328.342 41.5401 330.536 37.4183C332.796 33.2299 335.921 29.9723 339.91 27.6454C343.899 25.3185 348.619 24.1551 354.07 24.1551C359.389 24.1551 364.009 25.3185 367.932 27.6454C371.854 29.9723 374.879 33.2964 377.007 37.6177C379.201 41.939 380.298 47.0914 380.298 53.0748V56.0665H342.702C342.901 60.3213 344.032 63.4792 346.093 65.5402C348.22 67.6011 351.012 68.6316 354.469 68.6316C356.996 68.6316 359.09 68.0997 360.752 67.036C362.48 65.9723 363.71 64.3435 364.442 62.1496L379.5 63.0471C378.104 68.3656 375.145 72.5208 370.624 75.5125C366.104 78.5042 360.619 80 354.17 80ZM342.702 46.8919H364.94C364.741 42.9695 363.644 40.0443 361.649 38.1163C359.721 36.1883 357.195 35.2244 354.07 35.2244C350.946 35.2244 348.353 36.2548 346.292 38.3158C344.298 40.3102 343.101 43.169 342.702 46.8919Z"- fill="currentColor"- />- <path- d="M270.654 79.8001V25.1781H284.144L284.744 41.1774L282.845 40.6679C283.378 36.5916 284.444 33.3306 286.043 30.8849C287.708 28.4391 289.774 26.6727 292.239 25.5857C294.704 24.4987 297.402 23.9552 300.333 23.9552C304.197 23.9552 307.462 24.8044 310.126 26.5029C312.858 28.2013 314.923 30.6131 316.322 33.7383C317.788 36.7955 318.521 40.4301 318.521 44.6423V79.8001H303.531V49.7376C303.531 46.8163 303.298 44.3366 302.831 42.2984C302.365 40.2603 301.532 38.7317 300.333 37.7126C299.134 36.6256 297.468 36.0821 295.337 36.0821C292.205 36.0821 289.807 37.271 288.142 39.6488C286.476 41.9587 285.643 45.3217 285.643 49.7376V79.8001H270.654Z"- fill="currentColor"- />- <path- d="M227.085 80C221.567 80 217.046 78.7368 213.523 76.2105C210.066 73.6177 208.337 70.0277 208.337 65.4404C208.337 60.7202 209.8 57.0969 212.725 54.5706C215.717 51.9778 220.104 50.0831 225.888 48.8864L243.141 45.4958C243.141 42.0388 242.343 39.446 240.747 37.7174C239.218 35.9224 236.991 35.0249 234.066 35.0249C231.207 35.0249 228.98 35.6897 227.384 37.0194C225.789 38.2825 224.758 40.1773 224.293 42.7036L209.235 42.0055C210.232 36.1551 212.858 31.734 217.113 28.7423C221.434 25.6842 227.085 24.1551 234.066 24.1551C242.044 24.1551 248.027 26.0498 252.016 29.8393C256.071 33.6288 258.099 39.18 258.099 46.4931V64.7424C258.099 66.2715 258.332 67.3019 258.797 67.8338C259.329 68.2992 260.093 68.5318 261.091 68.5318H262.587V78.8033C262.121 78.9363 261.357 79.0693 260.293 79.2022C259.296 79.3352 258.298 79.4017 257.301 79.4017C255.174 79.4017 253.179 79.036 251.318 78.3047C249.523 77.5734 248.06 76.3435 246.93 74.615C245.8 72.8199 245.235 70.2936 245.235 67.036L246.531 68.0332C245.866 70.4266 244.67 72.5208 242.941 74.3158C241.279 76.1108 239.085 77.5069 236.359 78.5042C233.7 79.5014 230.609 80 227.085 80ZM230.675 69.7285C233.135 69.7285 235.296 69.2632 237.157 68.3324C239.019 67.3352 240.481 65.9058 241.545 64.0443C242.609 62.1828 243.141 59.9889 243.141 57.4626V54.8698L230.974 57.4626C228.581 57.928 226.753 58.7257 225.49 59.8559C224.293 60.9197 223.695 62.3158 223.695 64.0443C223.695 65.8393 224.293 67.2355 225.49 68.2327C226.686 69.2299 228.415 69.7285 230.675 69.7285Z"- fill="currentColor"- />- <path- d="M146 79.8006V8H161.082V39.3496L186.683 8H204.246L178.348 39.6529L205.834 79.8006H188.668L168.425 49.968L161.082 58.6649V79.8006H146Z"- fill="currentColor"- />- </svg>+ <img+ src="/logo-dark.svg"+ alt="Kaneo"+ className="h-6 w-auto dark:hidden"+ />+ <img+ src="/logo-light.svg"+ alt="Kaneo"+ className="hidden h-6 w-auto dark:block"+ /></Link>);}diff --git a/apps/web/src/components/ui/input-otp.tsx b/apps/web/src/components/ui/input-otp.tsxindex f3d27dd3f..2a8a9bded 100644--- a/apps/web/src/components/ui/input-otp.tsx+++ b/apps/web/src/components/ui/input-otp.tsx@@ -38,7 +38,7 @@ const InputOTPSlot = React.forwardRef<<divref={ref}className={cn(- "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",+ "relative flex h-10 w-10 items-center justify-center rounded-md border border-input bg-background text-sm shadow-xs/5 transition-all",isActive && "z-10 ring-1 ring-ring",className,)}diff --git a/apps/web/src/routes/auth/verify-otp.tsx b/apps/web/src/routes/auth/verify-otp.tsxindex c6b00b7cc..501e1f9b2 100644--- a/apps/web/src/routes/auth/verify-otp.tsx+++ b/apps/web/src/routes/auth/verify-otp.tsx@@ -1,10 +1,12 @@import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";import { createFileRoute, useRouter, useSearch } from "@tanstack/react-router";import { REGEXP_ONLY_DIGITS } from "input-otp";+import { ArrowLeft, RefreshCcw } from "lucide-react";import { useCallback, useEffect, useState } from "react";import { useForm } from "react-hook-form";import { z } from "zod/v4";import PageTitle from "@/components/page-title";+import { Alert, AlertDescription } from "@/components/ui/alert";import { Button } from "@/components/ui/button";import {Form,@@ -114,14 +116,17 @@ function VerifyOtp() {return (<><PageTitle title="Verify Code" />- <AuthLayout title="Enter verification code">- <div className="mt-4">- <div className="text-center space-y-2 mb-6">- <p className="text-sm text-muted-foreground">- Enter the 6-digit code sent to- </p>- <p className="text-sm font-medium">{email}</p>- </div>+ <AuthLayout+ title="Enter verification code"+ subtitle="Use the 6-digit code sent to your email to continue"+ >+ <div className="space-y-4">+ <Alert>+ <AlertDescription className="text-xs">+ Code sent to{" "}+ <span className="font-mono text-foreground">{email}</span>+ </AlertDescription>+ </Alert><Form {...form}><form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">@@ -140,14 +145,17 @@ function VerifyOtp() {onChange={field.onChange}onBlur={field.onBlur}pattern={REGEXP_ONLY_DIGITS}+ autoComplete="one-time-code"+ inputMode="numeric"+ name="one-time-code">- <InputOTPGroup className="w-full justify-center items-center">- <InputOTPSlot className="size-10" index={0} />- <InputOTPSlot className="size-10" index={1} />- <InputOTPSlot className="size-10" index={2} />- <InputOTPSlot className="size-10" index={3} />- <InputOTPSlot className="size-10" index={4} />- <InputOTPSlot className="size-10" index={5} />+ <InputOTPGroup className="grid w-full grid-cols-6 gap-1.5">+ <InputOTPSlot className="h-11 w-full" index={0} />+ <InputOTPSlot className="h-11 w-full" index={1} />+ <InputOTPSlot className="h-11 w-full" index={2} />+ <InputOTPSlot className="h-11 w-full" index={3} />+ <InputOTPSlot className="h-11 w-full" index={4} />+ <InputOTPSlot className="h-11 w-full" index={5} /></InputOTPGroup></InputOTP></FormControl>@@ -160,22 +168,26 @@ function VerifyOtp() {{isPending ? "Verifying..." : "Verify & Sign In"}</Button>- <div className="flex items-center justify-between text-sm">- <button+ <div className="grid grid-cols-2 gap-2">+ <Buttontype="button"+ variant="outline"onClick={() => history.push("/auth/sign-in")}- className="text-muted-foreground hover:text-foreground"+ className="w-full">+ <ArrowLeft className="size-4" />Change email- </button>- <button+ </Button>+ <Buttontype="button"+ variant="secondary"onClick={handleResendOtp}disabled={isPending}- className="text-primary hover:underline"+ className="w-full">- Resend code- </button>+ <RefreshCcw className="size-4" />+ Resend+ </Button></div></form></Form>diff --git a/packages/email/src/index.tsx b/packages/email/src/index.tsxindex c0f8aa7ef..396280b9e 100644--- a/packages/email/src/index.tsx+++ b/packages/email/src/index.tsx@@ -1,5 +1,6 @@export {sendMagicLinkEmail,sendOtpEmail,+ sendPasswordResetEmail,sendWorkspaceInvitationEmail,} from "./send-email";diff --git a/packages/email/src/send-email.tsx b/packages/email/src/send-email.tsxindex 8f420ba05..56dd9321a 100644--- a/packages/email/src/send-email.tsx+++ b/packages/email/src/send-email.tsx@@ -5,6 +5,9 @@ import type { MagicLinkEmailProps } from "./templates/magic-link";import MagicLinkEmail from "./templates/magic-link";import type { OtpEmailProps } from "./templates/otp";import OtpEmail from "./templates/otp";+import PasswordResetEmail, {+ type PasswordResetEmailProps,+} from "./templates/password-reset";import WorkspaceInvitationEmail, {type WorkspaceInvitationEmailProps,} from "./templates/workspace-invitation";@@ -59,6 +62,24 @@ export const sendOtpEmail = async (}};+export const sendPasswordResetEmail = async (+ to: string,+ subject: string,+ data: PasswordResetEmailProps,+) => {+ const emailTemplate = await render(PasswordResetEmail(data));+ try {+ await transporter.sendMail({+ from: process.env.SMTP_FROM,+ to,+ subject,+ html: emailTemplate,+ });+ } catch (error) {+ console.error("Error sending password reset email", error);+ }+};+export type EmailResult = {success: boolean;reason?: "SMTP_NOT_CONFIGURED";diff --git a/packages/email/src/templates/magic-link.tsx b/packages/email/src/templates/magic-link.tsxindex 44e4e7ea4..7cc79de42 100644--- a/packages/email/src/templates/magic-link.tsx+++ b/packages/email/src/templates/magic-link.tsx@@ -1,16 +1,6 @@-import {- Body,- Container,- Head,- Heading,- Hr,- Html,- Link,- Preview,- Section,- Text,-} from "@react-email/components";+import { Link, Section, Text } from "@react-email/components";import React from "react";+import { EmailShell, styles } from "./shell";void React;@@ -19,30 +9,25 @@ export type MagicLinkEmailProps = {};const MagicLinkEmail = ({ magicLink }: MagicLinkEmailProps) => (- <Html>- <Head />- <Body style={main}>- <Preview>Log in with this magic link.</Preview>- <Container style={container}>- <Heading style={heading}>🪄 Your magic link for Kaneo</Heading>- <Section style={body}>- <Text style={paragraph}>- <Link style={link} href={magicLink}>- 👉 Click here to sign in 👈- </Link>- </Text>- <Text style={paragraph}>- This link and code will only be valid for the next 5 minutes.- </Text>- <Text style={paragraph}>- If you didn't request this, please ignore this email.- </Text>- <Hr />- <Text style={footerParagraph}>Kaneo</Text>- </Section>- </Container>- </Body>- </Html>+ <EmailShell+ preview="Sign in to Kaneo"+ title="Your secure sign-in link"+ subtitle="Use this link to continue to your Kaneo workspace."+ >+ <Section>+ <Link style={styles.button} href={magicLink}>+ Sign in to Kaneo+ </Link>+ <Text style={styles.paragraph}>+ This link expires in 5 minutes for your security.+ </Text>+ <Text style={styles.muted}>+ If you didn't request this, you can ignore this email.+ </Text>+ <Section style={styles.divider} />+ <Text style={styles.footer}>Kaneo security email</Text>+ </Section>+ </EmailShell>);MagicLinkEmail.PreviewProps = {@@ -50,41 +35,3 @@ MagicLinkEmail.PreviewProps = {} as MagicLinkEmailProps;export default MagicLinkEmail;--const main = {- fontFamily:- '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',-};--const container = {- margin: "0 auto",- padding: "20px 25px 0px",-};--const _header = {- display: "inline-block",-};--const heading = {- fontSize: "28px",- fontWeight: "bold",-};--const body = {- margin: "24px 0",-};--const paragraph = {- fontSize: "16px",- lineHeight: "26px",-};--const link = {- color: "#5463FF",-};--const footerParagraph = {- fontSize: "14px",- lineHeight: "20px",- color: "#6B7280",-};diff --git a/packages/email/src/templates/otp.tsx b/packages/email/src/templates/otp.tsxindex cab46c64d..818f1d669 100644--- a/packages/email/src/templates/otp.tsx+++ b/packages/email/src/templates/otp.tsx@@ -1,15 +1,6 @@-import {- Body,- Container,- Head,- Heading,- Hr,- Html,- Preview,- Section,- Text,-} from "@react-email/components";+import { Section, Text } from "@react-email/components";import React from "react";+import { EmailShell, styles } from "./shell";void React;@@ -18,26 +9,24 @@ export type OtpEmailProps = {};const OtpEmail = ({ otp }: OtpEmailProps) => (- <Html>- <Head />- <Body style={main}>- <Preview>Your verification code for Kaneo</Preview>- <Container style={container}>- <Heading style={heading}>- <strong>Your login code for Kaneo is:</strong>- </Heading>- <Section style={body}>- <Text style={codeStyle}>{otp}</Text>- <Text style={paragraph}>The code is valid for 15 minutes.</Text>- <Text style={paragraph}>- If you didn't request this, please ignore this email.- </Text>- <Hr />- <Text style={footerParagraph}>Kaneo</Text>- </Section>- </Container>- </Body>- </Html>+ <EmailShell+ preview="Your Kaneo verification code"+ title="Your verification code"+ subtitle="Enter this one-time code to finish signing in."+ >+ <Section>+ <Text style={styles.paragraph}>+ {otp} is your Kaneo verification code.+ </Text>+ <Text style={styles.code}>{otp}</Text>+ <Text style={styles.paragraph}>This code expires in 15 minutes.</Text>+ <Text style={styles.muted}>+ If you didn't request this, you can ignore this email.+ </Text>+ <Section style={styles.divider} />+ <Text style={styles.footer}>Kaneo security email</Text>+ </Section>+ </EmailShell>);OtpEmail.PreviewProps = {@@ -45,44 +34,3 @@ OtpEmail.PreviewProps = {} as OtpEmailProps;export default OtpEmail;--const main = {- fontFamily:- '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',-};--const container = {- margin: "0 auto",- padding: "20px 25px 0px",-};--const heading = {- fontSize: "28px",- fontWeight: "bold",-};--const body = {- margin: "24px 0",-};--const paragraph = {- fontSize: "14px",- lineHeight: "1.6",- margin: "12px 0",- color: "#666",-};--const codeStyle = {- fontSize: "30px",- fontWeight: "bold" as const,- letterSpacing: "4px",- textAlign: "center" as const,- margin: "12px 0",- color: "#333",-};--const footerParagraph = {- fontSize: "14px",- lineHeight: "20px",- color: "#6B7280",-};diff --git a/packages/email/src/templates/password-reset.tsx b/packages/email/src/templates/password-reset.tsxnew file mode 100644index 000000000..31b35bd7d--- /dev/null+++ b/packages/email/src/templates/password-reset.tsx@@ -0,0 +1,44 @@+import { Link, Section, Text } from "@react-email/components";+import React from "react";+import { EmailShell, styles } from "./shell";++void React;++export type PasswordResetEmailProps = {+ resetLink: string;+ userName?: string;+};++const PasswordResetEmail = ({+ resetLink,+ userName,+}: PasswordResetEmailProps) => (+ <EmailShell+ preview="Reset your Kaneo password"+ title="Reset your password"+ subtitle={+ userName+ ? `Hi ${userName}, use the button below to set a new password.`+ : "Use the button below to set a new password."+ }+ >+ <Section>+ <Link style={styles.button} href={resetLink}>+ Reset password+ </Link>+ <Text style={styles.paragraph}>This reset link expires in 1 hour.</Text>+ <Text style={styles.muted}>+ If you didn't request this, no changes will be made.+ </Text>+ <Section style={styles.divider} />+ <Text style={styles.footer}>Kaneo security email</Text>+ </Section>+ </EmailShell>+);++PasswordResetEmail.PreviewProps = {+ resetLink: "https://kaneo.app/auth/reset-password?token=example",+ userName: "Jane",+} as PasswordResetEmailProps;++export default PasswordResetEmail;diff --git a/packages/email/src/templates/shell.tsx b/packages/email/src/templates/shell.tsxnew file mode 100644index 000000000..422342ca8--- /dev/null+++ b/packages/email/src/templates/shell.tsx@@ -0,0 +1,145 @@+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Preview,+ Section,+ Text,+} from "@react-email/components";+import React from "react";++void React;++type EmailShellProps = {+ preview: string;+ title: string;+ subtitle?: string;+ children: React.ReactNode;+};++export function EmailShell({+ preview,+ title,+ subtitle,+ children,+}: EmailShellProps) {+ return (+ <Html>+ <Head />+ <Preview>{preview}</Preview>+ <Body style={main}>+ <Container style={container}>+ <Section style={content}>+ <Text style={badge}>Kaneo</Text>+ <Heading style={heading}>{title}</Heading>+ {subtitle ? <Text style={subtitleText}>{subtitle}</Text> : null}+ <Section style={body}>{children}</Section>+ </Section>+ </Container>+ </Body>+ </Html>+ );+}++export const styles = {+ paragraph: {+ margin: "0 0 14px",+ color: "#262626",+ fontSize: "14px",+ lineHeight: "22px",+ },+ muted: {+ margin: "0",+ color: "#737373",+ fontSize: "13px",+ lineHeight: "20px",+ },+ button: {+ display: "inline-block",+ margin: "8px 0 14px",+ padding: "11px 20px",+ borderRadius: "10px",+ border: "1px solid #262626",+ color: "#fafafa",+ backgroundColor: "#262626",+ textDecoration: "none",+ fontSize: "14px",+ fontWeight: "600",+ boxShadow: "inset 0 1px rgba(255, 255, 255, 0.16)",+ },+ code: {+ margin: "6px 0 14px",+ textAlign: "center" as const,+ padding: "14px 20px",+ borderRadius: "10px",+ border: "1px solid rgba(0, 0, 0, 0.1)",+ backgroundColor: "rgba(0, 0, 0, 0.04)",+ color: "#171717",+ fontSize: "30px",+ letterSpacing: "8px",+ fontWeight: "600",+ },+ divider: {+ borderTop: "1px solid rgba(0, 0, 0, 0.08)",+ margin: "16px 0",+ },+ footer: {+ margin: "0",+ color: "#737373",+ fontSize: "12px",+ lineHeight: "18px",+ },+};++const main = {+ backgroundColor: "#ffffff",+ margin: "0",+ padding: "20px 12px",+ fontFamily:+ '"Cal Sans UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',+};++const container = {+ margin: "0 auto",+ maxWidth: "560px",+ borderRadius: "16px",+ border: "1px solid rgba(0, 0, 0, 0.08)",+ overflow: "hidden",+ backgroundColor: "#ffffff",+ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.06)",+};++const content = {+ padding: "24px",+};++const badge = {+ margin: "0 0 8px",+ color: "#262626",+ fontWeight: "600",+ fontSize: "12px",+ letterSpacing: "0.1em",+ textTransform: "uppercase" as const,+};++const heading = {+ margin: "0 0 8px",+ color: "#262626",+ fontSize: "24px",+ lineHeight: "31px",+ fontFamily:+ '"Cal Sans Heading", "Cal Sans UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',+};++const subtitleText = {+ margin: "0 0 18px",+ color: "#525252",+ fontSize: "14px",+ lineHeight: "22px",+};++const body = {+ margin: "0",+};diff --git a/packages/email/src/templates/workspace-invitation.tsx b/packages/email/src/templates/workspace-invitation.tsxindex 24ee6c16e..45ee1996a 100644--- a/packages/email/src/templates/workspace-invitation.tsx+++ b/packages/email/src/templates/workspace-invitation.tsx@@ -1,16 +1,6 @@-import {- Body,- Container,- Head,- Heading,- Hr,- Html,- Link,- Preview,- Section,- Text,-} from "@react-email/components";+import { Link, Section, Text } from "@react-email/components";import React from "react";+import { EmailShell, styles } from "./shell";void React;@@ -29,32 +19,25 @@ const WorkspaceInvitationEmail = ({invitationLink,to,}: WorkspaceInvitationEmailProps) => (- <Html>- <Head />- <Body style={main}>- <Preview>You've been invited to join {workspaceName} on Kaneo.</Preview>- <Container style={container}>- <Heading style={heading}>Join {workspaceName}</Heading>- <Section style={body}>- <Text style={paragraph}>- {inviterName} ({inviterEmail}) has invited you to join{" "}- {workspaceName} on Kaneo.- </Text>- <Text style={paragraph}>- Click the button below to accept the invitation:- </Text>- <Link style={buttonStyle} href={`${invitationLink}?email=${to}`}>- Accept Invitation- </Link>- <Text style={paragraph}>- If you didn't expect this invitation, you can ignore this email.- </Text>- <Hr />- <Text style={footerParagraph}>Kaneo</Text>- </Section>- </Container>- </Body>- </Html>+ <EmailShell+ preview={`You're invited to ${workspaceName} on Kaneo`}+ title={`Join ${workspaceName}`}+ subtitle={`${inviterName} (${inviterEmail}) invited you to collaborate in Kaneo.`}+ >+ <Section>+ <Link style={styles.button} href={`${invitationLink}?email=${to}`}>+ Accept invitation+ </Link>+ <Text style={styles.paragraph}>+ You can accept with the same email that received this message.+ </Text>+ <Text style={styles.muted}>+ If this wasn't expected, you can safely ignore this email.+ </Text>+ <Section style={styles.divider} />+ <Text style={styles.footer}>Kaneo workspace invitation</Text>+ </Section>+ </EmailShell>);WorkspaceInvitationEmail.PreviewProps = {@@ -66,46 +49,3 @@ WorkspaceInvitationEmail.PreviewProps = {} as WorkspaceInvitationEmailProps;export default WorkspaceInvitationEmail;--const main = {- fontFamily:- '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif',-};--const container = {- margin: "0 auto",- padding: "20px 25px 0px",-};--const heading = {- fontSize: "28px",- fontWeight: "bold",-};--const body = {- margin: "24px 0",-};--const paragraph = {- fontSize: "16px",- lineHeight: "26px",-};--const buttonStyle = {- display: "inline-block",- fontSize: "16px",- fontWeight: "600",- textAlign: "center" as const,- textDecoration: "none",- padding: "12px 24px",- margin: "24px 0",- backgroundColor: "#18181b",- color: "#ffffff",- borderRadius: "8px",-};--const footerParagraph = {- fontSize: "14px",- lineHeight: "20px",- color: "#6B7280",-};