File tree Expand file tree Collapse file tree
components/blog/AuthorBio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
157157
158158### Changed
159159
160- - Started migrating styles from Styled Components to CSS Modules (ContactUsCard)
161- - CSS Modules Migration for ButtonLink,SubmitButton
162- - Updated ContactUsForm from Styled Components to CSS Modules (SCSS)
160+ - Migrating styles from Styled Components to CSS Modules
161+ - ContactUsCard
162+ - ContactUsForm
163+ - ButtonLink
164+ - SubmitButton
165+ - AuthorBio
166+
163167- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
Original file line number Diff line number Diff line change 1+ @use ' @/styles/mixins' as * ;
2+
3+ .grey-bg {
4+ background-color : var (--color-grey );
5+ padding : 4rem 0 7.5rem 0 ;
6+ margin : 4rem 0 ;
7+ }
8+
9+ .flex-container {
10+ display : flex ;
11+ flex-direction : column ;
12+ align-items : center ;
13+ gap : 1.5rem ;
14+ justify-content : center ;
15+ @include tablet {
16+ flex-direction : row ;
17+ }
18+ }
19+
20+ .logos-container {
21+ display : flex ;
22+ gap : 0.5rem ;
23+ }
24+
25+ .split-container {
26+ display : flex ;
27+ flex-direction : column ;
28+ justify-content : space-between ;
29+ }
30+
31+ .image-wrapper {
32+ min-width : 16rem ;
33+ min-height : 16rem ;
34+ position : relative ;
35+
36+ img {
37+ max-width : 16rem ;
38+ max-height : 16rem ;
39+ border-width : 3px ;
40+ border-color : var (--color-dark-grey );
41+ border-style : solid ;
42+ border-radius : 50% ;
43+ object-fit : cover ;
44+ }
45+ }
46+
47+ .icon-wrapper {
48+ width : 1.5rem ;
49+ height : 1.5rem ;
50+ position : relative ;
51+ img {
52+ object-fit : cover ;
53+ }
54+ }
Original file line number Diff line number Diff line change 1- import S from './styles ' ;
1+ import styles from './AuthorBio.module.scss ' ;
22import Image from 'next/image' ;
33import Container from '@/components/containers/Container' ;
44export default function AuthorBio ( { user } ) {
55 return (
6- < S . GreyBG >
6+ < div className = { styles [ 'grey-bg' ] } >
77 < Container >
88 < h3 > Author Bio</ h3 >
9- < S . FlexContainer >
10- < S . ImageWrapper >
9+ < div className = { styles [ 'flex-container' ] } >
10+ < div className = { styles [ 'image-wrapper' ] } >
1111 < Image src = { user . profile_image } alt = "Author's profile" fill />
12- </ S . ImageWrapper >
13- < S . SplitContainer >
12+ </ div >
13+ < div className = { styles [ 'split-container' ] } >
1414 < p > { user . summary } </ p >
15- < S . LogosContainer >
15+ < div className = { styles [ 'logos-container' ] } >
1616 { user . twitter_username && (
1717 < a
1818 href = { `https://x.com/${ user . twitter_username } ` }
@@ -67,10 +67,10 @@ export default function AuthorBio({ user }) {
6767 width = { 48 }
6868 />
6969 </ a >
70- </ S . LogosContainer >
71- </ S . SplitContainer >
72- </ S . FlexContainer >
70+ </ div >
71+ </ div >
72+ </ div >
7373 </ Container >
74- </ S . GreyBG >
74+ </ div >
7575 ) ;
7676}
Load diff This file was deleted.
Original file line number Diff line number Diff line change 11:root {
22 --bg-contact-card : #ffffff ;
33 --bg-color : #eaeaea ;
4+ --color-dark-grey : #9ba39d ;
5+ --color-grey : #d9d9d9 ;
46 --color-white : #ffffff ;
57 --color-primary-content : #292929 ;
68 --color-transparent : transparent ;
You can’t perform that action at this time.
0 commit comments