Skip to content

Commit aa5d674

Browse files
authored
Merge pull request #221 from codeableorg:aws-s3
fix: refactor background image styling in Home component for improved readability
2 parents c203665 + c2728da commit aa5d674

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/routes/home/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ export default function Home({ loaderData }: Route.ComponentProps) {
5858
return (
5959
<>
6060
<section
61-
className={`text-center bg-cover bg-no-repeat bg-center text-white bg-[linear-gradient(0deg,rgba(0,0,0,0.5)_0%,rgba(0,0,0,0.5)_100%),url('${heroSrc}')]`}
61+
className="text-center bg-cover bg-no-repeat bg-center text-white"
62+
style={{
63+
backgroundImage: `linear-gradient(0deg,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.5) 100%),url('${heroSrc}')`,
64+
}}
6265
>
6366
<Container className="pt-32 pb-32 max-w-3xl">
6467
<h2 className="text-4xl leading-10 font-bold mb-4">

0 commit comments

Comments
 (0)