-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add new blog page * feat: rewrite scss file to remove unused module * feat: remove unnecessary image function * feat: refactor post.description and replace small tag to use span instead * feat: update import to use @use instead * feat: use css variables for colors instead hex values * feat: test pre-commit hook * feat: revert import lines change * feat: remove modules from ArticlePreview and ArticleAuthor styles * feat: remove unnecessary div element * feat: enhance CSS for the desktop version * feat: Update image size to be full width * feat: add SubscriptionBanner component * feat: add CSS transition * feat: add graphql playground for development * feat: update to use function instead import * fix: default typography font parameter * feat: update block class to match the component name * feat: move SubscriptionBanner to the components folder * feat: refactor props * feat: rename handleClick to it load more posts purpose * fix: SubscriptionBanner import in LandingPage component * feat: add Blog page link to the main menu * fix: update blog title size for different screen sizes * feat: move article auhtor icon to a svg file * feat: add slug to blog posts * fix: page size typo * feat: refactor articlepreview css
- Loading branch information
1 parent
1dd8bbc
commit e53a3d4
Showing
19 changed files
with
601 additions
and
69 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
import { createBemBlockBuilder } from '../../utils'; | ||
import AuthorIcon from './icons/author.inline.svg'; | ||
|
||
import './ArticleAuthor.scss'; | ||
|
||
const getBlocksWith = createBemBlockBuilder(['article-author']); | ||
|
||
export const ArticleAuthor = ({ authorName }) => { | ||
return ( | ||
<p className={getBlocksWith()}> | ||
<span className={getBlocksWith('__icon')}> | ||
<AuthorIcon /> | ||
</span> | ||
{authorName} | ||
</p> | ||
); | ||
}; |
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,14 @@ | ||
@use 'src/styles/mixins' as m; | ||
@use 'src/styles/variables' as v; | ||
|
||
.article-author { | ||
@include m.font-poppins(v.$fw-medium); | ||
|
||
color: var(--text-service); | ||
display: flex; | ||
margin-bottom: 0; | ||
|
||
&__icon { | ||
margin-right: 8px; | ||
} | ||
} |
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
This file was deleted.
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,90 @@ | ||
@use 'src/styles/mixins' as m; | ||
@use 'src/styles/variables' as v; | ||
|
||
.article-preview-list { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); | ||
grid-gap: calc(4 * var(--base-spacing)) calc(3 * var(--base-spacing)); | ||
|
||
&__item { | ||
background-color: var(--white); | ||
border-radius: 16px; | ||
box-shadow: 0px 8px 16px 0px rgba(0, 45, 55, 0.12); | ||
color: var(--text-primary); | ||
display: flex; | ||
flex-direction: column; | ||
transition: var(--basic-transition); | ||
|
||
&:hover, | ||
&:active { | ||
box-shadow: 0px 8px 32px 0px rgba(0, 45, 55, 0.12); | ||
} | ||
|
||
&:hover { | ||
.article-preview-list { | ||
&__title { | ||
color: var(--color-primary-500); | ||
} | ||
} | ||
} | ||
|
||
&:active { | ||
.article-preview-list { | ||
&__title { | ||
color: var(--color-primary-700); | ||
} | ||
} | ||
} | ||
} | ||
|
||
&__featured-image { | ||
border-top-left-radius: calc(2 * var(--base-spacing)); | ||
border-top-right-radius: calc(2 * var(--base-spacing)); | ||
overflow: hidden; | ||
} | ||
|
||
&__content { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
padding: calc(3 * var(--base-spacing)); | ||
} | ||
|
||
&__category { | ||
@include m.font-poppins(v.$fw-semi-bold); | ||
@include m.font-scale(small); | ||
|
||
color: var(--text-service); | ||
letter-spacing: 1px; | ||
margin: 0; | ||
text-transform: uppercase; | ||
} | ||
|
||
&__link { | ||
display: flex; | ||
flex: 1; | ||
flex-direction: column; | ||
text-decoration: none; | ||
} | ||
|
||
&__title { | ||
@include m.font-poppins(v.$fw-semi-bold); | ||
@include m.font-scale(medium); | ||
|
||
display: inline-block; | ||
margin: calc(2 * var(--base-spacing)) 0; | ||
border-bottom: 1.5px solid transparent; | ||
transition: var(--basic-transition); | ||
} | ||
|
||
&__meta { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
&__excerpt { | ||
flex-grow: 1; | ||
line-height: calc(3 * var(--base-spacing)); | ||
margin: 0; | ||
} | ||
} |
Oops, something went wrong.