Skip to content

Commit

Permalink
Merge pull request #283 from LaurierHawkHacks/fix/279/cumulative-layo…
Browse files Browse the repository at this point in the history
…ut-shift-issue

Fix: no more / rare content shift
  • Loading branch information
aidantrabs authored Apr 13, 2024
2 parents 986f9c8 + 36754f0 commit bcad563
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/components/sections/HeroStats.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,15 @@ const HeroStatSection: React.FC = () => {
src={HeroAboutDesktop}
alt="Hawkhacks stats"
className="hidden w-full sm:block"
width="1920"
height="7149"
/>
<img
src={HeroAboutMobile}
alt="Hawkhacks stats"
className="block w-full sm:hidden"
width="1920"
height="8127"
/>
<div className="mt-16 px-4 sm:ml-16 sm:mt-16 sm:px-0 lg:ml-20 lg:mt-24 xl:ml-24 xl:mt-32 2xl:mt-10">
<img
Expand Down
10 changes: 7 additions & 3 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ body {
background-color: #fdddb7;
}

img {
aspect-ratio: attr(width) / attr(height);
}

@layer base {
h1 {
@apply text-8xl font-extrabold 2xl:text-8.5xl;
Expand Down Expand Up @@ -87,9 +91,9 @@ header::before {

@keyframes spin {
from {
transform: rotate(0deg);
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
transform: rotate(360deg);
}
}
}

0 comments on commit bcad563

Please sign in to comment.