fix build errors
This commit is contained in:
@@ -45,7 +45,7 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
|
||||
<!-- Hero Section -->
|
||||
<div class="bg-[#2b2b56] text-white py-12 pb-24 md:py-8 md:pb-16 relative overflow-hidden min-h-[500px] md:min-h-[400px]">
|
||||
<div class="max-w-[--max-width-container] mx-auto px-[--spacing-md] md:px-[--spacing-sm]">
|
||||
<div class="relative min-96 md:min-h-80">
|
||||
<div class="relative min-h-96 md:min-h-80">
|
||||
<img src="/logo.svg" alt="Theater Ziefen Logo" class="absolute h-full right-2 md:right-10 opacity-95 z-[5] md:opacity-70" />
|
||||
<div class="relative z-8 pt-16 pl-12 md:pt-24 md:pl-16 text-left md:max-w-full">
|
||||
<h1 class="text-8xl md:text-5xl font-normal mb-6 md:mb-4 leading-[1.3] [text-shadow:2px_2px_4px_rgba(0,0,0,0.3)]">
|
||||
@@ -86,8 +86,8 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
|
||||
{content.team?.organizations && content.team.organizations.length > 0 && (
|
||||
<div class="grid grid-cols-1 md:grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-12 mt-16">
|
||||
{content.team.organizations.map((org: any) => {
|
||||
const CardContent = () => (
|
||||
<>
|
||||
const cardContent = (
|
||||
<Fragment>
|
||||
{org.logo && (
|
||||
<div class="mb-4 flex justify-center">
|
||||
<img src={org.logo} alt={`${org.name} logo`} class="h-20 w-auto object-contain" />
|
||||
@@ -96,7 +96,7 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
|
||||
<h3 class="text-3xl mb-2 text-white">{org.name}</h3>
|
||||
<p class="org-role-de m-0 opacity-90" data-lang="de">{org.role_de}</p>
|
||||
<p class="org-role-en m-0 opacity-90" data-lang="en">{org.role_en}</p>
|
||||
</>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
return org.url ? (
|
||||
@@ -106,11 +106,11 @@ function renderRichText(richText: any, lang: 'de' | 'en'): string {
|
||||
rel="noopener noreferrer"
|
||||
class="block bg-white/10 p-12 rounded-lg text-center transition-all duration-300 hover:-translate-y-1 hover:bg-white/15 no-underline text-white hover:shadow-lg"
|
||||
>
|
||||
<CardContent />
|
||||
{cardContent}
|
||||
</a>
|
||||
) : (
|
||||
<div class="bg-white/10 p-12 rounded-lg text-center transition-all duration-300 hover:-translate-y-1 hover:bg-white/15">
|
||||
<CardContent />
|
||||
{cardContent}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user