File tree Expand file tree Collapse file tree
components/decorations/Bracket Expand file tree Collapse file tree 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 @@ -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' ;
45import RevealContentContainer from '@/components/containers/RevealContentContainer' ;
56import { useTheme } from 'styled-components' ;
67
@@ -21,7 +22,7 @@ export default function Home() {
2122 </ RevealContentContainer >
2223
2324 < RevealContentContainer >
24- < S . Bracket />
25+ < Bracket className = { bracketStyles . homeBracket } />
2526 < TwoColumn
2627 title = 'Get involved.'
2728 content = 'Web Dev Path runs on volunteers. Here are the ways you can get involved with us:'
@@ -66,8 +67,6 @@ export default function Home() {
6667 </ RevealContentContainer >
6768
6869 < RevealContentContainer >
69- < S . Stick />
70-
7170 < TwoColumn
7271 title = 'Nonprofit?'
7372 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 ;
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} ;
Original file line number Diff line number Diff line change 11import styled , { css } from 'styled-components' ;
2- import Bracket from '@/components/decorations/Bracket' ;
32import Stick from '@/components/decorations/Stick' ;
43
5- const HomeBracket = styled ( Bracket ) `
6- left: 0;
7- position: absolute;
8- transform: translate(10rem, -5rem);
9-
10- ${ props => css `
11- @media (min-width: ${ props . theme . breakpoints . desktopPlus } ) {
12- transform : translate (50% , -5rem );
13- width : 30% ;
14- }
15- ` }
16- ${ props => css `
17- @media (max-width: ${ props . theme . breakpoints . desktopMinus } ) {
18- display : none;
19- }
20- ` }
21- ` ;
224const HomeStick = styled ( Stick ) `
235 right: 0;
246 position: absolute;
@@ -38,4 +20,4 @@ const HomeStick = styled(Stick)`
3820 ` }
3921` ;
4022
41- export default { Bracket : HomeBracket , Stick : HomeStick } ;
23+ export default { Stick : HomeStick } ;
You can’t perform that action at this time.
0 commit comments