-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* stachign code * adding cards * adding more card content * more card updates * more styles * finishing design * fixing padding * more plan id's * simplifying bar * fixing free card * clean up * adding version tracker * pr callouts * adding lilypad 2.0 (#401) * adding lilypad 2.0 * client --------- Co-authored-by: Nick Grato <[email protected]> * loading section * more marketing page designs and new utility classes * adding legacy section and breaking up the form component in the email section. * making the grid section * adding slider * adding assets * finishing touches * fixing chf price * fixing build * pr clean up * new pages: * staching code * more styles. * pr callouts * organizing dependancies * fixing file name --------- Co-authored-by: Nick Grato <[email protected]>
- Loading branch information
Showing
17 changed files
with
661 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@use 'styles/core/boilerplate' as *; | ||
|
||
.wrapper { | ||
display: flex; | ||
justify-content: center; | ||
padding: 0 18px; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
max-width: $container-max-width; | ||
} | ||
|
||
.header { | ||
padding: 60px 0 40px; | ||
border-bottom: 2px solid $color-background-overlay; | ||
|
||
@include tablet-down { | ||
padding: 40px 0 20px; | ||
} | ||
} | ||
|
||
.preview { | ||
&_wrapper { | ||
@include tablet-down { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
} | ||
&_container { | ||
@include tablet-down { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 40px; | ||
max-width: 540px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import styles from './Blog.module.scss'; | ||
import BlogPreview from '../BlogPreview/BlogPreview'; | ||
import { BlogT } from 'types'; | ||
|
||
type BlogPropsT = { | ||
blogData: BlogT; | ||
}; | ||
|
||
const Blog = ({ blogData }: BlogPropsT) => ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.container}> | ||
<section className={styles.header}> | ||
<h1 className="heading-xxl">{blogData.name}</h1> | ||
</section> | ||
|
||
<section className={styles.preview_wrapper}> | ||
<div className={styles.preview_container}> | ||
{blogData.posts.map((post) => ( | ||
<BlogPreview key={post.sys.id} post={post} /> | ||
))} | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default Blog; |
55 changes: 55 additions & 0 deletions
55
marketing/components/modules/Blog/BlogPost/BlogPost.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@use 'styles/core/boilerplate' as *; | ||
|
||
.wrapper { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.header { | ||
a { | ||
@include primary-link; | ||
@include body-sm; | ||
} | ||
} | ||
|
||
.bread_crumb { | ||
margin-bottom: 24px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
max-width: $container-max-width; | ||
padding: 40px 18px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 18px; | ||
} | ||
|
||
.attributes { | ||
display: flex; | ||
justify-content: space-between; | ||
@include body-md-semi-bold; | ||
@include tablet-down { | ||
flex-direction: column; | ||
gap: 8px; | ||
} | ||
} | ||
|
||
.post { | ||
@include body-md(); | ||
|
||
& > p { | ||
margin-bottom: 12px; | ||
text-indent: 40px; | ||
} | ||
} | ||
|
||
.back_button { | ||
margin-right: 18px; | ||
|
||
@include tablet-down { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { BlogPostT } from 'types'; | ||
import styles from './BlogPost.module.scss'; | ||
import Bar from '@Shared/Bar/Bar'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { RoutesE } from 'types/Routes'; | ||
import { useRouter } from 'next/router'; | ||
import { documentToReactComponents } from '@contentful/rich-text-react-renderer'; | ||
import { Button } from '@mozilla/lilypad-ui'; | ||
type BlogPostPropsT = { | ||
rootLink?: string; | ||
post: BlogPostT; | ||
}; | ||
|
||
const BlogPost = ({ post, rootLink = 'Blog' }: BlogPostPropsT) => { | ||
const router = useRouter(); | ||
const onBackClick = () => { | ||
router.push(RoutesE.BLOG); | ||
}; | ||
|
||
return ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.container}> | ||
<section className={styles.header}> | ||
<div className={styles.bread_crumb}> | ||
<Button | ||
icon="chevron-left" | ||
category="primary_outline" | ||
size="small" | ||
onClick={onBackClick} | ||
classProp={styles.back_button} | ||
/> | ||
<Link className="primary-link" href={RoutesE.BLOG}> | ||
{rootLink} | ||
</Link> | ||
<span className="body-sm"> {'>'} </span> | ||
<Link className="primary-link" href={`/blog/${post.slug}`}> | ||
{post.title} | ||
</Link> | ||
</div> | ||
<Bar /> | ||
<h1 className="heading-xl mb-18-dt mb-8-mb">{post.title}</h1> | ||
<div className={styles.attributes}> | ||
<p>{post.subtitle}</p> | ||
<p>{post.date}</p> | ||
</div> | ||
</section> | ||
|
||
<section className={styles.image}> | ||
<Image | ||
src={post.featuredImage.url} | ||
height={550} | ||
width={1200} | ||
alt={post.imageAlt} | ||
/> | ||
</section> | ||
|
||
<section className={styles.post}> | ||
{documentToReactComponents(post.post.json)} | ||
</section> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default BlogPost; |
88 changes: 88 additions & 0 deletions
88
marketing/components/modules/Blog/BlogPreview/BlogPreview.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
@use 'styles/core/boilerplate' as *; | ||
|
||
.wrapper { | ||
display: flex; | ||
justify-content: center; | ||
|
||
@include tablet-down { | ||
width: 250px; | ||
} | ||
|
||
@include mobile-down { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.container { | ||
background: transparent; | ||
text-align: left; | ||
border: 0; | ||
margin-top: 20px; | ||
width: 100%; | ||
max-width: $container-max-width; | ||
display: flex; | ||
transition: 0.5s ease; | ||
|
||
@include tablet-down { | ||
flex-direction: column; | ||
} | ||
|
||
&:hover { | ||
cursor: pointer; | ||
@include tablet-up { | ||
color: $color-interaction-primary; | ||
} | ||
|
||
.image { | ||
@include tablet-up { | ||
transform: scale(1.03); | ||
transition: 0.5s ease; | ||
} | ||
} | ||
|
||
.content { | ||
@include tablet-up { | ||
margin-left: 15px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.content { | ||
margin: 20px 20px 20px 0; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
justify-content: center; | ||
transition: 0.5s ease; | ||
|
||
@include tablet-down { | ||
gap: 8px; | ||
} | ||
} | ||
|
||
.image { | ||
flex-shrink: 0; | ||
width: 250px; | ||
height: 250px; | ||
transition: 0.5s ease; | ||
|
||
@include tablet-up { | ||
margin: 20px 20px 20px 0; | ||
} | ||
|
||
@include mobile-down { | ||
flex-shrink: 1; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.cta { | ||
display: none; | ||
@include tablet-down { | ||
display: initial; | ||
text-align: center; | ||
margin-top: 20px; | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
marketing/components/modules/Blog/BlogPreview/BlogPreview.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import styles from './BlogPreview.module.scss'; | ||
import { BlogPostPreviewT } from 'types'; | ||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { Button } from '@mozilla/lilypad-ui'; | ||
|
||
type BlogPreviewPropsT = { | ||
post: BlogPostPreviewT; | ||
}; | ||
|
||
const BlogPreview = ({ post }: BlogPreviewPropsT) => ( | ||
<Link href={`/blog/${post.slug}`}> | ||
<div className={styles.wrapper}> | ||
<div className={styles.container}> | ||
<div className={styles.image}> | ||
<Image | ||
src={post.thumbnailImage.url} | ||
alt={post.imageAlt} | ||
width={550} | ||
height={550} | ||
/> | ||
</div> | ||
<div className={styles.content}> | ||
<h3 className="heading-lg">{post.title}</h3> | ||
<p className="body-md-bold">{post.subtitle}</p> | ||
<p className="body-sm">{post.date}</p> | ||
<p className="body-md">{post.preview}</p> | ||
<div className={styles.cta}> | ||
<Button | ||
classProp="width-100" | ||
text="Read More" | ||
label="presentational" | ||
category="primary_outline" | ||
type="submit" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
|
||
export default BlogPreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Blog/Blog'; |
3 changes: 0 additions & 3 deletions
3
marketing/components/shared/MobileCarousel/MobileCarousel.module.scss
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.