diff options
| author | Bobby <[email protected]> | 2025-05-13 08:21:33 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-05-13 08:21:33 +0530 |
| commit | d4014e851029116ea730121a015bcc53690ab2d7 (patch) | |
| tree | 84cdab9e6294c623c2dd415ba154edf2589ecd77 /src/components | |
| parent | 6ad5e8c8ecb41d8fb6fb19dd501a7e68a47b1ba1 (diff) | |
| download | pagoda-d4014e851029116ea730121a015bcc53690ab2d7.tar.xz pagoda-d4014e851029116ea730121a015bcc53690ab2d7.zip | |
site list in districts; page implementation in districts
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/DistrictSiteComponent.astro | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/components/DistrictSiteComponent.astro b/src/components/DistrictSiteComponent.astro new file mode 100644 index 0000000..0da7bdb --- /dev/null +++ b/src/components/DistrictSiteComponent.astro @@ -0,0 +1,30 @@ +--- +const { site } = Astro.props; +--- +<div class="flex flex-row justify-between px-2 gap-2 my-4"> + <div class="w-2/3"> + <div class="flex flex-row gap-2 items-center justify-between"> + <h2 class="text-xl saira"> + <a href={site.url} target="_blank" rel="noopener">{site.name}</a> + </h2> + <span class="text-gray-500 text-xs">Added: {new Date(site.added).toLocaleDateString()}</span> + </div> + <p class="text-xs">{site.description}</p> + <div class="text-xs"> + Owner: + <a class="link" href={`https://neocities.org/site/${site.owner}`} target="_blank" rel="noopener"> + @{site.owner} + </a> + </div> + {site.tags && ( + <div class="text-xs mt-4"> + {site.tags.map(tag => ( + <span class="bg-pagodapurple text-white rounded px-2 py-1 mr-1">{tag}</span> + ))} + </div> + )} + </div> + <div class="w-1/3 flex justify-end"> + <img src={site.screenshotUrl} alt={site.name} class="w-5/6 h-auto" /> + </div> +</div>
\ No newline at end of file |
