Connect, collaborate, and grow with a community of TypeScript developers
feat: AOT wrapped (#1349)
bautistaaab1c60bdc2604
diff --git a/apps/web/public/aot/hero-background.svg b/apps/web/public/aot/hero-background.svgnew file mode 100644index 00000000..02565797--- /dev/null+++ b/apps/web/public/aot/hero-background.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 800 800" opacity="1"><defs><filter id="bbburst-blur-1" x="-100%" y="-100%" width="400%" height="400%"><feGaussianBlur in="SourceGraphic" stdDeviation="1"></feGaussianBlur></filter><filter id="bbburst-blur-2" x="-100%" y="-100%" width="400%" height="400%"><feGaussianBlur in="SourceGraphic" stdDeviation="2"></feGaussianBlur></filter><filter id="bbburst-blur-3" x="-100%" y="-100%" width="400%" height="400%"><feGaussianBlur in="SourceGraphic" stdDeviation="4"></feGaussianBlur></filter><filter id="bbburst-blur-4" x="-100%" y="-100%" width="400%" height="400%"><feGaussianBlur in="SourceGraphic" stdDeviation="12"></feGaussianBlur></filter><symbol id="bbburst-shape-1" viewBox="0 0 194 167"><path d="m97 0 96.129 166.5H.871L97 0Z"></path></symbol><symbol id="bbburst-shape-4" viewBox="0 0 149 143"><path d="M71.647 2.781c.898-2.764 4.808-2.764 5.706 0l15.445 47.534a3 3 0 0 0 2.853 2.073h49.98c2.906 0 4.115 3.719 1.764 5.427L106.96 87.193a2.999 2.999 0 0 0-1.09 3.354l15.445 47.534c.898 2.764-2.266 5.062-4.617 3.354l-40.435-29.378a3 3 0 0 0-3.526 0l-40.435 29.378c-2.351 1.708-5.515-.59-4.617-3.354L43.13 90.547a3 3 0 0 0-1.09-3.354L1.605 57.815c-2.35-1.708-1.142-5.427 1.764-5.427h49.98a3 3 0 0 0 2.853-2.073L71.647 2.781Z"></path></symbol><symbol id="bbburst-shape-5" viewBox="0 0 145 145"><circle cx="72.5" cy="72.5" r="72.5"></circle></symbol><symbol id="bbburst-shape-6" viewBox="0 0 133 116"><path d="M59.7487 10.2513c-13.6683-13.66839-35.8291-13.66839-49.4974 0-13.66839 13.6683-13.66839 35.8291 0 49.4974l49.4974-49.4974ZM66.5 66.5 41.7513 91.2487 66.5 115.997l24.7487-24.7483L66.5 66.5Zm56.249-6.7513c13.668-13.6683 13.668-35.8291 0-49.4974-13.669-13.66839-35.8294-13.66839-49.4977 0l49.4977 49.4974Zm-112.4977 0 31.5 31.5 49.4974-49.4974-31.5-31.5-49.4974 49.4974Zm80.9974 31.5 31.5003-31.5-49.4977-49.4974-31.5 31.5 49.4974 49.4974Z"></path></symbol><symbol id="bbburst-shape-7" viewBox="0 0 139 124"><path fill-rule="evenodd" clip-rule="evenodd" d="M70.1641 15.0917C54.6093.764854 37.8293-2.10782 24.4032 2.82615 10.3804 7.97941.763366 21.4591 1.00047 37.0608c.1068 7.0273 2.86132 13.7317 7.0039 20.2001C12.1442 63.7249 17.853 70.2322 24.25 76.9024c3.8209 3.9842 7.8871 8.0312 12.0767 12.201h.0001c10.0335 9.9862 20.7748 20.6766 30.5497 32.8956 1.38 1.725 3.8972 2.005 5.6223.624.6706-.536 1.1228-1.244 1.3439-2.011 9.5768-11.748 20.0328-22.0735 29.8163-31.7351 4.19-4.1373 8.256-8.1528 12.078-12.1062 6.396-6.6176 12.106-13.0752 16.247-19.4911 4.144-6.4196 6.905-13.0811 7.012-20.0691.237-15.5124-9.399-28.8902-23.411-33.99923-13.32-4.85681-29.9542-2.08621-45.4209 11.88043Zm-3.7351 7.4919C52.1278 8.44857 37.6826 6.46918 27.1626 10.3352 16.2859 14.3323 8.8148 24.7824 8.99955 36.9392c.07575 4.9844 2.03755 10.2234 5.74165 16.0072 3.707 5.7881 8.9752 11.8418 15.2827 18.4187 3.5798 3.7328 7.4978 7.6329 11.6 11.7163 9.0476 9.0063 18.9911 18.9046 28.1786 29.8666 9.2999-11.068 19.4036-21.0473 28.5839-30.1144l.0007-.0006c4.1019-4.0508 8.0189-7.9196 11.5979-11.6222 6.307-6.5252 11.573-12.5298 15.278-18.2697 3.703-5.7362 5.658-10.924 5.734-15.8531.184-12.0276-7.267-22.3914-18.153-26.3608-10.71-3.90518-25.4722-1.80041-40.0023 12.867-1.5547 1.5694-4.0874 1.5813-5.6568.0265-.3146-.3116-.5666-.6625-.7559-1.0371Z"></path></symbol><symbol id="bbburst-shape-10" viewBox="0 0 145 145"><circle cx="72.5" cy="72.5" r="61.5" fill="none" stroke-width="22"></circle></symbol><symbol id="bbburst-shape-12" viewBox="0 0 170 151"><path d="M69.3728 54.2122 85 10.0031l15.627 44.2091c1.413 3.9958 5.19 6.6672 9.428 6.6673h49.312l-39.149 26.1447c-3.803 2.5401-5.399 7.3367-3.875 11.6488l15.179 42.94-40.9683-27.36c-3.3621-2.245-7.7453-2.245-11.1074 0l-40.9682 27.36 15.1785-42.94c1.5243-4.3121-.0712-9.1087-3.8746-11.6488L10.6333 60.8795h49.3112c4.2381-.0001 8.0159-2.6715 9.4283-6.6673Z" stroke-width="12"></path></symbol></defs><use xlink:href="#bbburst-shape-6" width="43.40104167630057" opacity="0.4655018961936166" transform="matrix(0.8535904612511666,0.5209446462543028,-0.5209446462543028,0.8535904612511666,374.90660236479346,155.1917111832919)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-7" width="36.39440814744093" opacity="0.11970006712854186" transform="matrix(0.9548789711748189,-0.8066635918449025,0.8066635918449025,0.9548789711748189,355.3310988310433,-230.99423311428154)" fill="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="35.38494841991243" opacity="0.06357706528265716" transform="matrix(1.7497841423386389,0.027485545660109773,-0.027485545660109773,1.7497841423386389,735.0312338431169,-73.302620974403)" fill="#ffffff" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-4" width="36.0592030273951" opacity="0.45132022471782884" transform="matrix(0.9888443770368703,-0.14895233466637486,0.14895233466637486,0.9888443770368703,321.5447304156294,-239.72349009787573)" fill="#ffffff" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-10" width="32.575961378231504" opacity="0.764133927390665" transform="matrix(0.8119738215531425,0.5836938522139715,-0.5836938522139715,0.8119738215531425,619.9443108234988,-40.436020378504)" fill="none" stroke="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-12" width="24.470883749423372" opacity="0.9290840586774449" transform="matrix(0.8050301591337047,0.5932338854829199,-0.5932338854829199,0.8050301591337047,654.1298140689348,88.23334781140255)" fill="none" stroke="#00a19d"></use><use xlink:href="#bbburst-shape-6" width="29.314821836514184" opacity="0.8055905393510009" transform="matrix(0.9609122039957707,0.2768532756027829,-0.2768532756027829,0.9609122039957707,521.2706299416678,95.5277851088502)" fill="#00a19d"></use><use xlink:href="#bbburst-shape-10" width="40.38089094673042" opacity="0.19450275378185" transform="matrix(1.249760097419099,0.024488750458206452,-0.024488750458206452,1.249760097419099,328.9910646901846,257.79011407593146)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="36.91040783855905" opacity="0.1907944082914783" transform="matrix(1.2081825362718799,-0.3206165295920465,0.3206165295920465,1.2081825362718799,612.2190121847981,-109.1056282395985)" fill="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-7" width="39.42222178220228" opacity="0.516910508803669" transform="matrix(0.7900348640417338,0.6130619166108421,-0.6130619166108421,0.7900348640417338,456.326129417521,-59.543697363754745)" fill="#ffffff" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-1" width="30.872663896635412" opacity="0.26549789296879844" transform="matrix(1.240735670504598,0.15190456193776983,-0.15190456193776983,1.240735670504598,741.3334879898044,40.72731355207753)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-7" width="47.60006150581735" opacity="-0.08269517668140969" transform="matrix(1.671401779282008,0.5185712026452475,-0.5185712026452475,1.671401779282008,906.4947901485839,68.79978074342534)" fill="#ff5c58" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-1" width="45.66679842647576" opacity="-0.05402435965253383" transform="matrix(1.5599775841084227,-0.7930762492215042,0.7930762492215042,1.5599775841084227,-289.78060502412006,-539.5828799118033)" fill="#ffffff" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-12" width="38.98727732033517" opacity="0.29507825061530324" transform="matrix(1.2385474915589298,-0.16881975936803867,0.16881975936803867,1.2385474915589298,461.8191016620322,185.38506227281658)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="32.57546938495272" opacity="0.635595699992457" transform="matrix(0.9538870096098289,-0.3001659089530626,0.3001659089530626,0.9538870096098289,413.1620376704137,92.36718750357767)" fill="#00a19d" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-7" width="28.017031310333607" opacity="0.7558690998947711" transform="matrix(0.9969251330420272,0.07835993305979988,-0.07835993305979988,0.9969251330420272,498.6628732194745,-73.67962962092446)" fill="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-10" width="36.74503765928449" opacity="0.592142833304939" transform="matrix(0.9945394636824805,0.10436117658480179,-0.10436117658480179,0.9945394636824805,361.51367609851076,-172.49453377879965)" fill="none" stroke="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-5" width="36.95220034099462" opacity="0.08918903673990675" transform="matrix(1.4366293660990226,-0.9992977856784837,0.9992977856784837,1.4366293660990226,167.82738101139478,204.80779510043044)" fill="#00a19d" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-4" width="25.41937918995792" opacity="0.5483686464940818" transform="matrix(0.9965581634557491,0.08289648273421803,-0.08289648273421803,0.9965581634557491,623.7081076934604,2.9505977852099363)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-4" width="38.25342093801014" opacity="0.25093270059443185" transform="matrix(1.0512719904113268,-0.6762597150330687,0.6762597150330687,1.0512719904113268,173.76383717240992,-338.4182484350838)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-5" width="28.918345759977825" opacity="0.715920856601099" transform="matrix(0.911851515423114,0.4105201746815501,-0.4105201746815501,0.911851515423114,678.8566673291884,30.110036407762266)" fill="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-10" width="34.42659690797164" opacity="0.33264372772512985" transform="matrix(1.2496386372820913,-0.03005455392711106,0.03005455392711106,1.2496386372820913,71.73012524202991,-41.75332063415169)" fill="none" stroke="#ffffff" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-12" width="33.87037819081053" opacity="0.18959705763021517" transform="matrix(1.1416423582795965,-0.5090704526701597,0.5090704526701597,1.1416423582795965,387.5814441943079,-345.8484726568992)" fill="none" stroke="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-10" width="31.610185031201052" opacity="0.6135042972730047" transform="matrix(0.8991489594332017,0.43764271815053724,-0.43764271815053724,0.8991489594332017,461.5634935568843,176.22478497729855)" fill="none" stroke="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-12" width="24.361815141121376" opacity="0.8351481344194052" transform="matrix(0.9388284481938666,-0.3443851693408072,0.3443851693408072,0.9388284481938666,324.8925337284453,25.056492765127587)" fill="none" stroke="#ff5c58"></use><use xlink:href="#bbburst-shape-5" width="32.39662734680661" opacity="0.07993950669404881" transform="matrix(1.3308265702063788,-1.1363980992736333,1.1363980992736333,1.3308265702063788,-281.37008793016975,245.64551123327692)" fill="#00a19d" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-10" width="32.7449434079442" opacity="0.6421410336544869" transform="matrix(0.9739392748328148,0.22680892605479777,-0.22680892605479777,0.9739392748328148,562.3207343747337,141.87373737200647)" fill="none" stroke="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-5" width="41.93021272067382" opacity="0.4166462566090211" transform="matrix(0.8726316560943096,-0.4883789438357295,0.4883789438357295,0.8726316560943096,308.74679475226867,-171.04419751885828)" fill="#ff5c58" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-7" width="28.242472579370848" opacity="0.6192880290199319" transform="matrix(0.8752321670099017,-0.483703063698331,0.483703063698331,0.8752321670099017,352.799516275487,-7.67650798388803)" fill="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-6" width="33.90732770742831" opacity="0.11344558442791286" transform="matrix(1.1775463093095055,-0.41938608635905233,0.41938608635905233,1.1775463093095055,376.5904826107309,-427.4508243316484)" fill="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-10" width="22.592565858290996" opacity="0.7228027891332658" transform="matrix(0.9377000362439304,0.3474458835964698,-0.3474458835964698,0.9377000362439304,502.7526407963477,143.0717271953049)" fill="none" stroke="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-10" width="38.03798971234718" opacity="0.14693162194811848" transform="matrix(1.2226895391284716,0.259865909472185,-0.259865909472185,1.2226895391284716,118.27021937919834,32.53168083530721)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-5" width="33.47344803118512" opacity="0.4156882936098092" transform="matrix(0.7918482978251433,-0.6107178343813312,0.6107178343813312,0.7918482978251433,173.81883353767495,354.54568389598626)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-5" width="30.235376514670683" opacity="0.3202271199636326" transform="matrix(1.2488716295843796,0.05310040319297064,-0.05310040319297064,1.2488716295843796,298.39470050139084,187.33706667002355)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="45.29750811120941" opacity="0.30921746370134817" transform="matrix(0.9698725725399125,0.7885728837810823,-0.7885728837810823,0.9698725725399125,591.7478710292279,-299.520552480716)" fill="#ffffff" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-6" width="39.411131059698704" opacity="0.5076832376402003" transform="matrix(0.9930866766846209,0.1173833573872177,-0.1173833573872177,0.9930866766846209,371.5421833691519,214.84201428495555)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-5" width="28.040367628136543" opacity="0.6100828905616213" transform="matrix(0.9127616043237339,0.40849266048775396,-0.40849266048775396,0.9127616043237339,573.1424228933283,203.17681964123733)" fill="#00a19d" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-12" width="29.19146319487422" opacity="0.6133033710125874" transform="matrix(0.918884391943371,0.39452689926399365,-0.39452689926399365,0.918884391943371,651.3785850433278,-110.62151495632367)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-1" width="18.606091041997587" opacity="0.8778365105272035" transform="matrix(0.9454132549519352,0.3258738672572368,-0.3258738672572368,0.9454132549519352,552.2067311594006,-26.803664396393742)" fill="#ff5c58"></use><use xlink:href="#bbburst-shape-4" width="38.322601380499144" opacity="0.2297501777268095" transform="matrix(1.0225606205008932,0.7189365600669005,-0.7189365600669005,1.0225606205008932,419.69173544429765,-264.64263215259507)" fill="#ffffff" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="42.479539878214126" opacity="-0.074928192917876" transform="matrix(1.2793578170366757,-1.1940450477210447,1.1940450477210447,1.2793578170366757,227.80462375591338,-437.6063954389916)" fill="#00a19d" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-1" width="32.69575392039412" opacity="0.7256723885618568" transform="matrix(0.8699789273326348,-0.4930889027317063,0.4930889027317063,0.8699789273326348,108.22380602820303,-33.621745113906854)" fill="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-6" width="55.85689086255684" opacity="0.2112505354391876" transform="matrix(1.1118920388005358,0.5711357930054705,-0.5711357930054705,1.1118920388005358,244.30183431870583,-96.78701863660348)" fill="#ffffff" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-5" width="25.87363700859037" opacity="0.6486181662248276" transform="matrix(0.9968712402109227,0.07904258624524413,-0.07904258624524413,0.9968712402109227,282.01223420179883,79.6852487175463)" fill="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-6" width="25.24315270010748" opacity="0.7912908338306847" transform="matrix(0.8224908687502538,-0.5687783143039586,0.5687783143039586,0.8224908687502538,95.67964028976652,144.57642778888953)" fill="#00a19d"></use><use xlink:href="#bbburst-shape-12" width="33.995348295540296" opacity="0.652343601713875" transform="matrix(0.999058000027109,-0.04339484510668432,0.04339484510668432,0.999058000027109,219.4965844637965,-54.7331426700361)" fill="none" stroke="#ff5c58" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-7" width="42.70116207589077" opacity="0.31952449338287214" transform="matrix(1.1879009093213289,0.38909051599025124,-0.38909051599025124,1.1879009093213289,772.1795849337906,-271.0626088316035)" fill="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-6" width="22.78115408654519" opacity="0.8955285040814935" transform="matrix(0.963125084183305,0.2690540321513538,-0.2690540321513538,0.963125084183305,471.61748281346144,-28.107296174409953)" fill="#ff5c58"></use><use xlink:href="#bbburst-shape-10" width="38.72246366299857" opacity="0.33757318496563826" transform="matrix(0.9972875291500222,0.0736042403795032,-0.0736042403795032,0.9972875291500222,707.8113514492323,15.35887390899336)" fill="none" stroke="#ffffff" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-12" width="47.668185487796336" opacity="0.13988066366071739" transform="matrix(0.9107406763665536,-0.8561842210712555,0.8561842210712555,0.9107406763665536,299.61344589700553,339.19987886869404)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-12" width="34.143867101103936" opacity="0.4717162954619175" transform="matrix(0.8503523425510295,0.5262137336843049,-0.5262137336843049,0.8503523425510295,716.8680185535899,255.5314421119199)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-1" width="52.9107182859383" opacity="-0.0519344154039203" transform="matrix(1.3536607237381548,-1.1090999256192813,1.1090999256192813,1.3536607237381548,-421.4314968062755,215.1967701104628)" fill="#ff5c58" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-1" width="34.92451197569527" opacity="0.10565640625039019" transform="matrix(1.738627314464565,0.19918599699209477,-0.19918599699209477,1.738627314464565,251.5578264042755,-649.3730209803011)" fill="#ffffff" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-1" width="34.029716088968826" opacity="0.5070577342312752" transform="matrix(0.7572178723988298,-0.6531623792900121,0.6531623792900121,0.7572178723988298,301.93897514149734,243.20037843117632)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-6" width="31.930783830181046" opacity="0.41939003182311607" transform="matrix(0.9196727698948463,0.39268562020265174,-0.39268562020265174,0.9196727698948463,395.4184785577065,-190.15525502238495)" fill="#ff5c58" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-10" width="27.995300828082364" opacity="0.4901962202425644" transform="matrix(0.9650055891552057,-0.26222931357728524,0.26222931357728524,0.9650055891552057,462.29104051502605,-123.68454714748304)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-5" width="40.09638472687796" opacity="0.1959514222227161" transform="matrix(1.1834381504126539,-0.4024601149777168,0.4024601149777168,1.1834381504126539,175.03874898693726,-424.8826360023273)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="37.10809067776644" opacity="0.22231154071423642" transform="matrix(0.9739666005202524,0.783510728114825,-0.783510728114825,0.9739666005202524,473.68893957736725,266.7545159481123)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-7" width="36.72812693246393" opacity="0.060323071564271746" transform="matrix(1.6860377752131037,-0.4688033922173001,0.4688033922173001,1.6860377752131037,544.1381293976772,-482.8964123403599)" fill="#ff5c58" filter="url(#bbburst-blur-4)"></use><use xlink:href="#bbburst-shape-6" width="23.91341471021477" opacity="0.7687096296239092" transform="matrix(0.9468273002662343,-0.32174223140668695,0.32174223140668695,0.9468273002662343,342.1694789785203,88.97590409827177)" fill="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-4" width="30.550359314054013" opacity="0.8258603290251137" transform="matrix(0.9878787432051189,-0.15522753854736818,0.15522753854736818,0.9878787432051189,245.03986016349052,-2.265538940009151)" fill="#00a19d"></use><use xlink:href="#bbburst-shape-6" width="38.435498009861746" opacity="0.4281763105735944" transform="matrix(0.9981259311376077,0.06119334596738034,-0.06119334596738034,0.9981259311376077,236.43127073929173,193.7357782117827)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-7" width="38.2920562964885" opacity="0.20543601456249827" transform="matrix(0.9600644286517364,0.8004850359860669,-0.8004850359860669,0.9600644286517364,1037.6381100765832,-121.88385637119154)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="42.73884279527118" opacity="0.4868055118281982" transform="matrix(0.9462977780785928,0.32329632723481144,-0.32329632723481144,0.9462977780785928,278.9137339257206,-4.198948678273609)" fill="#ff5c58" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-10" width="49.18252731311469" opacity="0.18335523953941035" transform="matrix(1.243964718495509,-0.12268569247630062,0.12268569247630062,1.243964718495509,15.133100001961608,110.12785279608016)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-12" width="33.02199556571347" opacity="0.6144240127611491" transform="matrix(0.8047478837801937,-0.5936167480380754,0.5936167480380754,0.8047478837801937,188.6551390390129,-81.11692488241596)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-10" width="43.82458181622022" opacity="0.418840769611841" transform="matrix(0.9911398951622431,-0.13282209235581913,0.13282209235581913,0.9911398951622431,576.219733442998,-66.75121677997464)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-5" width="40.68145171040205" opacity="0.20728644342129277" transform="matrix(1.0274657950728832,0.7119087300737702,-0.7119087300737702,1.0274657950728832,728.8549998722907,325.28372253405973)" fill="#ffffff" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-7" width="36.32025758330496" opacity="0.4454433126394445" transform="matrix(0.9369904334540592,0.3493550165885332,-0.3493550165885332,0.9369904334540592,760.2749529254882,94.89502605191456)" fill="#ffffff" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-1" width="42.424522835768975" opacity="0.1113774203839617" transform="matrix(1.0784117116974634,0.6320824155707443,-0.6320824155707443,1.0784117116974634,277.1509330460833,-233.01152990310197)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-4" width="45.13494012043954" opacity="0.3451330101776532" transform="matrix(0.8767831554906174,0.48088595139379553,-0.48088595139379553,0.8767831554906174,302.23708779157124,-78.89399813918277)" fill="#00a19d" filter="url(#bbburst-blur-2)"></use><use xlink:href="#bbburst-shape-6" width="24.970288461828897" opacity="0.9177624233016" transform="matrix(0.9983152658663393,0.058022667451782195,-0.058022667451782195,0.9983152658663393,388.38223827253273,29.435710758984385)" fill="#ffffff"></use><use xlink:href="#bbburst-shape-12" width="31.61195805820888" opacity="0.32565465169557883" transform="matrix(1.1654236912726794,0.45198187996905637,-0.45198187996905637,1.1654236912726794,794.1698931241108,122.49452927702464)" fill="none" stroke="#00a19d" filter="url(#bbburst-blur-3)"></use><use xlink:href="#bbburst-shape-1" width="20.556810549031916" opacity="0.6697489796461227" transform="matrix(0.9017662675447505,-0.432224014509154,0.432224014509154,0.9017662675447505,70.1369601868405,60.06164388312942)" fill="#ffffff" filter="url(#bbburst-blur-1)"></use><use xlink:href="#bbburst-shape-7" width="31.209833886532582" opacity="0.16470743423506007" transform="matrix(1.122385698322475,-0.5502275385703358,0.5502275385703358,1.122385698322475,526.8987176921793,50.93902674750905)" fill="#ff5c58" filter="url(#bbburst-blur-3)"></use></svg>diff --git a/apps/web/public/aot/santa_dead.png b/apps/web/public/aot/santa_dead.pngnew file mode 100644index 00000000..21da08c2Binary files /dev/null and b/apps/web/public/aot/santa_dead.png differdiff --git a/apps/web/public/aot/santa_flying.png b/apps/web/public/aot/santa_flying.pngnew file mode 100644index 00000000..edcf0b12Binary files /dev/null and b/apps/web/public/aot/santa_flying.png differdiff --git a/apps/web/public/aot/sunglasses2.png b/apps/web/public/aot/sunglasses2.pngnew file mode 100644index 00000000..d69ab57eBinary files /dev/null and b/apps/web/public/aot/sunglasses2.png differdiff --git a/apps/web/public/aot/wrapped.png b/apps/web/public/aot/wrapped.pngnew file mode 100644index 00000000..d6192741Binary files /dev/null and b/apps/web/public/aot/wrapped.png differdiff --git a/apps/web/src/app/[locale]/_components/countdown-timer.tsx b/apps/web/src/app/[locale]/_components/countdown-timer.tsxindex 0a3ce5e0..4193bee5 100644--- a/apps/web/src/app/[locale]/_components/countdown-timer.tsx+++ b/apps/web/src/app/[locale]/_components/countdown-timer.tsx@@ -1,6 +1,6 @@'use client';-import { useRouter } from 'next/navigation';+import Image from 'next/image';import { useEffect, useState } from 'react';const DateCard = ({ date, label }: { date: React.ReactNode; label: string }) => {@@ -15,7 +15,6 @@ const DateCard = ({ date, label }: { date: React.ReactNode; label: string }) =>};export const CountdownTimer = () => {- const router = useRouter();const [releaseDate, setReleaseDate] = useState(() => {return calculateNextReleaseTime();});@@ -31,9 +30,10 @@ export const CountdownTimer = () => {if (newRemainingTime === 0) {const nextReleaseDateTime = calculateNextReleaseTime();+ if (nextReleaseDateTime.getUTCDate() > 25) return;+setRemainingTime(nextReleaseDateTime.getTime() - Date.now());setReleaseDate(nextReleaseDateTime);- router.refresh();}};@@ -42,12 +42,20 @@ export const CountdownTimer = () => {return () => {clearInterval(timerId);};- }, [remainingTime, releaseDate, router]);+ }, [remainingTime, releaseDate]);const { days, hours, minutes, seconds } = calculateTimeComponents(remainingTime);- if (remainingTime === 0) return null;-+ if (remainingTime === 0 || releaseDate.getUTCDate() > 25) {+ return (+ <>+ <p className="text-center text-xl font-semibold">Thats a wrap! See you next year!</p>+ <p className="text-center text-xl font-semibold">+ <Image src="/aot/santa_dead.png" width={200} height={200} alt="" className="" />+ </p>+ </>+ );+ }return (<><p className="text-center text-xl font-semibold">diff --git a/apps/web/src/app/[locale]/aot-2023/wrapped/_components/hero.tsx b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/hero.tsxnew file mode 100644index 00000000..bd4d0b9f--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/hero.tsx@@ -0,0 +1,30 @@+import Image from 'next/image';++export function Hero() {+ return (+ <div className="relative flex h-screen w-full flex-col items-center justify-center">+ <Image+ src="/aot/hero-background.svg"+ layout="fill"+ objectFit="cover"+ alt="background with shapes"+ className="z-0 opacity-40"+ />+ <h1 className="z-10 text-center text-4xl font-bold tracking-tighter md:mb-5 md:text-8xl">+ Advent of <span className="text-red-600">Typescript</span>+ </h1>+ <div className="relative flex">+ <Image+ src="/aot/wrapped.png"+ width={150}+ height={150}+ alt=""+ className="absolute -left-[150px] -scale-x-100 transform"+ />+ <p className="z-10 text-4xl font-bold tracking-tighter text-green-600 md:text-8xl">+ Wrapped+ </p>+ </div>+ </div>+ );+}diff --git a/apps/web/src/app/[locale]/aot-2023/wrapped/_components/least-solved.tsx b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/least-solved.tsxnew file mode 100644index 00000000..8f4f27f4--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/least-solved.tsx@@ -0,0 +1,80 @@+'use client';++import { CheckCheck } from '@repo/ui/icons';+import { motion, type Variants } from 'framer-motion';+import Link from 'next/link';+import type { AotChallengeData } from '../page';+import Image from 'next/image';++interface Props {+ leastSolved: AotChallengeData[];+}+export function LeastSolved({ leastSolved }: Props) {+ const variants: Variants = {+ offscreen: {+ opacity: 0,+ y: -100,+ },+ onscreen: (delay: number) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay,+ duration: 0.5,+ },+ }),+ };++ return (+ <div className="flex h-screen w-full justify-center gap-2 bg-gradient-to-l from-red-100 to-30% dark:from-red-950">+ <div className="flex flex-col items-center justify-center gap-4 pt-20">+ <div className="relative">+ <p className="mb-10 text-5xl font-bold tracking-tighter text-red-950 dark:text-red-50 sm:mx-[-130px] sm:text-8xl">+ LEAST SOLVED+ </p>+ <Image+ src="/aot/santa_dead.png"+ width={200}+ height={200}+ alt=""+ className="absolute hidden -scale-x-100 sm:-bottom-7 sm:-left-44 sm:block"+ />+ <Image+ src="/aot/santa_dead.png"+ width={100}+ height={100}+ alt=""+ className="absolute -left-10 bottom-1 -scale-x-100 sm:hidden"+ />+ </div>+ <div className="flex flex-col gap-10">+ {leastSolved.map((s, i) => {+ return (+ <Link key={s.slug} href={`/challenge/${s.slug}`} target="_blank">+ <motion.div+ initial="offscreen"+ variants={variants}+ whileInView="onscreen"+ viewport={{ once: false }}+ custom={0}+ className="flex items-center gap-4"+ >+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-red-500 text-3xl font-semibold text-white">+ {i + 1}+ </div>+ <div className="flex flex-col items-start justify-start gap-1 text-left">+ <p className="text-xl font-semibold">{s.name}</p>+ <p className="flex items-center gap-1 text-sm text-neutral-500">+ <CheckCheck className="h-4 w-4" />+ {s.userCount} Successful Submissions+ </p>+ </div>+ </motion.div>+ </Link>+ );+ })}+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/app/[locale]/aot-2023/wrapped/_components/most-solved.tsx b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/most-solved.tsxnew file mode 100644index 00000000..f0831fc7--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/most-solved.tsx@@ -0,0 +1,80 @@+'use client';++import { CheckCheck } from '@repo/ui/icons';+import { motion, type Variants } from 'framer-motion';+import Link from 'next/link';+import type { AotChallengeData } from '../page';+import Image from 'next/image';++interface Props {+ mostSolved: AotChallengeData[];+}+export function MostSolved({ mostSolved }: Props) {+ const variants: Variants = {+ offscreen: {+ opacity: 0,+ y: -100,+ },+ onscreen: (delay: number) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay,+ duration: 0.5,+ },+ }),+ };++ return (+ <div className="flex h-screen w-full justify-center gap-2 bg-gradient-to-l from-green-100 to-30% dark:from-green-950">+ <div className="flex flex-col items-center justify-center gap-4 pt-20">+ <div className="relative">+ <p className="mb-10 text-5xl font-bold tracking-tighter text-green-950 dark:text-green-50 sm:mx-[-130px] sm:text-8xl">+ MOST SOLVED+ </p>+ <Image+ src="/aot/sunglasses2.png"+ width={150}+ height={150}+ alt=""+ className="absolute hidden -scale-x-100 sm:-bottom-24 sm:-left-36 sm:block"+ />+ <Image+ src="/aot/sunglasses2.png"+ width={100}+ height={100}+ alt=""+ className="absolute -bottom-10 -left-14 -scale-x-100 sm:hidden"+ />+ </div>+ <div className="flex flex-col gap-10">+ {mostSolved.map((s, i) => {+ return (+ <Link key={s.slug} href={`/challenge/${s.slug}`} target="_blank">+ <motion.div+ initial="offscreen"+ variants={variants}+ whileInView="onscreen"+ viewport={{ once: false }}+ custom={0}+ className="flex items-center gap-4"+ >+ <div className="flex h-20 w-20 items-center justify-center rounded-full bg-green-500 text-3xl font-semibold text-white">+ {i + 1}+ </div>+ <div className="flex flex-col items-start justify-start gap-1 text-left">+ <p className="text-xl font-semibold">{s.name}</p>+ <p className="flex items-center gap-1 text-sm text-neutral-500">+ <CheckCheck className="h-4 w-4" />+ {s.userCount} Successful Submissions+ </p>+ </div>+ </motion.div>+ </Link>+ );+ })}+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/app/[locale]/aot-2023/wrapped/_components/user-summary.tsx b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/user-summary.tsxnew file mode 100644index 00000000..c7773759--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/wrapped/_components/user-summary.tsx@@ -0,0 +1,109 @@+import { prisma } from '@repo/db';+import Image from 'next/image';+import { AOT_CHALLENGES } from '~/app/[locale]/challenge/[slug]/aot-slugs';+import { MotionDiv } from '~/components/motion';++export async function UserSummary() {+ const totalNumberOfAccountsDuringAot = await prisma.user.count({+ where: {+ createdAt: {+ gte: new Date('2023-12-01T00:00:00.000Z'),+ lte: new Date('2023-12-25T23:59:59.999Z'),+ },+ },+ });+ const totalAotSubmissions = await prisma.submission.count({+ where: {+ challenge: {+ slug: {+ in: AOT_CHALLENGES,+ },+ },+ },+ });+ const incorrectAotSubmissions = await prisma.submission.count({+ where: {+ challenge: {+ slug: {+ in: AOT_CHALLENGES,+ },+ },+ isSuccessful: false,+ },+ });+ const correctAotSubmissions = await prisma.submission.count({+ where: {+ challenge: {+ slug: {+ in: AOT_CHALLENGES,+ },+ },+ isSuccessful: true,+ },+ });++ return (+ <div className="h-screen w-full bg-red-800 text-white">+ <div className="flex h-full">+ <div className="hidden h-full w-full items-center justify-center border-r border-r-white/50 md:flex">+ <MotionDiv animate={{ y: [0, 10, 0] }} transition={{ repeat: Infinity, duration: 2 }}>+ <Image src="/aot/santa_flying.png" width={200} height={200} alt="" />+ </MotionDiv>+ </div>+ <div className="relative h-full w-full p-6">+ <div className="absolute left-6 top-6 text-4xl font-semibold tracking-tighter md:text-5xl">+ General Metrics+ </div>+ <div className="flex h-full flex-col gap-7 pt-36 md:justify-center md:pt-0">+ <Image+ src="/aot/santa_flying.png"+ width={100}+ height={100}+ alt=""+ className="md:hidden"+ />+ <div className="flex items-end gap-5">+ <div className="w-44 text-2xl font-bold md:text-6xl">+ {formatThousandsWithK(totalNumberOfAccountsDuringAot)}+ </div>+ <div className="text-xl md:text-2xl">Accounts Created</div>+ </div>+ <div className="flex items-end gap-5">+ <div className="w-44 text-2xl font-bold md:text-6xl">150K</div>+ <div className="text-xl md:text-2xl">AOT Page Visits</div>+ </div>+ <div className="flex items-end gap-5">+ <div className="w-44 text-2xl font-bold md:text-6xl">+ {formatThousandsWithK(totalAotSubmissions)}+ </div>+ <div className="text-xl md:text-2xl">Total Submissions</div>+ </div>+ <div className="flex items-end gap-5">+ <div className="w-44 text-2xl font-bold md:text-6xl">+ {formatThousandsWithK(incorrectAotSubmissions)}+ </div>+ <div className="text-xl md:text-2xl">Total Incorrect Submissions</div>+ </div>+ <div className="flex items-end gap-5">+ <div className="w-44 text-2xl font-bold md:text-6xl">+ {formatThousandsWithK(correctAotSubmissions)}+ </div>+ <div className="text-xl md:text-2xl">Total Correct Submissions</div>+ </div>+ </div>+ </div>+ </div>+ </div>+ );+}++const formatter = Intl.NumberFormat('en-US', {+ notation: 'compact',+ maximumFractionDigits: 1,+});++function formatThousandsWithK(num: number) {+ if (num < 1000) return num;++ return formatter.format(num);+}diff --git a/apps/web/src/app/[locale]/aot-2023/wrapped/page.tsx b/apps/web/src/app/[locale]/aot-2023/wrapped/page.tsxnew file mode 100644index 00000000..fcaada4c--- /dev/null+++ b/apps/web/src/app/[locale]/aot-2023/wrapped/page.tsx@@ -0,0 +1,81 @@+import { prisma } from '@repo/db';+import { setStaticParamsLocale } from 'next-international/server';+import { getStaticParams } from '~/locales/server';+import { AOT_CHALLENGES } from '../../challenge/[slug]/aot-slugs';+import { Hero } from './_components/hero';+import { MostSolved } from './_components/most-solved';+import { UserSummary } from './_components/user-summary';+import { Prisma } from '@repo/db/types';+import { LeastSolved } from './_components/least-solved';+import { getAllFlags } from '~/utils/feature-flags';+import { daysAfterDecemberFirst } from '~/utils/aot';+import { notFound } from 'next/navigation';++export function generateStaticParams() {+ return getStaticParams();+}+export interface AotChallengeData {+ challengeId: string;+ name: string;+ slug: string;+ userCount: number;+}+export default async function Index({ params: { locale } }: { params: { locale: string } }) {+ setStaticParamsLocale(locale);++ const { enableHolidayEvent } = await getAllFlags();+ if (enableHolidayEvent) {+ const daysPassed = daysAfterDecemberFirst();++ if (daysPassed + 1 < 25) {+ return notFound();+ }+ }++ const topThreeSolved = await prisma.$queryRaw<AotChallengeData[]>`+ select name, slug, challengeId, count(T.userId) as userCount+ from(+ select DISTINCT challengeId, userId+ from Submission+ where isSuccessful = true+ ) as T+ LEFT JOIN Challenge ON Challenge.id = T.challengeId+ WHERE slug in (${Prisma.join(AOT_CHALLENGES.slice(0, -1))})+ group by challengeId, slug+ order by userCount desc+ limit 3+ `;++ const bottomThreeSolved = await prisma.$queryRaw<AotChallengeData[]>`+ select name, slug, challengeId, count(T.userId) as userCount+ from(+ select DISTINCT challengeId, userId+ from Submission+ where isSuccessful = true+ ) as T+ LEFT JOIN Challenge ON Challenge.id = T.challengeId+ WHERE slug in (${Prisma.join(AOT_CHALLENGES.slice(0, -1))})+ group by challengeId, slug+ order by userCount asc+ limit 3+ `;++ const top3 = topThreeSolved.map((r) => ({+ ...r,+ userCount: Number(r.userCount),+ }));++ const bottom3 = bottomThreeSolved.map((r) => ({+ ...r,+ userCount: Number(r.userCount),+ }));++ return (+ <div>+ <Hero />+ <UserSummary />+ <MostSolved mostSolved={top3} />+ <LeastSolved leastSolved={bottom3} />+ </div>+ );+}diff --git a/apps/web/src/components/motion.tsx b/apps/web/src/components/motion.tsxnew file mode 100644index 00000000..224a656b--- /dev/null+++ b/apps/web/src/components/motion.tsx@@ -0,0 +1,5 @@+'use client';++import { motion } from 'framer-motion';++export const MotionDiv = motion.div;diff --git a/packages/ui/src/icons.ts b/packages/ui/src/icons.tsindex 227943d0..026ca866 100644--- a/packages/ui/src/icons.ts+++ b/packages/ui/src/icons.ts@@ -10,6 +10,7 @@ export {Brush,Calendar,Check,+ CheckCheck,CheckCircle,CheckCircle2,ChevronDown,diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e7fd9be1..a1771141 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -742,7 +742,7 @@ importers:dependencies:'@next/eslint-plugin-next':specifier: canary- version: 14.0.4-canary.42+ version: 13.4.20-canary.0'@repo/tsconfig':specifier: workspace:*version: link:../config-typescript@@ -754,7 +754,7 @@ importers:version: 5.62.0([email protected])([email protected])'@vercel/style-guide':specifier: ^4.0.2eslint:specifier: ^8.45.0version: 8.45.0@@ -2501,8 +2501,8 @@ packages:glob: 7.1.7dev: true- /@next/[email protected]:- resolution: {integrity: sha512-+Ra4gKjzmdpe5QraVqoMxLLq9eomi3m23NJnmKyRp/1AeFJyCUysHv98tuko8An7pYEhp9jKnK3u9YhZN7K1mg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-vFC1meiw/awh2xJZMWaoECsfZbgkt2fF3HIg8f2fSM/w41Z86L1SS7SjKmpbbD87yq3tiqgqHmFv0JCych4g4g==}dependencies:glob: 7.1.7dev: false@@ -5244,7 +5244,7 @@ packages:yoga-wasm-web: 0.3.0dev: false- /@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected]):+ /@vercel/[email protected](@next/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-FroL+oOePzhw7n/I+f7zr4WNroGHT/+2TlW6WH9+CVSjMNsEyu7Qstj2mI5gWIBjT1Y2ZImKPppCzI2cIYmNZw==}engines: {node: '>=16'}peerDependencies:@@ -5264,7 +5264,7 @@ packages:dependencies:'@babel/core': 7.22.10'@babel/eslint-parser': 7.22.10(@babel/[email protected])([email protected])- '@next/eslint-plugin-next': 14.0.4-canary.42+ '@next/eslint-plugin-next': 13.4.20-canary.0'@rushstack/eslint-patch': 1.3.2'@typescript-eslint/eslint-plugin': 5.59.1(@typescript-eslint/[email protected])([email protected])([email protected])'@typescript-eslint/parser': 5.62.0([email protected])([email protected])