fix: tag-ak ongi jartzen ditu
This commit is contained in:
1 parent
8ac7674e7a
commit
24b1b5b2ec
5 files changed
+30
-23
No files matched your search
@@ -1,14 +1,13 @@
|
|||||||
---
|
---
|
||||||
interface Props {
|
interface Props {
|
||||||
tags: string[];
|
tags: string[];
|
||||||
all?: boolean;
|
centered?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { tags, all } = Astro.props;
|
const { tags, centered } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
{all && <h3 class="tag-title">Ikusi postak etiketaren arabera</h3>}
|
<div class={`${centered ? "centered" : ""}`}>
|
||||||
<div class="tags">
|
|
||||||
{
|
{
|
||||||
tags &&
|
tags &&
|
||||||
tags.map((tag) => (
|
tags.map((tag) => (
|
||||||
@@ -21,3 +20,26 @@ const { tags, all } = Astro.props;
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
div {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.centered {
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
display: inline-block;
|
||||||
|
color: var(--black);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
+1
-1
@@ -22,7 +22,7 @@ const tags = getTags(posts);
|
|||||||
<main>
|
<main>
|
||||||
404: Ez da orria aurkitu
|
404: Ez da orria aurkitu
|
||||||
|
|
||||||
<Tags tags={tags} all />
|
<Tags tags={tags} centered />
|
||||||
</main>
|
</main>
|
||||||
<Footer />
|
<Footer />
|
||||||
<ColorScript /></Container
|
<ColorScript /></Container
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ const tags = getTags(posts);
|
|||||||
<br />
|
<br />
|
||||||
|
|
||||||
<Container>
|
<Container>
|
||||||
<Tags tags={tags} all />
|
<h3 class="tag-title">Ikusi postak etiketaren arabera</h3>
|
||||||
|
<Tags tags={tags} centered />
|
||||||
</Container>
|
</Container>
|
||||||
</main>
|
</main>
|
||||||
<Container>
|
<Container>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const tags = getTags(posts);
|
|||||||
</Container>
|
</Container>
|
||||||
<main>
|
<main>
|
||||||
<content>
|
<content>
|
||||||
<Tags tags={tags} />
|
<Tags tags={tags} centered />
|
||||||
<PostGrid posts={posts} />
|
<PostGrid posts={posts} />
|
||||||
</content>
|
</content>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -168,22 +168,6 @@ ul.tags-list {
|
|||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
.tag {
|
|
||||||
display: inline-block;
|
|
||||||
margin-right: 20px;
|
|
||||||
color: var(--black);
|
|
||||||
font-size: 0.8rem;
|
|
||||||
}
|
|
||||||
.tag:hover {
|
|
||||||
cursor: pointer;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|||||||
Reference in new issue
Block a user