Refactor gift registry UI to use InfoCard component
Some checks failed
Build and Push Docker Images / changes (push) Successful in 4s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 49s

Simplified the gift registry section by replacing custom JSX with the reusable InfoCard component. This improves code maintainability and consistency in the UI while retaining the existing styles and functionality. Updated InfoCard styling to ensure compatibility with the new use case.
This commit is contained in:
2025-03-14 15:54:53 +01:00
parent 03cb95b4b3
commit 08f5661c99

View File

@@ -105,7 +105,22 @@ const InvitationPage = () => {
};
return (
<div className="min-h-screen pb-10" style={pageStyle}>
<div className="min-h-screen relative overflow-hidden" style={pageStyle}>
<div
className="absolute inset-0 bg-no-repeat bg-[top_right] bg-cover bg-fixed opacity-15"
style={{
backgroundImage: `url(${getAssetUrl("background-h")})`,
}}
>
<style jsx>{`
@media (min-width: 768px) {
div {
background-image: url(${getAssetUrl("background-w")});
}
}
`}</style>
</div>
<div className="mx-auto max-w-4xl px-4 py-6">
{/* Wooden Sign Title */}
<div