Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit ae6062e

Browse files
author
Greg Rickaby
authored
Merge pull request #172 from WebDevStudios/fix/spacing-issues
Fix/spacing issues
2 parents 234a0f4 + d36e436 commit ae6062e

File tree

12 files changed

+41
-53
lines changed

12 files changed

+41
-53
lines changed

components/atoms/RichText/RichText.module.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
&.ol,
1111
& p,
1212
&.p {
13-
@apply mb-20;
13+
@apply mb-8;
1414
}
1515

1616
& ul,
@@ -62,26 +62,26 @@
6262
/* Heading Styles */
6363
& h1,
6464
&.h1 {
65-
@apply mb-20;
65+
@apply mb-10;
6666
}
6767

6868
& h2,
6969
&.h2 {
70-
@apply mb-20;
70+
@apply mb-10;
7171
}
7272

7373
& h3,
7474
&.h3 {
75-
@apply mb-20;
75+
@apply mb-10;
7676
}
7777

7878
& h4,
7979
&.h4 {
80-
@apply mb-12;
80+
@apply mb-10;
8181
}
8282

8383
& h5,
8484
&.h5 {
85-
@apply mb-12;
85+
@apply mb-10;
8686
}
8787
}

components/molecules/ButtonGroup/ButtonGroup.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.buttonGroup {
2-
@apply mb-40;
2+
@apply mb-12;
33

44
&.horizontal {
55
@apply flex;

components/molecules/Navigation/Navigation.module.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
.navigation {
2-
@apply pt-8;
3-
42
& > ul {
53
@apply flex;
64

components/organisms/Footer/Footer.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.footer {
2-
@apply py-40 border-t;
2+
@apply py-8 border-t;
33

44
& .footerMenu {
55
& > ul {

components/organisms/Header/Header.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ export default function Header() {
1818
const {menus} = useContext(MenuContext)
1919
return (
2020
<header className={styles.header}>
21-
<div className="container flex items-center justify-end">
22-
<div className="relative pb-16">
23-
<AlgoliaSearch
24-
useHistory={true}
25-
usePlaceholder={true}
26-
className="ml-auto"
27-
/>
28-
</div>
21+
<div className={styles.search}>
22+
<AlgoliaSearch
23+
useHistory={true}
24+
usePlaceholder={true}
25+
className="ml-auto"
26+
/>
2927
</div>
30-
<div className="container px-4 lg:px-0 flex items-center justify-between">
28+
<div className={styles.navigation}>
3129
<Logo />
3230
<Navigation
3331
menu={menus?.primary_menu}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
.header {
2-
@apply sticky top-0 py-20 transition-all z-50 border-b shadow;
2+
@apply sticky top-0 py-4 transition-all z-50 border-b shadow bg-gray-100;
33

4-
background-color: #f7f7f7;
4+
& .search {
5+
@apply container mb-8;
6+
}
7+
8+
& .navigation {
9+
@apply container px-4 lg:px-0 flex items-center justify-between;
10+
}
511
}

components/organisms/Hero/Hero.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function Hero({
3131
className={cn(styles.hero, className)}
3232
style={{
3333
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
34-
'--image-url': `url(${backgroundImage})`,
34+
'--image-url': `url(${backgroundImage.url})`,
3535
'--image-tint-color': `#00000020`,
3636
'--image-fallback-color': `#000`
3737
}}
@@ -56,7 +56,7 @@ export default function Hero({
5656
}
5757

5858
Hero.propTypes = {
59-
backgroundImage: PropTypes.string,
59+
backgroundImage: PropTypes.object,
6060
body: PropTypes.string,
6161
className: PropTypes.string,
6262
ctaText: PropTypes.string,

components/organisms/Hero/Hero.module.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.hero {
2-
@apply container px-32 rounded;
2+
@apply mb-12 container px-32 rounded;
33

44
padding-top: 9.125rem;
55
padding-bottom: 9.5rem;
@@ -10,12 +10,17 @@
1010
background-size: cover;
1111

1212
& .content {
13-
/* & .subtitle {
13+
& .subtitle {
14+
@apply text-sm opacity-80 mb-2 text-white;
1415
}
16+
1517
& .title {
18+
@apply font-bold text-xl mb-4 text-white;
1619
}
20+
1721
& .body {
18-
} */
22+
@apply text-white;
23+
}
1924

2025
& .body + .button {
2126
@apply mt-16;

components/organisms/Hero/Hero.stories.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Use this to display a large CTA, usually at the top of a page.
1313
subtitle="Check it out"
1414
title="New Designs"
1515
body="Our amazing new design is here! Get it while it's hot, it won't be hot for long... uh oh, already cooling."
16-
backgroundImage="https://images.unsplash.com/photo-1610991149688-c1321006bcc1?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1110&q=60"
16+
backgroundImage={{
17+
url:
18+
'https://images.unsplash.com/photo-1610991149688-c1321006bcc1?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=1110&q=60'
19+
}}
1720
cta={{icon: 'arrowRight', text: 'Take a look'}}
1821
/>
1922
</Story>

components/organisms/LzbMediaText/LzbMediaText.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.lzbMediaText {
2-
@apply md:grid md:grid-cols-12 md:gap-16;
2+
@apply md:grid md:grid-cols-12 md:gap-16 mb-12;
33

44
& .text,
55
& .media {
6-
@apply col-span-6 p-16 flex flex-col items-start justify-center;
6+
@apply col-span-6 flex flex-col items-start justify-center;
77
}
88

99
& .text {

0 commit comments

Comments
 (0)