Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-teufel authored Apr 25, 2024
1 parent 9625b65 commit 43e1de6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
45 changes: 23 additions & 22 deletions src/components/widgets/Hero3.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const {
image = await Astro.slots.render('image'),
} = Astro.props;
---

<section class="relative md:-mt-[76px] not-prose" {...id ? { id } : {}}>
<div class="absolute inset-0 pointer-events-none" aria-hidden="true"></div>
<div class="relative max-w-7xl mx-auto px-4 sm:px-6">
Expand All @@ -38,6 +37,29 @@ const {
/>
)
}
<!--
<div>
{
image && (
<div class="relative m-auto max-w-5xl">
{typeof image === 'string' ? (
<Fragment set:html={image} />
) : (
<Image
class="mx-auto rounded-md w-full"
widths={[400, 768, 1024, 2040]}
sizes="(max-width: 767px) 400px, (max-width: 1023px) 768px, (max-width: 2039px) 1024px, 2040px"
loading="eager"
width={1024}
height={576}
{...image}
/>
)}
</div>
)
}
</div>
-->
{
title && (
<h1
Expand Down Expand Up @@ -66,27 +88,6 @@ const {
</div>
{content && <Fragment set:html={content} />}
</div>
<div>
{
image && (
<div class="relative m-auto max-w-5xl">
{typeof image === 'string' ? (
<Fragment set:html={image} />
) : (
<Image
class="mx-auto rounded-md w-full"
widths={[400, 768, 1024, 2040]}
sizes="(max-width: 767px) 400px, (max-width: 1023px) 768px, (max-width: 2039px) 1024px, 2040px"
loading="eager"
width={1024}
height={576}
{...image}
/>
)}
</div>
)
}
</div>
</div>
</div>
</section>
10 changes: 2 additions & 8 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ const metadata = {
title: 'Scope Dataset',
ignoreTitleTemplate: true,
};
if (isDark) {
logo_path = '~/assets/images/scope_dark_small.png';
} else {
logo_path = '~/assets/images/scope_bright_small.png';
}
---

<Layout metadata={metadata}>
Expand All @@ -37,10 +30,11 @@ if (isDark) {
</Hero3>-->

<!-- Hero Widget ******************* -->
<!--
<Hero3
image={{ src: logo_path, alt: 'scope-logo', width:'1284', height:'295'}}
</Hero3>

-->
<Hero3

actions={[
Expand Down

0 comments on commit 43e1de6

Please sign in to comment.