Skip to content

Commit

Permalink
Merge pull request #10 from sohosai/feat/feat/add-myxogastria0808-about
Browse files Browse the repository at this point in the history
feat: add about.md
  • Loading branch information
Myxogastria0808 authored May 15, 2024
2 parents 4c0a0a3 + 89c6b5d commit 1ee1f82
Show file tree
Hide file tree
Showing 5 changed files with 113 additions and 41 deletions.
26 changes: 26 additions & 0 deletions src/pages/Myxogastria0808/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "自己紹介"
author: "Myxogastria0808"
---

<div style="width:100%; max-width:900px; margin-left:auto; margin-right:auto; padding: 0px auto;">

# 自己紹介

## GitHub

[@Myxogastria0808](https://github.com/Myxogastria0808)

## Twitter

[@yuki_osada0808](https://twitter.com/yuki_osada0808)

## 自己紹介サイト

[https://yukiosada.work/](https://yukiosada.work/)

</div>

<a href="../" style="text-decoration: none;">
<div style="padding: 10px; border-radius: 10px; border: 1px solid gray; box-shadow: 0px 5px 15px 0px rgba(81, 81, 81, 0.35); width: 45px; margin: auto; font-size: 15px; color: black; text-align: center;">戻る</div>
</a>
86 changes: 86 additions & 0 deletions src/pages/Myxogastria0808/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
import Layout from "../../layouts/Layout.astro";
const posts = await Astro.glob("./*md");
---

<Layout title="jsys24-hackathon">
<h1>jsys24-hackathon</h1>
<ul>
{
posts.map((post) => (
<li>
<a href={post.url}>
<div class="item-box">
{typeof post.frontmatter.title !== "undefined" ? (
<h2>{post.frontmatter.title}</h2>
) : (
<h2>タイトルなし</h2>
)}
{typeof post.frontmatter.author !== "undefined" ? (
<p class="author">著者: {post.frontmatter.author}</p>
) : (
<p class="author" />
)}
</div>
</a>
</li>
))
}
</ul>
<a href="../">
<div class="back-box">戻る</div>
</a>
</Layout>
<style>
h1 {
text-align: center;
font-size: 25px;
margin-top: 30px;
margin-bottom: 60px;
}
ul {
width: 300px;
margin: auto;
}
li {
margin-top: 30px;
margin-bottom: 30px;
list-style: none;
}
a {
text-decoration: none;
}
.item-box {
padding: 10px;
border-radius: 10px;
border: 1px solid gray;
box-shadow: 0px 5px 15px 0px rgba(81, 81, 81, 0.35);
& h2 {
font-size: 20px;
color: black;
}
& .author {
margin-top: 10px;
font-size: 18;
color: gray;
}
}
.item-box:hover {
box-shadow: 0px 5px 15px 0px rgba(151, 151, 151, 0.35);
}
.back-box {
padding: 10px;
border-radius: 10px;
border: 1px solid gray;
box-shadow: 0px 5px 15px 0px rgba(81, 81, 81, 0.35);
width: 45px;
margin: auto;
font-size: 15px;
color: black;
text-align: center;
}
.back-box:hover {
box-shadow: 0px 5px 15px 0px rgba(151, 151, 151, 0.35);
}
</style>
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Layout from "../layouts/Layout.astro";
//班の名前を書いてください
const groupName = "2年生";
// 呼んでほしい名前を書いてください。
const members: string[] = ["appare45", "rona"];
const members: string[] = ["appare45", "rona", "Myxogastria0808"];
---

<Layout title="jsys24-hackathon">
Expand Down
20 changes: 0 additions & 20 deletions src/pages/rona/sohosai.md

This file was deleted.

20 changes: 0 additions & 20 deletions src/pages/rona/sopotan.md

This file was deleted.

0 comments on commit 1ee1f82

Please sign in to comment.