-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from loxygenK/feat/introduction
✨ Add <Introduction /> page
- Loading branch information
Showing
18 changed files
with
282 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.emoji-default { | ||
height: 1em; | ||
|
||
img { | ||
height: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import Twemoji from "react-twemoji"; | ||
|
||
import styles from "./Emoji.module.scss"; | ||
|
||
export type EmojiProps = React.HTMLAttributes<HTMLSpanElement> & { | ||
emoji: string; | ||
}; | ||
export const Emoji = ({ emoji, className, ...props }: EmojiProps) => ( | ||
<Twemoji noWrapper> | ||
<span className={styles.emojiDefault + " " + className} {...props}> | ||
{emoji} | ||
</span> | ||
</Twemoji> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@use "~/styling/font.module.scss"; | ||
@use "~/styling/color.module.scss"; | ||
|
||
.heading { | ||
display: grid; | ||
grid-gap: 0.5rem; | ||
|
||
grid-auto-flow: column; | ||
grid-auto-columns: max-content; | ||
align-items: end; | ||
|
||
width: 100%; | ||
margin-bottom: 1.25em; | ||
padding-bottom: 0.25em; | ||
|
||
border-bottom: 2px solid color.get-theme-color(text-color-accent-primary); | ||
|
||
* { | ||
line-height: 100%; | ||
} | ||
} | ||
|
||
.sub-text { | ||
@include font.use-set(monospace); | ||
color: color.get-theme-color(text-color-secondary); | ||
|
||
font-size: 0.85rem; | ||
font-weight: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import { Emoji } from "./Emoji"; | ||
|
||
import styles from "./Heading.module.scss"; | ||
|
||
export type HeadingProps = { | ||
children: string; | ||
emoji: string; | ||
sub: string; | ||
}; | ||
export const Heading = ({ children, emoji, sub }: HeadingProps) => ( | ||
<h1 className={styles.heading}> | ||
<Emoji emoji={emoji} /> | ||
<span>{children}</span> | ||
{/* eslint-disable-next-line react/jsx-no-comment-textnodes */} | ||
<span className={styles.subText}>// {sub}</span> | ||
</h1> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@use "~/styling/color.module.scss"; | ||
@use "~/styling/layout.module.scss"; | ||
|
||
.container { | ||
display: grid; | ||
grid-auto-flow: column; | ||
grid-auto-columns: 1fr 2fr; | ||
grid-gap: 1.5em; | ||
width: 100%; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import { PageWrapper } from "~/comps/layout/PageWrapper"; | ||
import { Heading } from "~/comps/shared/Heading"; | ||
|
||
import styles from "./About.module.scss"; | ||
import { Avatar } from "./Avatar"; | ||
import { Introduction } from "./Introduction"; | ||
|
||
export const About = () => ( | ||
<PageWrapper> | ||
<Heading sub="About" emoji="🙌"> | ||
自己紹介 | ||
</Heading> | ||
<div className={styles.container}> | ||
<Avatar /> | ||
<Introduction /> | ||
</div> | ||
</PageWrapper> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@use "~/styling/color.module.scss"; | ||
|
||
.avatar { | ||
img { | ||
margin-bottom: -15px; | ||
width: 100%; | ||
|
||
animation: 5s ease-in-out alternate infinite shake; | ||
} | ||
|
||
overflow: hidden; | ||
border-bottom: 2px solid color.get-theme-color(text-color-accent-primary); | ||
} | ||
|
||
@keyframes shake { | ||
from { transform: rotate(-2deg); } | ||
to { transform: rotate(2deg); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import styles from "./Avatar.module.scss"; | ||
|
||
export const Avatar = () => ( | ||
<div> | ||
<div className={styles.avatar}> | ||
<img src="/static/loxygen_k.png" /> | ||
</div> | ||
<span> | ||
Icon by: | ||
<a href="https://twitter.com/unios103i" target="_blank" rel="noreferrer"> | ||
@unios103i | ||
</a> | ||
</span> | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@use "~/styling/color.module.scss"; | ||
@use "~/styling/font.module.scss"; | ||
|
||
.wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 0.5em; | ||
} | ||
|
||
.name, .affiriation { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.primary { | ||
@include font.use-set("heading"); | ||
|
||
font-size: 3em; | ||
font-weight: 600; | ||
line-height: 110%; | ||
} | ||
|
||
.element { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.aka { | ||
color: color.get-theme-color(text-color-secondary) | ||
} | ||
|
||
.location { | ||
font-size: 1.25em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
import styles from "./Introduction.module.scss"; | ||
|
||
export const Introduction = () => ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.name}> | ||
<span className={styles.primary}>フライさん</span> | ||
<span className={styles.aka}>Flisan / loxygen.K</span> | ||
</div> | ||
<div className={styles.affiriation}> | ||
<div className={styles.element}> | ||
<span className={styles.location}>茨城工業高等専門学校</span> | ||
<span>3 年 情報系</span> | ||
</div> | ||
<div className={styles.element}> | ||
<span className={styles.location}>茨城工業高等専門学校</span> | ||
<span>3 年 情報系</span> | ||
</div> | ||
</div> | ||
フライさんです. | ||
</div> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { RouteProps } from "react-router-dom"; | ||
import { Splash } from "~/pages/splash/Splash"; | ||
import { Main } from "~/pages/main/Main"; | ||
import { About } from "../about/About"; | ||
|
||
export const routingTable: RouteProps[] = [ | ||
{ path: "/", component: Splash, exact: true }, | ||
{ path: "/me", component: Main, exact: true }, | ||
{ path: "/about", component: About, exact: true }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters