Skip to content
Merged

Dev #17

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
3 changes: 0 additions & 3 deletions src/components/BitwayPage/BitwayContainer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
grid-area: bitway-even;
}

.bitway-desktop {
display: grid;
}
.bitway-mobile {
display: none;
}
Expand Down
14 changes: 8 additions & 6 deletions src/components/BitwayPage/Paragraph/Paragraph.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
@import "../../../styles/global.scss";
.bitway-paragraph {
margin-bottom: 20px;
& p {
font-family: $primary-font;
font-size: 25px;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 36px;
line-height: 30px;
letter-spacing: 0em;
text-align: left;
}
& > div > p {
font-family: $primary-font;
font-size: 25px;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 36px;
line-height: 30px;
letter-spacing: 0em;
text-align: left;
padding: 0 80px 20px;
& * {
font-size: 25px;
font-size: 20px;
}
& a {
color: $blue;
Expand Down Expand Up @@ -70,6 +71,7 @@
line-height: 26px;
letter-spacing: 0em;
text-align: left;

}
& > div > p {
font-family: $primary-font;
Expand All @@ -79,7 +81,7 @@
line-height: 26px;
letter-spacing: 0em;
text-align: left;
padding: 0 20px 0px;
padding: 0 20px 0px 0px;
& * {
font-size: 15px;
}
Expand Down
10 changes: 9 additions & 1 deletion src/components/HomePage/HomeContainer/HomeContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ import { Seo, CustomSection } from "../../index"
import "./HomeContainer.scss"

const Home = () => {

const data = useHomePage()

const homeSections = data?.allStrapiHome?.nodes[0]?.sections
const { pageTitle, pageDescription, pageKeywords } = data?.allStrapiHome?.nodes[0].pageMetadata


return (
<Layout>
<Seo title="Home" />
<Seo
title={pageTitle}
description={pageDescription}
keywords={pageKeywords}
/>
<CustomSection sections={homeSections} />
</Layout>
)
Expand Down
5 changes: 5 additions & 0 deletions src/hooks/useHomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const useHomePage = () => {
{
allStrapiHome {
nodes {
pageMetadata {
pageDescription
pageKeywords
pageTitle
}
sections {
title
type
Expand Down
72 changes: 21 additions & 51 deletions src/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,17 @@ type StrapiHome implements Node {
locale: String
): Date
sections: [StrapiHomeSections]
pageMetadata: StrapiHomePageMetadata
strapiId: Int
}

type StrapiHomePageMetadata {
id: Int
pageTitle: String
pageDescription: String
pageKeywords: String
}

type StrapiHomeSections {
id: Int
banner: StrapiHomeSectionsBanner
Expand Down Expand Up @@ -419,33 +427,21 @@ type StrapiBanners implements Node {
type: String
summary: String
published_at(
# Format the date using Moment.js' date tokens, e.g. . See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String
# Returns a string generated with Moment.js' function
fromNow: Boolean
# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
formatString: String
fromNow: Boolean
difference: String
# Configures the locale Moment.js will use to format the date.
locale: String
): Date
created_at(
# Format the date using Moment.js' date tokens, e.g. . See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String
# Returns a string generated with Moment.js' function
fromNow: Boolean
# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
formatString: String
fromNow: Boolean
difference: String
# Configures the locale Moment.js will use to format the date.
locale: String
): Date
updated_at(
# Format the date using Moment.js' date tokens, e.g. . See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String
# Returns a string generated with Moment.js' function
fromNow: Boolean
# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
formatString: String
fromNow: Boolean
difference: String
# Configures the locale Moment.js will use to format the date.
locale: String
): Date
link: StrapiBannersLink
Expand Down Expand Up @@ -668,33 +664,21 @@ type StrapiBlogPage implements Node {
formatString: String

fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
created_at(
formatString: String

fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
updated_at(
formatString: String

fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
pageMetadata: StrapiBlogPagePageMetadata
Expand All @@ -716,49 +700,35 @@ type StrapiContactPage implements Node {
title: String
imageName: String
published_at(
# Format the date using Moment.js' date tokens, e.g. See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String

# Returns a string generated with Moment.js' function
fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
created_at(
# Format the date using Moment.js' date tokens, e.g. See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String

# Returns a string generated with Moment.js' function
fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
updated_at(
# Format the date using Moment.js' date tokens, e.g. See https://momentjs.com/docs/#/displaying/format/ for documentation for different tokens.
formatString: String

# Returns a string generated with Moment.js' function
fromNow: Boolean

# Returns the difference between this date and the current time. Defaults to "milliseconds" but you can also pass in as the measurement "years", "months", "weeks", "days", "hours", "minutes", and "seconds".
difference: String

# Configures the locale Moment.js will use to format the date.
locale: String
): Date
pageMetadata: StrapiContactPagePageMetadata
contactForm: StrapiContactPageContactForm
image: LocalFile
strapiId: Int
}

type StrapiContactPageContactForm {
id: Int
portalId: String
formId: String
}

type StrapiContactPagePageMetadata {
id: Int
pageTitle: String
Expand Down