Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_API_URL=
NEXT_PUBLIC_ENVIRONMENT=
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {}

export default nextConfig;
export default nextConfig
14 changes: 11 additions & 3 deletions src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ import HeroCarousel from './HeroCarousel'
import Container from '@/components/Container'
import EmergencyForm from '@/components/EmergencyForm'

export default function HeroSection() {
const HeroSection: React.FC = () => {
const showEmergencyForm = process.env.NEXT_PUBLIC_ENVIRONMENT === 'test'

return (
<section className="w-full bg-green py-5 lg:px-5">
<Container className="grid grid-cols-1 lg:grid-cols-2 gap-5">
<Container
className={`grid gap-5 grid-cols-1 ${
showEmergencyForm ? 'lg:grid-cols-2' : 'lg:grid-cols-1'
}`}
>
<HeroCarousel />
<EmergencyForm />
{showEmergencyForm && <EmergencyForm />}
</Container>
</section>
)
}

export default HeroSection
Loading