Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Row
- Container
- Wrapper
- Extracted :root from themes.scss to globals.scss
- Decorations/Bracket
- Decorations/Stick

- Extracted :root from themes.scss to globals.scss
- Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility
- Updated SearchInput width to 100% for better styling
- Updated the prop name to propStyles in Container component to fix the name conflict that introduced a styling bug
Expand Down
42 changes: 42 additions & 0 deletions components/decorations/Bracket/Bracket.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@use '@/styles/mixins' as *;

.homeBracket {
left: 0;
position: absolute;
transform: translate(10rem, -5rem);

@include desktop-breakpoint-plus {
transform: translate(50%, -5rem);
width: 30%;
}

@include desktop-breakpoint-minus {
display: none;
}
}

.yellowBracket {
-webkit-transform: scaleX(-1);
transform: scaleX(-1);

@include tablet-max {
display: none;
}

@include tablet {
position: absolute;
top: 28%;
right: 120%;
width: 8rem;
}

@include desktop {
top: 25%;
right: 120%;
}

@include desktop-breakpoint-plus {
top: 45%;
right: 140%;
}
}
15 changes: 15 additions & 0 deletions components/decorations/Stick/Stick.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use '@/styles/mixins' as *;

.homeStick {
right: 0;
position: absolute;
transform: translate(-10rem, -5rem);

@include desktop-breakpoint-plus-max {
transform: translate(-50%, -5rem);
width: 30%;
}
@include desktop-breakpoint-minus {
display: none;
}
}
File renamed without changes.
5 changes: 3 additions & 2 deletions pages/contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import { useState } from 'react';
import ContactUsFormSubscribe from '@/components/ContactUs';
import ContactUsCards from '@/components/ContactUs/ContactUsCards';
import S from '@/styles/pages/contactStyles';

import Bracket from '@/components/decorations/Bracket';
import bracketStyles from '@/components/decorations/Bracket/Bracket.module.scss';
export default function ContactUs() {
const [message, setMessage] = useState([]);

return (
<>
<S.ContactUsContainer>
<S.FormAndDecorations>
<S.YellowBracket />
<Bracket className={bracketStyles.yellowBracket} />
<ContactUsFormSubscribe setMsg={setMessage} />
<S.YellowColon src='/images/svg/yellow-colon.svg' />
<S.ResponseMessage>
Expand Down
10 changes: 6 additions & 4 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import TwoColumn from '@/components/containers/TwoColumn';
import { CardsColumns } from '@/components/containers/CardColumns';
import S from '@/styles/pages/homeStyles';
import Bracket from '@/components/decorations/Bracket';
import bracketStyles from '@/components/decorations/Bracket/Bracket.module.scss';
import Stick from '@/components/decorations/Stick';
import stickStyles from '@/components/decorations/Stick/Stick.module.scss';
import RevealContentContainer from '@/components/containers/RevealContentContainer';
import { useTheme } from 'styled-components';

Expand All @@ -21,7 +24,7 @@ export default function Home() {
</RevealContentContainer>

<RevealContentContainer>
<S.Bracket />
<Bracket className={bracketStyles.homeBracket} />
<TwoColumn
title='Get involved.'
content='Web Dev Path runs on volunteers. Here are the ways you can get involved with us:'
Expand Down Expand Up @@ -66,8 +69,7 @@ export default function Home() {
</RevealContentContainer>

<RevealContentContainer>
<S.Stick />

<Stick className={stickStyles.homeStick} />
<TwoColumn
title='Nonprofit?'
content='Web Dev Path can help your nonprofit with web projects of various sizes. Connect with us to find out how.'
Expand Down
12 changes: 12 additions & 0 deletions styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
}
}

@mixin tablet-max {
@media (max-width: $tablet-breakpoint) {
@content;
}
}

@mixin desktop {
@media (min-width: $desktop-breakpoint) {
@content;
Expand All @@ -26,6 +32,12 @@
}
}

@mixin desktop-breakpoint-plus-max {
@media (max-width: $desktop-breakpoint-plus) {
@content;
}
}

@mixin medium-desktop {
@media (min-width: $medium-desktop-breakpoint) {
@content;
Expand Down
36 changes: 0 additions & 36 deletions styles/pages/contactStyles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled, { css } from 'styled-components';
import Bracket from '@/components/decorations/Bracket';

const ContactUsContainer = styled.div`
background-color: ${({ theme }) => theme.colors.lightBg};
Expand Down Expand Up @@ -43,40 +42,6 @@ const FormAndDecorations = styled.div`
`}
`;

const YellowBracket = styled(Bracket)`
-webkit-transform: scaleX(-1);
transform: scaleX(-1);

${props => css`
@media (max-width: ${props.theme.breakpoints.tablet}) {
display: none;
}
`}

${props => css`
@media (min-width: ${props.theme.breakpoints.tablet}) {
position: absolute;
top: 28%;
right: 120%;
width: 8rem;
}
`}

${props => css`
@media (min-width: ${props.theme.breakpoints.desktop}) {
top: 25%;
right: 120%;
}
`}

${props => css`
@media (min-width: ${props.theme.breakpoints.desktopPlus}) {
top: 45%;
right: 140%;
}
`}
`;

const YellowColon = styled.img`
${props => css`
@media (max-width: ${props.theme.breakpoints.desktopMinus}) {
Expand Down Expand Up @@ -115,7 +80,6 @@ const ResponseMessage = styled.div`
export default {
ContactUsContainer,
FormAndDecorations,
YellowBracket,
YellowColon,
ResponseMessage,
};
41 changes: 0 additions & 41 deletions styles/pages/homeStyles.js

This file was deleted.