Skip to content

Commit

Permalink
update scroll behavior and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 11, 2024
1 parent 9ab2c0f commit d1095dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import TitleAccent from './TitleAccent.astro';
display: flex;
flex-direction: column;
align-items: center;
padding: 0 15% 10svh 15%;
margin: auto 0;
width: 862px;
margin: auto;
text-align: center;
gap: 20px;

Expand Down
2 changes: 2 additions & 0 deletions src/styles/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ html {
font-family: fonts.$sans;
background: colors.$background;
color: colors.$text;
scroll-behavior: smooth;
scroll-padding-top: 20svh;
}

* {
Expand Down

0 comments on commit d1095dd

Please sign in to comment.