Skip to content

Commit

Permalink
removed body overflow-x
Browse files Browse the repository at this point in the history
  • Loading branch information
zeucapua committed Feb 5, 2024
1 parent d5874ac commit 4285327
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 33 deletions.
2 changes: 1 addition & 1 deletion components/common/layout/SectionWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const SectionWrapper: FC<SectionWrapperProps> = ({
paddingBottom: isLargeTablet ? `${pb}px` : `${pbs}px`,
paddingTop: isLargeTablet ? `${pt}px` : `${pts}px`,
}}
className={`w-full max-w-[1256px] mx-auto px-${px} flex justify-${justify} flex-${direction} items-center`}
className={`w-full max-w-[1256px] mx-auto px-${px} h-fit flex justify-${justify} flex-${direction} items-center`}
>
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/sections/changelog/Background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface BackgroundProps {

const Background: FC<BackgroundProps> = ({ children }) => {
return (
<div className="bg-darkBG text-white h-fit overflow-hidden relative">
<div className="bg-darkBG text-white h-fit relative">
<div className="absolute hidden largeTablet:block largeTablet:top-[0rem] largeTablet:right-0">
<Image alt="Doodles" src={StrokeR4} />
</div>
Expand Down
55 changes: 29 additions & 26 deletions components/sections/changelog/Changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,35 @@ const Changelog: FC<ChangelogProps> = ({
const lineCount = changelogContent.split("\n").length

return (
<div className="flex gap-x-10">
<div className={`hidden tablet:flex relative pb-28 flex-1 border-textPrimary border-opacity-50 pl-10 max-w-md flex-col ${index+1 === count ? "" : "border-l-2"}`}>
<span>
<IoMdGitCommit className="absolute -left-5 bg-darkBG text-4xl" />
</span>
<Typography alignLarge="left" variant="title3">
<a href={`/changelog/${slug?.current}`} className="hover:text-brandOrange hover:underline hover:decoration-brandOrange">
{title}
</a>
</Typography>
<span className="py-4">
<Typography alignLarge="left" variant="body4">
{moment(date).format("DD MMM YYYY")}
<article className="flex gap-x-10 h-full relative">
<div className={`relative pb-28 border-textPrimary border-opacity-50 ${index+1 === count ? "" : "border-l-2"}`}>
<section className={`hidden self-start sticky top-8 tablet:flex flex-1 pl-10 max-w-md flex-col`}>
<span>
<IoMdGitCommit className="absolute -left-5 bg-darkBG text-4xl" />
</span>
<Typography alignLarge="left" variant="title3">
<a href={`/changelog/${slug?.current}`} className="hover:text-brandOrange hover:underline hover:decoration-brandOrange">
{title}
</a>
</Typography>
</span>
<div className="flex gap-3">
{topics && topics.map((category, index) => (
<GradientBorderWrapper key={index} style={{borderRadius: "16px"}}>
<div className="bg-darkBG rounded-2xl text-sm px-2 py-1">
{category}
</div>
</GradientBorderWrapper>
))}
</div>
<span className="py-4">
<Typography alignLarge="left" variant="body4">
{moment(date).format("DD MMM YYYY")}
</Typography>
</span>
<div className="flex gap-3">
{topics && topics.map((category, index) => (
<GradientBorderWrapper key={index} style={{borderRadius: "16px"}}>
<div className="bg-darkBG rounded-2xl text-sm px-2 py-1">
{category}
</div>
</GradientBorderWrapper>
))}
</div>
</section>
</div>
<div className={`flex-1 relative pb-10 tablet:border-0 tablet:pl-0 pl-6 ${index+1 === count ? "" : "border-l-2"}`}>

<section className={`flex-1 relative pb-10 tablet:border-0 tablet:pl-0 pl-6 ${index+1 === count ? "" : "border-l-2"}`}>
<div className="tablet:hidden relative flex-col flex gap-y-2 pb-4">
<span className=" -left-6 -top-4 z-50 absolute">
<IoMdGitCommit className="absolute -left-4 top-4 bg-darkBG text-3xl" />
Expand Down Expand Up @@ -107,8 +110,8 @@ const Changelog: FC<ChangelogProps> = ({
{isExpanded ? <MdOutlineExpandMore className="transform rotate-180" /> : <MdOutlineExpandMore />}
</button>
)}
</div>
</div>
</section>
</article>
)
}

Expand Down
5 changes: 0 additions & 5 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ html {
}

body {
overflow-x: hidden;
color: '#FFF9ED' !important;
}

body > div {
overflow-x: hidden;
}

a {
color: inherit;
text-decoration: none;
Expand Down

0 comments on commit 4285327

Please sign in to comment.