File tree Expand file tree Collapse file tree 10 files changed +81
-83
lines changed
Expand file tree Collapse file tree 10 files changed +81
-83
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
175175 - Row
176176 - Container
177177 - Wrapper
178+ - Decorations/Bracket
179+ - Decorations/Stick
178180 - TwoColumn
179181- Extracted : root from themes.scss to globals.scss
182+ - Extracted : root from themes.scss to globals.scss
180183- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
181184- Updated SearchInput width to 100% for better styling
182185- Updated the prop name to propStyles in Container component to fix the name conflict that introduced a styling bug
Original file line number Diff line number Diff line change 1+ @use ' @/styles/mixins' as * ;
2+
3+ .homeBracket {
4+ left : 0 ;
5+ position : absolute ;
6+ transform : translate (10rem , -5rem );
7+
8+ @include desktop-breakpoint-plus {
9+ transform : translate (50% , -5rem );
10+ width : 30% ;
11+ }
12+
13+ @include desktop-breakpoint-minus {
14+ display : none ;
15+ }
16+ }
17+
18+ .yellowBracket {
19+ -webkit-transform : scaleX (-1 );
20+ transform : scaleX (-1 );
21+
22+ @include tablet-max {
23+ display : none ;
24+ }
25+
26+ @include tablet {
27+ position : absolute ;
28+ top : 28% ;
29+ right : 120% ;
30+ width : 8rem ;
31+ }
32+
33+ @include desktop {
34+ top : 25% ;
35+ right : 120% ;
36+ }
37+
38+ @include desktop-breakpoint-plus {
39+ top : 45% ;
40+ right : 140% ;
41+ }
42+ }
File renamed without changes.
Original file line number Diff line number Diff line change 1+ @use ' @/styles/mixins' as * ;
2+
3+ .homeStick {
4+ right : 0 ;
5+ position : absolute ;
6+ transform : translate (-10rem , -5rem );
7+
8+ @include desktop-breakpoint-plus-max {
9+ transform : translate (-50% , -5rem );
10+ width : 30% ;
11+ }
12+ @include desktop-breakpoint-minus {
13+ display : none ;
14+ }
15+ }
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,15 +2,16 @@ import { useState } from 'react';
22import ContactUsFormSubscribe from '@/components/ContactUs' ;
33import ContactUsCards from '@/components/ContactUs/ContactUsCards' ;
44import S from '@/styles/pages/contactStyles' ;
5-
5+ import Bracket from '@/components/decorations/Bracket' ;
6+ import bracketStyles from '@/components/decorations/Bracket/Bracket.module.scss' ;
67export default function ContactUs ( ) {
78 const [ message , setMessage ] = useState ( [ ] ) ;
89
910 return (
1011 < >
1112 < S . ContactUsContainer >
1213 < S . FormAndDecorations >
13- < S . YellowBracket />
14+ < Bracket className = { bracketStyles . yellowBracket } />
1415 < ContactUsFormSubscribe setMsg = { setMessage } />
1516 < S . YellowColon src = '/images/svg/yellow-colon.svg' />
1617 < S . ResponseMessage >
Original file line number Diff line number Diff line change 11import TwoColumn from '@/components/containers/TwoColumn' ;
22import { CardsColumns } from '@/components/containers/CardColumns' ;
3- import S from '@/styles/pages/homeStyles' ;
3+ import Bracket from '@/components/decorations/Bracket' ;
4+ import bracketStyles from '@/components/decorations/Bracket/Bracket.module.scss' ;
5+ import Stick from '@/components/decorations/Stick' ;
6+ import stickStyles from '@/components/decorations/Stick/Stick.module.scss' ;
47import RevealContentContainer from '@/components/containers/RevealContentContainer' ;
58
69export default function Home ( ) {
@@ -19,7 +22,7 @@ export default function Home() {
1922 </ RevealContentContainer >
2023
2124 < RevealContentContainer >
22- < S . Bracket />
25+ < Bracket className = { bracketStyles . homeBracket } />
2326 < TwoColumn
2427 title = 'Get involved.'
2528 content = 'Web Dev Path runs on volunteers. Here are the ways you can get involved with us:'
@@ -64,8 +67,7 @@ export default function Home() {
6467 </ RevealContentContainer >
6568
6669 < RevealContentContainer >
67- < S . Stick />
68-
70+ < Stick className = { stickStyles . homeStick } />
6971 < TwoColumn
7072 title = 'Nonprofit?'
7173 content = 'Web Dev Path can help your nonprofit with web projects of various sizes. Connect with us to find out how.'
Original file line number Diff line number Diff line change 1414 }
1515}
1616
17+ @mixin tablet-max {
18+ @media (max-width : $tablet-breakpoint ) {
19+ @content ;
20+ }
21+ }
22+
1723@mixin desktop {
1824 @media (min-width : $desktop-breakpoint ) {
1925 @content ;
2632 }
2733}
2834
35+ @mixin desktop-breakpoint-plus-max {
36+ @media (max-width : $desktop-breakpoint-plus ) {
37+ @content ;
38+ }
39+ }
40+
2941@mixin medium-desktop {
3042 @media (min-width : $medium-desktop-breakpoint ) {
3143 @content ;
Original file line number Diff line number Diff line change 11import styled , { css } from 'styled-components' ;
2- import Bracket from '@/components/decorations/Bracket' ;
32
43const ContactUsContainer = styled . div `
54 background-color: ${ ( { theme } ) => theme . colors . lightBg } ;
@@ -43,40 +42,6 @@ const FormAndDecorations = styled.div`
4342 ` }
4443` ;
4544
46- const YellowBracket = styled ( Bracket ) `
47- -webkit-transform: scaleX(-1);
48- transform: scaleX(-1);
49-
50- ${ props => css `
51- @media (max-width: ${ props . theme . breakpoints . tablet } ) {
52- display: none;
53- }
54- ` }
55-
56- ${ props => css `
57- @media (min-width: ${ props . theme . breakpoints . tablet } ) {
58- position: absolute;
59- top: 28%;
60- right: 120%;
61- width: 8rem;
62- }
63- ` }
64-
65- ${ props => css `
66- @media (min-width: ${ props . theme . breakpoints . desktop } ) {
67- top: 25%;
68- right: 120%;
69- }
70- ` }
71-
72- ${ props => css `
73- @media (min-width: ${ props . theme . breakpoints . desktopPlus } ) {
74- top: 45%;
75- right: 140%;
76- }
77- ` }
78- ` ;
79-
8045const YellowColon = styled . img `
8146 ${ props => css `
8247 @media (max-width: ${ props . theme . breakpoints . desktopMinus } ) {
@@ -115,7 +80,6 @@ const ResponseMessage = styled.div`
11580export default {
11681 ContactUsContainer,
11782 FormAndDecorations,
118- YellowBracket,
11983 YellowColon,
12084 ResponseMessage,
12185} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments