<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:v="FluidTYPO3\Vhs\ViewHelpers" xmlns:sms="http://typo3.org/ns/Sitegeist/SmsResponsiveImages/ViewHelpers"  data-namespace-typo3-fluid="true">

<v:resource.record.fal table="pages" field="media" uid="{data.uid}" as="resources">
    <f:if condition="{resources}">
        <sms:image class="object-fit-cover"
                   width="1920"
                   src="{resources.0.uid}"
                   treatIdAsReference="true"
                   cropVariant="bgImg"
                   srcset="400w, 800w, 1024w, 1600w, 2048w, 2560w, 3840w, 5120w"
        />
    </f:if>
</v:resource.record.fal>
