Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Aug 16, 2024
1 parent 570329f commit bdc004e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"editor.defaultFormatter": "biomejs.biome"
},
"editor.codeActionsOnSave": {
"quickfix.biome": true
"quickfix.biome": "explicit"
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/common/HeadingSection/HeadingSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function HeadingSection({
title,
description,
socials,
offset,
}: InferProps<typeof HeadingSection.propTypes>) {
const getIcons = useMemo(
() =>
Expand All @@ -28,6 +29,7 @@ function HeadingSection({
<div className={cx(s.root, className)}>
<h2 className={s.title}>{title}</h2>
{description && <p className={cx(s.description, descriptionClassName)}>{description}</p>}
{offset && <div style={{ height: offset }} />}
{socials && <div className={cx(s.icons, iconsClassName)}>{getIcons}</div>}
</div>
)
Expand All @@ -40,6 +42,7 @@ HeadingSection.propTypes = {
title: string.isRequired,
description: string,
socials: oneOf(['community', 'corporate']),
offset: string,
}

export default HeadingSection
8 changes: 4 additions & 4 deletions site/src/components/pages/About/Hero/Hero.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

p {
margin-top: size($spacing24 * 2 + $spacing48 + 5);
width: size(158);
width: size(300);
}
}
}
Expand Down Expand Up @@ -117,7 +117,7 @@
}
.right {
display: grid;
margin-top: size(297);
margin-top: size(457);
grid-template-columns: size(275) size(259);

@include mobile {
Expand All @@ -132,7 +132,7 @@
display: flex;
align-items: flex-start;
height: 100%;
background-color: $gray900;
background-color: "transparent";

&:after {
content: '';
Expand All @@ -150,7 +150,7 @@
}

.rect {
margin-top: size(295);
margin-top: size(200);

@include mobile {
margin-top: 0;
Expand Down
7 changes: 2 additions & 5 deletions site/src/components/pages/About/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Hero = ({ className, data: { title, description } }: HeroProps) => {
<HeadingSection className={s.heading} title={title} description={isMobile ? description : null} />
<div className={s.heroDescription}>
<p>{description}</p>
<div style={{ height: '100px' }}></div>
<div style={{ height: '50px' }}></div>
</div>
<div className={s.box}>
<WhiteRectangle className={s.line} />
Expand All @@ -42,10 +42,7 @@ const Hero = ({ className, data: { title, description } }: HeroProps) => {
</Column>
{!isMobile && (
<Column type="right" className={s.right}>
<div className={s.rectWrapper}>
<WhiteRectangle />
</div>
<WhiteRectangle className={s.rect} />
{null}
</Column>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@

.heroDescription p {
@include paragraph;
max-width: size(200);
max-width: size(400);
background-color: $gray900;
margin-bottom: size($spacing32);

@include mobile {
max-width: 50%;
max-width: 100%;
margin-bottom: size(0);
}
}

.right {
position: relative;
margin-top: size(240);
margin-top: size(0);
background-color: $gray900;

&:after {
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/pages/ZkSharding/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Hero = ({ className, data: { title, description, list } }: HeroProps) => {
<div className={s.rightFooter}>
<div className={s.footerLeftBox}>
<div className={s.buttonWrapper}>
<WebButton className={s.link} href="https://nil.foundation/blog/post/nil_zkSharding">
<WebButton className={s.link} href="https://docs.nil.foundation">
Learn more
</WebButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/pages/ZkSharding/More/More.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Props = {
data: typeof zkShardingPageData.more
}

const More = ({ data: { title, description, contentFooter, footer }, className }: Props) => {
const More = ({ data: { title, description,contentFooter, footer }, className }: Props) => {
const { isMobile } = useViewport()

return (
Expand All @@ -28,7 +28,7 @@ const More = ({ data: { title, description, contentFooter, footer }, className }
className={s.heading}
descriptionClassName={s.description}
title={title}
description={description}
offset={isMobile ? '20px' : '120px'}
/>
{!isMobile && <WhiteRectangle />}
</Column>
Expand Down

0 comments on commit bdc004e

Please sign in to comment.