Skip to content

Commit

Permalink
Fixed background image moving on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Taxato committed Apr 25, 2024
1 parent 344de9e commit facee4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/components/Background.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export default function Background() {
return (
<img
src="imgs/fire.jpg"
className="fixed bottom-[40%] left-8 -z-50 scale-[2] opacity-[35%] md:bottom-[10%] lg:-bottom-[20%] lg:top-auto lg:scale-100 xl:-bottom-[50%]"
/>
<div className="fixed left-0 top-0 -z-50 flex h-screen w-screen items-center justify-center overflow-hidden">
<img
src="imgs/fire.jpg"
className="min-h-full min-w-full object-cover opacity-35"
/>
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/IconRow.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function IconRow({ children }) {
return (
<div className="flex justify-center gap-2 text-pink-300 sm:gap-5">
<div className="flex flex-wrap justify-center gap-2 text-pink-300 sm:gap-5">
{children}
</div>
);
Expand Down

0 comments on commit facee4e

Please sign in to comment.