mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 03:50:02 -04:00
A little bit of structure re-organization
This commit is contained in:
parent
05051ea9f9
commit
a385089fe8
2 changed files with 2 additions and 3 deletions
|
@ -19,7 +19,7 @@ const assets = getAssets();
|
|||
{#if Object.keys(data).length > 0}
|
||||
<div class="flex flex-row gap-6 flex-wrap justify-center">
|
||||
{#each Object.entries(data) as [key, asset]}
|
||||
<a href={`/assets/${key}`}>
|
||||
<a href={`/catalog/package/${key}`}>
|
||||
<div class="bg-navbar-color w-64 rounded-3xl shadow-lg overflow-hidden transition-transform duration-300 hover:scale-105">
|
||||
<img src={`/images/${asset.image}`} alt={asset.title} class="w-full h-40 object-cover" />
|
||||
<div class="p-6 text-sm">
|
||||
|
|
|
@ -3,7 +3,6 @@ const { packageName } = Astro.params;
|
|||
import Layout from "@layouts/Layout.astro";
|
||||
const response = await fetch(new URL("/api/packages/" + packageName, Astro.url));
|
||||
const assetsJson = await response.json();
|
||||
import { Icon } from "astro-icon/components";
|
||||
---
|
||||
|
||||
<Layout title={`Package: ${packageName}`}>
|
||||
|
@ -19,7 +18,7 @@ import { Icon } from "astro-icon/components";
|
|||
{assetsJson.backgroundImage &&
|
||||
<div style={{backgroundImage: `url(/images/${assetsJson.backgroundImage})`}} class="w-[44rem] h-[25rem] bg-cover bg-center rounded-xl"/>
|
||||
}
|
||||
{!assetsJson.background_video && !assetsJson.backgroundImage && <img src={`/images/${assetsJson.image}`} alt={assetsJson .title} class="w-[44rem] h-[25rem] object-cover rounded-xl"/>}
|
||||
{!assetsJson.background_video && !assetsJson.backgroundImage && <img loading="lazy" src={`/images/${assetsJson.image}`} alt={assetsJson.title} class="w-[44rem] h-[25rem] object-cover rounded-xl"/>}
|
||||
<div class="flex flex-col ml-7 p-16">
|
||||
<p class="text-xl">{assetsJson.type}</p>
|
||||
<h1 class="text-4xl roboto font-semibold">{assetsJson.title}</h1>
|
Loading…
Add table
Add a link
Reference in a new issue