(repos) remove repos
This commit is contained in:
parent
defa2755d9
commit
e473edecdb
|
@ -10,10 +10,6 @@ const menu: MenuItem[] = [
|
|||
name: 'Posts',
|
||||
url: '/posts/',
|
||||
},
|
||||
{
|
||||
name: 'Repos',
|
||||
url: '/repos/',
|
||||
},
|
||||
{
|
||||
name: 'Slides',
|
||||
url: '/slides/',
|
||||
|
|
|
@ -30,14 +30,5 @@ export const collections = {
|
|||
})
|
||||
)
|
||||
})
|
||||
}),
|
||||
repos: defineCollection({
|
||||
type: "data",
|
||||
schema: z.object({
|
||||
type: z.string(),
|
||||
url: z.string(),
|
||||
description: z.string(),
|
||||
icons: z.array(z.string()),
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/kamoshi/plwordnet-rs",
|
||||
"description": "Native Rust library facilitating the integration of plWordNet 4.2 lexical resources.",
|
||||
"icons": ["rust"]
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
import Base from "@layouts/Base.astro";
|
||||
import { getCollection } from 'astro:content';
|
||||
|
||||
|
||||
const repos = await getCollection('repos');
|
||||
---
|
||||
|
||||
<Base>
|
||||
<main class="l-repos">
|
||||
<article class="l-repos__article">
|
||||
<h2>Maintained repositories</h2>
|
||||
<section class="repos">
|
||||
{repos.map(repo => (
|
||||
<a href={repo.data.url} class="repo-item">
|
||||
<header class="repo-item__header">
|
||||
<img class="repo-item__icon" src="/static/svg/github.svg" alt=""/>
|
||||
<h3 class="repo-item__heading">{repo.id}</h3>
|
||||
</header>
|
||||
<div>{repo.data.description}</div>
|
||||
<div class="repo-item__tech">
|
||||
{repo.data.icons.map(icon => (
|
||||
<img class="repo-item__icon" src={`/static/svg/tech/${icon}.svg`}/>
|
||||
))}
|
||||
</div>
|
||||
</a>
|
||||
))}
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
</Base>
|
|
@ -1,51 +0,0 @@
|
|||
.l-repos {
|
||||
padding: 1em;
|
||||
|
||||
&__article {
|
||||
margin: 1em auto 1em auto;
|
||||
max-width: 60em;
|
||||
}
|
||||
}
|
||||
|
||||
.repos {
|
||||
display: flex;
|
||||
color: unset;
|
||||
}
|
||||
|
||||
.repo-item {
|
||||
max-width: 16em;
|
||||
padding: 0.5em;
|
||||
background: white;
|
||||
border-radius: 0.5em;
|
||||
color: unset;
|
||||
text-decoration: unset;
|
||||
box-shadow: var(--shadow-l);
|
||||
transition: box-shadow ease-in-out 0.1s;
|
||||
|
||||
&__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5em;
|
||||
padding-bottom: 0.25em;
|
||||
margin-bottom: 0.25em;
|
||||
border-bottom: 1px solid lightgray;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
max-height: 1.6em;
|
||||
}
|
||||
|
||||
&__heading {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
&__tech {
|
||||
display: flex;
|
||||
gap: 0.25em;
|
||||
}
|
||||
|
||||
&:focus-within,
|
||||
&:hover {
|
||||
box-shadow: var(--shadow-m);
|
||||
}
|
||||
}
|
|
@ -38,6 +38,5 @@
|
|||
@use 'layouts/pages';
|
||||
@use 'layouts/article';
|
||||
@use 'layouts/songs';
|
||||
@use 'layouts/repos';
|
||||
@use 'layouts/wiki';
|
||||
@use 'layouts/page-list';
|
Loading…
Reference in a new issue