added PageTop component, markdown styles, white background on logo svg, and documentation comments

This commit is contained in:
2024-09-26 23:59:47 +09:00
parent a55bd18ebc
commit e1cac6ff05
34 changed files with 3345 additions and 2113 deletions

Binary file not shown.

View File

@@ -3,21 +3,21 @@
"clubNameLong": "Space Engineering Research Association",
"copyrightYear": 2024,
"memberDepartmentRatio": {
"date": "2023-3-31",
"mechanicalEng": 10,
"elecAndComp": 5,
"elecControl": 4,
"civilEng": 1,
"architecture": 2
"date": "2024-9-17",
"mechanicalEng": 12,
"elecAndComp": 3,
"elecControl": 14,
"civilEng": 2,
"architecture": 3
},
"memberGradeRatio": {
"date": "2022-3-31",
"first": 7,
"second": 4,
"third": 5,
"date": "2024-9-17",
"first": 14,
"second": 11,
"third": 7,
"fourth": 1,
"fifth": 5
"fifth": 1
},
"advisorName": "枝本雅史(えだもとまさふみ)",
"headOfClub": "4年機械工学科 櫻井晴生"
"advisorName": "佐藤敦(さとうあつい)",
"headOfClub": "年機械工学科 瀨 仁一郎"
}

View File

@@ -1,4 +1,5 @@
@import "~/assets/styles/color-pallet.css";
@import "~/assets/styles/markdown.css";
@font-face {
font-family: "Noto Sans JP";
@@ -15,15 +16,20 @@
.page-enter-active,
.page-leave-active {
transition: all ease-in-out 0.6s;
transition: all ease-in-out 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
transform: translateY(100%);
}
body {
margin: 0;
}
html {
font-size: 16px;
scrollbar-width: none;
scroll-behavior: smooth;
}

View File

@@ -1,12 +1,22 @@
/* Colors form https://simplicable.com/colors/ */
:root {
--deep-space: #000001;
--moonlight: #f6eed5;
--andromeda: #abcdee;
--meteorite: #4a3b6a;
--astronaut: #214559;
--comet2: #6e6970;
--deep-space: #000001;
--martian-moon: #c3e9d3;
--meteorite: #4a3b6a;
--moonlight: #f6eed5;
--neptune1: #007dac;
--starlight: #efefe8;
--sunlight: #fff8df;
--neptune2: #7fbb9e;
--ocean-blue: #009dc4;
}
--starlight1: #dde2e6;
--starlight5: #bcc0cc;
--starlight: #efefe8;
--starship: #e3dd39;
--sun2: #ef8e38;
--sunlight: #fff8df;
--uranus: #ace5ee;
--venus1: #eed053;
--venus2: #397c80;
}

146
assets/styles/markdown.css Normal file
View File

@@ -0,0 +1,146 @@
.markdown *:first-child {
margin-top: 0;
}
.markdown *:last-child {
margin-bottom: 0;
}
.markdown {
display: grid;
font-size: 16px;
}
.markdown > h1 {
color: var(--neptune1);
font-size: 2.5em;
text-align: center;
margin-bottom: 0.5rem;
}
.markdown > h2,
.markdown > h3,
.markdown > h4,
.markdown > h5,
.markdown > h6 {
margin-top: 1rem;
margin-bottom: 1rem;
}
.markdown > h2 {
color: var(--neptune2);
font-size: 2.125em;
}
.markdown > h3 {
color: var(--venus2);
font-size: 1.75em;
}
.markdown > h4 {
color: var(--venus2);
font-size: 1.5em;
}
.markdown > h5,
.markdown > h6 {
color: var(--venus2);
font-size: 1.25em;
}
.markdown > small {
margin: auto;
}
.markdown > p {
font-size: 1em;
line-height: 1.4em;
}
.markdown > p:has(img) {
width: fit-content;
margin: auto;
& > img {
width: 32rem;
height: auto;
}
}
.markdown > p > em,
.markdown > p > strong {
color: var(--neptune1);
}
.markdown > p > em:has(strong) {
color: var(--sun2);
}
.markdown > blockquote {
position: relative;
width: fit-content;
color: var(--deep-space);
background-color: var(--starlight5);
padding: 1em 2em;
border-radius: 1em;
margin-left: 0;
&::after {
--offset-y: 15px;
position: absolute;
content: "";
width: 3px;
height: calc(100% - (var(--offset-y) * 2));
background-color: var(--neptune1);
top: var(--offset-y);
left: 0.75em;
}
}
.markdown > figcaption {
text-align: center;
font-size: 0.9em;
}
.markdown > ul li,
.markdown > ol li {
line-height: 1.4em;
}
.markdown > ul li::marker,
.markdown > ol li::marker {
font-weight: bold;
color: var(--neptune1);
}
.markdown > table {
min-width: 128px;
border: var(--deep-space) 1px solid;
border-collapse: collapse;
margin: auto;
& > thead {
background: var(--comet2);
color: var(--starlight);
}
& > tbody > tr {
background: var(--starlight1);
}
& > tbody > tr:nth-of-type(even) {
background: var(--starlight);
}
& th,
& td {
padding: 0 0.25em;
border: var(--deep-space) 1px solid;
}
}
@media screen and (max-width: 1024px) {
.markdown > p:has(img) > img {
width: 70vw;
}
}
@media screen and (max-width: 640px) {
.markdown > h1 {
font-size: 2em;
}
}