Skip to content

Commit

Permalink
fix: megabundle boss page
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhooks committed Dec 4, 2024
1 parent 3f90f3a commit e299974
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
19 changes: 19 additions & 0 deletions apps/epic-web/src/components/megabundle-boss-letter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Dear Boss,

We're asking for licenses to the Epic Megabundle - the most complete collection of developer workshops ever created by Kent C. Dodds. This is not a sit-on-your-butt-and-watch-lectures bundle. This is a learn-with-your-hands-on-the-keyboard bundle with over 500 exercises across 31 workshops.

These workshops will help our team master our craft, moving us beyond just knowing how to do something to knowing how to do anything. When you master your craft, you gain the power of true confidence - the kind of confidence you earn, the kind you can use, the kind that can't be faked.

Developers who complete these workshops consistently report that:
- They retain solutions better than before
- They understand WHY decisions are made, not just WHAT to do
- They feel more confident making technical decisions
- They can apply these principles to new situations

This special offer ends at Midnight (Pacific) on Thursday, December 19th. This is the perfect opportunity to spend down our remaining 2024 learning budget and invest in our skills for 2025.

If you're ready to support our team's development, please visit https://epicweb.dev/megabundle-2024 to purchase our licenses.

Thank you for considering this investment in our growth.

— your team
19 changes: 16 additions & 3 deletions apps/epic-web/src/pages/boss.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import Layout from 'components/app/layout'
import MegabundleBossLetter from 'components/megabundle-boss-letter.mdx'
import BossLetter from 'components/boss-letter.mdx'

const BossLetterPage = () => {
export const getServerSideProps = () => {
return {
props: {
megabundleEnds: '2024-12-20T07:59:59Z',
},
}
}

const BossLetterPage = ({megabundleEnds}: {megabundleEnds: string}) => {
return (
<Layout
meta={{
Expand All @@ -11,8 +20,12 @@ const BossLetterPage = () => {
},
}}
>
<main className="prose prose-lg mx-auto w-full max-w-2xl py-16 px-5 dark:prose-invert">
<BossLetter />
<main className="prose prose-lg mx-auto w-full max-w-2xl px-5 py-16 dark:prose-invert">
{new Date() < new Date(megabundleEnds) ? (
<MegabundleBossLetter />
) : (
<BossLetter />
)}
</main>
</Layout>
)
Expand Down

0 comments on commit e299974

Please sign in to comment.