+
+
+ {post.frontmatter.hero &&
}
+
+
Tag
+ {/*
*/}
+
{post.frontmatter.title}
+
0000.00.00
+
{description}
+
+
share
+ {/*
*/}
+
+
-
- {post.frontmatter.title}
- {description}
-
-
-
- {post.frontmatter.hero &&
}
+
+ 関連
+ ...post
+
-
-
-
-
-
-
);
};
diff --git a/src/components/templates/BlogPost/index.module.scss b/src/components/templates/BlogPost/index.module.scss
index 5be2d7f..06a95e8 100644
--- a/src/components/templates/BlogPost/index.module.scss
+++ b/src/components/templates/BlogPost/index.module.scss
@@ -1,5 +1,142 @@
@import '../../../styles/media-queries.scss';
+@import '../../../styles/layout.scss';
+.blogPostWrapper {
+ padding: 64px 0;
+ overflow-x: hidden;
+}
+
+.blogPostOuter {
+ @include layout-content;
+}
+
+.mainImage {
+ width: 100%;
+ height: auto;
+ margin-bottom: 64px;
+}
+
+.blogPost {
+ padding: 80px 0 128px;
+
+ @include mq($vp-s) {
+ padding: 32px 0 64px;
+ }
+}
+
+.blogPostInner {
+ @include layout-narrowContent;
+}
+
+.tag {
+ margin-bottom: 20px;
+ font-size: 1.4rem;
+
+ // &.peopleManagement {
+ // color: #ff7e7e;
+ // }
+
+ // &.caseStudy {
+ // color: #00c09a;
+ // }
+}
+
+.title {
+ margin-bottom: 28px;
+ font-size: 3.8rem;
+ line-height: 1.31;
+
+ @include mq($vp-s) {
+ font-size: 3rem;
+ }
+}
+
+.postDate {
+ margin-bottom: 24px;
+ font-size: 1.5rem;
+}
+
+.description {
+ margin-bottom: 28px;
+ font-size: 1.7rem;
+ font-weight: bold;
+ line-height: 1.64;
+}
+
+.article {
+ font-size: 1.7rem;
+ line-height: 1.64;
+
+ // 書式
+ * + * {
+ margin-top: 28px;
+ }
+
+ h2 {
+ font-size: 2.4rem;
+
+ @include mq($vp-s) {
+ font-size: 2.2rem;
+ line-height: 1.4;
+ }
+ }
+
+ * + h2 {
+ margin-top: 64px;
+ }
+
+ b {
+ font-weight: bold;
+ }
+
+ strong {
+ font-weight: bold;
+ color: #4b95ff;
+ }
+
+ a {
+ display: inline-block;
+ font-weight: bold;
+ color: #4b95ff;
+ text-decoration: underline;
+
+ &:hover {
+ text-decoration: none;
+ }
+ }
+
+ img {
+ display: inline-block;
+ width: 100%;
+ height: auto;
+ }
+
+ * + img,
+ img + * {
+ margin-top: 64px;
+ }
+
+ blockquote {
+ padding: 24px 32px;
+ background-color: #f2f2f2;
+ border-radius: 8px;
+
+ @include mq($vp-s) {
+ padding: 24px 20px;
+ }
+ }
+}
+
+.shareItems {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ flex-wrap: wrap;
+ margin-top: 64px;
+}
+
+
+/*
.head {
position: relative;
margin-bottom: 4rem;
@@ -21,7 +158,7 @@
border: none;
line-height: 1.25;
- @include mq-sp() {
+ @include mq($vp-s) {
font-size: 1.5rem;
}
}
@@ -62,7 +199,7 @@
margin-top: 6rem;
font-size: 1.75rem;
- @include mq-sp() {
+ @include mq($vp-s) {
font-size: 1.5rem;
}
@@ -81,7 +218,7 @@
margin-top: 2.5rem;
font-size: 1.5rem;
- @include mq-sp() {
+ @include mq($vp-s) {
font-size: 1.25rem;
}
}
@@ -89,7 +226,7 @@
& h3 {
font-size: 1.25rem;
- @include mq-sp() {
+ @include mq($vp-s) {
font-size: 1rem;
}
}
@@ -123,3 +260,4 @@
text-align: right;
}
}
+*/
\ No newline at end of file
diff --git a/src/components/templates/Layout/index.js b/src/components/templates/Layout/index.js
index 07fbce9..770ab72 100644
--- a/src/components/templates/Layout/index.js
+++ b/src/components/templates/Layout/index.js
@@ -1,46 +1,49 @@
import React from 'react';
-import { Link } from 'gatsby';
+// import { Link } from 'gatsby';
+import AppHeader from '../../molecules/AppHeader';
+import AppFooter from '../../molecules/AppFooter';
import styles from './index.module.scss';
-const HeaderLink = ({ title }) => (
-
- {title}
-
-);
+// const HeaderLink = ({ title }) => (
+//
+// {title}
+//
+// );
-const Header = ({ location, title }) => {
- const rootPath = `${__PATH_PREFIX__}/`;
+// const Header = ({ location, title }) => {
+// const rootPath = `${__PATH_PREFIX__}/`;
- return location.pathname === rootPath ? (
-
- ) : (
-
- );
-};
+// return location.pathname === rootPath ? (
+//
+// ) : (
+//
+// );
+// };
-const Footer = () => (
-
-);
+// const Footer = () => (
+//
+// );
const Layout = ({ location, title, children }) => (
-
-
{children}
-
+ {/*
*/}
+
+
{children}
+
);
diff --git a/src/components/templates/Layout/index.module.scss b/src/components/templates/Layout/index.module.scss
index e762f64..78d2004 100644
--- a/src/components/templates/Layout/index.module.scss
+++ b/src/components/templates/Layout/index.module.scss
@@ -1,46 +1,57 @@
-@import '../../../styles/media-queries.scss';
-
-.root {
- margin-left: auto;
- margin-right: auto;
- max-width: 40rem;
- padding: 2.5rem 1.25rem;
-
- @include mq-sp() {
- padding: 1rem 0.75rem;
- }
-}
-
-.headerBig {
- font-size: 3rem;
- line-height: 3.25rem;
- margin-bottom: 2rem;
- margin-top: 0px;
-
- @include mq-sp() {
- font-size: 2rem;
- }
-}
-
-.headerSmall {
- margin-top: 0px;
-}
-
-.siteName {
- box-shadow: none;
- text-decoration: none;
- color: inherit;
-}
-
-.footer {
- display: flex;
-}
-
-.footerCopyright {
- flex-grow: 1;
-}
-
-.footerToHome {
- flex-grow: 1;
- text-align: right;
-}
+// @import '../../../styles/media-queries.scss';
+
+// .root {
+// margin-left: auto;
+// margin-right: auto;
+// max-width: 40rem;
+// padding: 2.5rem 1.25rem;
+
+// @include mq($vp-s) {
+// padding: 1rem 0.75rem;
+// }
+// }
+
+// .headerBig {
+// font-size: 3rem;
+// line-height: 3.25rem;
+// margin-bottom: 2rem;
+// margin-top: 0px;
+
+// @include mq($vp-s) {
+// font-size: 2rem;
+// }
+// }
+
+// .headerSmall {
+// margin-top: 0px;
+// }
+
+// .siteName {
+// box-shadow: none;
+// text-decoration: none;
+// color: inherit;
+// }
+
+// .main {
+// margin-left: auto;
+// margin-right: auto;
+// max-width: 40rem;
+// padding: 2.5rem 1.25rem;
+
+// @include mq($vp-s) {
+// padding: 1rem 0.75rem;
+// }
+// }
+
+// .footer {
+// display: flex;
+// }
+
+// .footerCopyright {
+// flex-grow: 1;
+// }
+
+// .footerToHome {
+// flex-grow: 1;
+// text-align: right;
+// }
diff --git a/src/pages/library.js b/src/pages/library.js
new file mode 100644
index 0000000..489c6ec
--- /dev/null
+++ b/src/pages/library.js
@@ -0,0 +1,58 @@
+import React from 'react';
+import { graphql } from 'gatsby';
+
+import Seo from '../components/atoms/Seo';
+import Posts from '../components/pages/Root/Posts';
+import Layout from '../components/templates/Layout';
+import LibraryHeader from '../components/molecules/LibraryHeader';
+import LibraryFinder from '../components/molecules/LibraryFinder';
+import LibraryFrame from '../components/molecules/LibraryFrame';
+
+const LibraryIndex = ({ location, data }) => (
+
+
+
+
+
+
+
+
+ 人気の記事
+
+
+);
+
+export default LibraryIndex;
+
+export const pageQuery = graphql`
+ query {
+ site {
+ siteMetadata {
+ title
+ }
+ }
+ allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
+ edges {
+ node {
+ excerpt
+ fields {
+ slug
+ }
+ frontmatter {
+ date(formatString: "YYYY/M/D")
+ title
+ description
+ tags
+ hero {
+ childImageSharp {
+ fixed(width: 128, height: 128) {
+ ...GatsbyImageSharpFixed
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+`;
diff --git a/src/styles/layout.scss b/src/styles/layout.scss
new file mode 100644
index 0000000..eb3f093
--- /dev/null
+++ b/src/styles/layout.scss
@@ -0,0 +1,21 @@
+@mixin layout-maxContent {
+ width: calc(100% - 32px);
+ max-width: 1152px;
+ margin: 0 auto;
+}
+
+@mixin layout-content {
+ width: calc(100% - 32px);
+ max-width: 1024px;
+ margin: 0 auto;
+}
+
+@mixin layout-narrowContent {
+ width: calc(100% - 32px);
+ max-width: 756px;
+ margin: 0 auto;
+
+ @include mq($vp-s) {
+ width: 100%;
+ }
+}
diff --git a/src/styles/media-queries.scss b/src/styles/media-queries.scss
index d87be29..a9661c0 100644
--- a/src/styles/media-queries.scss
+++ b/src/styles/media-queries.scss
@@ -1,15 +1,18 @@
-$mq-lg: 1280px;
-$mq-md: 960px;
-$mq-sp: 768px;
+$vp-intro-content: 1279px;
+$vp-intro-inner: 960px; // innerコンテナの幅
+$vp-intro-movie: 800px; // メインイメージの最大幅
+$vp-changeNavi: 720px; // ナビをハンバーガーに格納
+$vp-intro-chat: 420px; // チャット部品が破綻するサイズ
+$vp-s: 640px;
-@mixin mq-md {
- @media screen and (max-width: $mq-md) {
+@mixin mq($vp) {
+ @media (max-width: ($vp)) {
@content;
}
}
-@mixin mq-sp {
- @media screen and (max-width: $mq-sp) {
+@mixin mqh($vph) {
+ @media screen and (max-height: ($vph)) {
@content;
}
}
diff --git a/src/styles/mixin.scss b/src/styles/mixin.scss
new file mode 100644
index 0000000..095f8f1
--- /dev/null
+++ b/src/styles/mixin.scss
@@ -0,0 +1,59 @@
+// element
+@mixin button-default($buttonColor) {
+ display: block;
+ width: 100%;
+ height: 44px;
+ padding: 0 10px;
+ background-color: $buttonColor;
+ font-size: 1.5rem;
+ color: #fff;
+ line-height: 44px;
+ text-align: center;
+ box-shadow: 0px 2px 4px $color-shadow, inset 0px 1px 2px $color-reflectShadow, inset 0px -2px 2px $color-shadow;
+ border-radius: 3px;
+ cursor: pointer;
+
+ @include mq($vp-s) {
+ height: 32px;
+ padding: 0 4px;
+ font-size: 1.2rem;
+ line-height: 32px;
+ }
+
+ &:hover {
+ background-color: darken($buttonColor, 10%);
+ box-shadow: $shadow-petitReverse;
+ }
+}
+
+// 画像置換
+@mixin image-replacement($w, $h, $img, $posX, $posY) {
+ width: $w;
+ height: $h;
+ background: url($img) no-repeat center center;
+ background-position: $posX $posY;
+ font-size: 0;
+ text-indent: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+}
+
+// placeholder
+@mixin customPlaceholder($fz:1.2rem, $color:#ccc) {
+ &:placeholder-shown {
+ font-size: $fz;
+ color: $color;
+ }
+ &::-webkit-input-placeholder {
+ font-size: $fz;
+ color: $color;
+ }
+ &::-moz-placeholder {
+ font-size: $fz;
+ color: $color;
+ }
+ &:-ms-input-placeholder {
+ font-size: $fz;
+ color: $color;
+ }
+}
\ No newline at end of file
diff --git a/src/styles/reset.scss b/src/styles/reset.scss
new file mode 100644
index 0000000..a74bddb
--- /dev/null
+++ b/src/styles/reset.scss
@@ -0,0 +1,74 @@
+* {
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ -webkit-touch-callout: none;
+ box-sizing: border-box;
+}
+
+html {
+ width: 100%;
+ height: 100%;
+ font-size: 62.5%;
+}
+
+body {
+ width: 100%;
+ height: 100%;
+ font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Noto Sans Japanese", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
+ font-size: 1rem;
+ color: #333;
+ line-height: 1;
+ margin: 0;
+ padding: 0;
+ word-break: normal;
+}
+
+h1, h2, h3, h4 {
+ margin: 0;
+}
+
+p {
+ margin: 0;
+ padding: 0;
+}
+
+ul, li {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+input, button, textarea, select {
+ margin: 0;
+ padding: 0;
+ background: none;
+ line-height: 1;
+ border: none;
+ border-radius: 0;
+ outline: none;
+ appearance: none;
+
+ &::-ms-clear {
+ visibility: hidden;
+ }
+
+ &::-ms-reveal {
+ visibility: hidden;
+ }
+}
+
+input {
+ white-space: nowrap;
+}
+
+textarea {
+ resize: vertical;
+}
+
+a {
+ color: #333;
+ text-decoration: none;
+}
+
+img {
+ vertical-align: bottom;
+}
\ No newline at end of file
diff --git a/src/styles/variables.scss b/src/styles/variables.scss
new file mode 100644
index 0000000..62397b3
--- /dev/null
+++ b/src/styles/variables.scss
@@ -0,0 +1,87 @@
+//
+// COLORS
+//
+$palette-main: #00c09a;
+$palette-main80: rgba(0, 192, 154, .8);
+$palette-main60: rgba(0, 192, 154, .6);
+$palette-main40: rgba(0, 192, 154, .4);
+$palette-main20: rgba(0, 192, 154, .2);
+$palette-main10: rgba(0, 192, 154, .1);
+$palette-main0: rgba(0, 192, 154, 0);
+
+$palette-sub: #4b95ff;
+$palette-sub80: rgba(75, 149, 255, .8);
+$palette-sub60: rgba(75, 149, 255, .6);
+$palette-sub40: rgba(75, 149, 255, .4);
+$palette-sub20: rgba(75, 149, 255, .2);
+$palette-sub10: rgba(75, 149, 255, .1);
+
+$palette-base: #ffbd3a;
+$palette-base80: rgba(255, 189, 58, .8);
+$palette-base60: rgba(255, 189, 58, .6);
+$palette-base40: rgba(255, 189, 58, .4);
+$palette-base20: rgba(255, 189, 58, .2);
+$palette-base10: rgba(255, 189, 58, .1);
+
+$palette-white: #fff;
+$palette-white50: rgba(255, 255, 255, .5);
+
+$palette-black: #333;
+$palette-black80: rgba(0, 0, 0, .8);
+$palette-black60: rgba(0, 0, 0, .6);
+$palette-black40: rgba(0, 0, 0, .4);
+$palette-black30: rgba(0, 0, 0, .3);
+$palette-black20: rgba(0, 0, 0, .2);
+$palette-black15: rgba(0, 0, 0, .15);
+$palette-black10: rgba(0, 0, 0, .1);
+$palette-black5: rgba(0, 0, 0, .05);
+
+$palette-darkGray: #4a4a4a;
+$palette-gray: #ddd;
+$palette-lightGray: #f6f6f6;
+$palette-whiteGray: #f2f2f2;
+$palette-transparentGray: rgba(242, 242, 242, 0);
+
+$palette-green: #84e5cf;
+$palette-limeGreen: #cfefd6;
+
+
+// color
+$color-defaultText: $palette-black;
+$color-lightText: $palette-white;
+$color-grayText: $palette-darkGray;
+$color-main: $palette-main;
+$color-sub: $palette-sub;
+$color-base: $palette-base;
+
+$color-seleck-tips: $palette-limeGreen;
+$color-seleck-interview: $palette-green;
+$color-seleck-category: $palette-gray;
+
+$color-problem-item: $palette-lightGray;
+
+// background
+$color-grayBackground: $palette-whiteGray;
+$color-darkGrayBackground: $palette-darkGray;
+
+// gradient
+$color-grayGradientStart: $palette-transparentGray;
+$color-grayGradientEnd: $palette-whiteGray;
+$color-greenGradientStart: $palette-main10;
+$color-greenGradientEnd: $palette-main0;
+
+// border
+$color-border: $palette-black10;
+
+// shadow
+$color-shadow: $palette-black15;
+$color-darkShadow: $palette-black30;
+$color-reflectShadow: $palette-white50;
+
+
+
+$shadow-petit: 0 2px 4px color-shadow;
+$shadow-petitReverse: inset 0 2px 4px color-shadow;
+$shadow-card: 0 4px 10px color-shadow;
+
+
diff --git a/src/utils/typography.js b/src/utils/typography.js
index cfa2e0f..7f274a6 100644
--- a/src/utils/typography.js
+++ b/src/utils/typography.js
@@ -6,6 +6,9 @@ GitHub.overrideThemeStyles = () => {
'a.gatsby-resp-image-link': {
boxShadow: `none`,
},
+ 'h1, h2': {
+ borderBottom: 'none',
+ },
};
};