refactor(ui): rewrite Heading component to act as central typography system, fix line-heights, and apply to MDX pages
Former-commit-id: dc62485b60679b810b5f74bfb5a22915b7a62314
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="b6f49d6e-43ce-fd92-68d0-22ec2e6c4a30")}catch(e){}}();
|
||||
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,445774,370476,575003,982016,105050,801206,587778,9797,e=>{"use strict";var t=e.i(111023);e.i(676525);var n=e.i(452797);function r({className:e,children:r,...l}){return(0,n.jsx)("section",{className:(0,t.cn)("py-16 md:py-28 lg:py-36 overflow-hidden content-visibility-auto",e),...l,children:r})}function l({className:e,children:r,...l}){return(0,n.jsx)("div",{className:(0,t.cn)("container mx-auto px-4 md:px-12 lg:px-16 max-w-7xl",e),...l,children:r})}function a({level:e=2,children:r,className:l,subtitle:a,align:i="left"}){let s=`h${e}`;return(0,n.jsxs)("div",{className:(0,t.cn)("mb-6 md:mb-12 text-primary",{left:"text-left",center:"text-center mx-auto",right:"text-right"}[i],l),children:[a&&(0,n.jsx)("span",{className:"inline-block text-accent font-bold tracking-widest uppercase text-xs md:text-sm mb-3 md:mb-4 animate-fade-in",children:a}),(0,n.jsx)(s,{className:(0,t.cn)({1:"text-2xl md:text-4xl lg:text-5xl font-bold leading-[1.1] tracking-tight",2:"text-xl md:text-3xl lg:text-4xl font-bold leading-[1.2] tracking-tight",3:"text-lg md:text-2xl lg:text-3xl font-bold leading-[1.3] tracking-tight",4:"text-lg md:text-xl lg:text-2xl font-bold leading-[1.4]",5:"text-base md:text-lg font-bold leading-[1.5]",6:"text-base md:text-lg font-semibold leading-[1.6]"}[e]),children:r})]})}function i({className:e,children:r,tag:l="div",...a}){return(0,n.jsx)(l,{className:(0,t.cn)("premium-card overflow-hidden",e),...a,children:r})}function s({className:e,...r}){return(0,n.jsx)("input",{className:(0,t.cn)("w-full px-4 md:px-6 py-2.5 md:py-4 bg-neutral-light/50 border border-neutral-dark/10 rounded-xl md:rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent focus:bg-white transition-all duration-300 placeholder:text-neutral-dark/40 text-sm md:text-lg",e),...r})}function o({className:e,...r}){return(0,n.jsx)("textarea",{className:(0,t.cn)("w-full px-4 md:px-6 py-2.5 md:py-4 bg-neutral-light/50 border border-neutral-dark/10 rounded-xl md:rounded-2xl focus:outline-none focus:ring-2 focus:ring-accent/20 focus:border-accent focus:bg-white transition-all duration-300 placeholder:text-neutral-dark/40 text-sm md:text-lg resize-none",e),...r})}function c({className:e,...r}){return(0,n.jsx)("label",{className:(0,t.cn)("text-[10px] md:text-xs font-extrabold text-primary uppercase tracking-widest",e),...r})}e.s(["Section",()=>r],370476),e.s(["Container",()=>l],575003),e.s(["Heading",()=>a],982016),e.s(["Card",()=>i],105050),e.s(["Input",()=>s],801206),e.s(["Textarea",()=>o],587778),e.s(["Label",()=>c],9797),e.s([],445774)},759095,e=>{"use strict";var t=e.i(452797),n=e.i(907358);e.i(445774);var r=e.i(111023);function l({children:e,className:l,threshold:a=.1,delay:i=0}){let[s,o]=(0,n.useState)(!1),c=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=new IntersectionObserver(([t])=>{t.isIntersecting&&(o(!0),e.unobserve(t.target))},{threshold:a}),t=c.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[a]),(0,t.jsx)("div",{ref:c,className:(0,r.cn)("reveal-on-scroll",s&&"is-visible",l),style:{transitionDelay:`${i}ms`},children:e})}e.s(["default",()=>l])},783488,e=>{"use strict";var t=e.i(907358),n=e.i(976819);function r({currentPage:e,totalPages:r,locale:l}){let a=(0,n.useRouter)();return(0,t.useEffect)(()=>{let t=t=>{document.activeElement?.tagName!=="INPUT"&&document.activeElement?.tagName!=="TEXTAREA"&&document.activeElement?.tagName!=="SELECT"&&("ArrowLeft"===t.key&&e>1?a.push(`/${l}/blog?page=${e-1}`):"ArrowRight"===t.key&&e<r&&a.push(`/${l}/blog?page=${e+1}`))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[e,r,l,a]),null}e.s(["BlogPaginationKeyboardObserver",()=>r])}]);
|
||||
|
||||
//# debugId=b6f49d6e-43ce-fd92-68d0-22ec2e6c4a30
|
||||
File diff suppressed because one or more lines are too long
4
.next/static/chunks/a551d00bdf29b7b5.js
Normal file
4
.next/static/chunks/a551d00bdf29b7b5.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
.next/static/chunks/bead93b8f9ff3f6c.css
Normal file
1
.next/static/chunks/bead93b8f9ff3f6c.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user