Skip to content

Commit df12061

Browse files
tolokobanpgetta
authored andcommitted
78/pre launch feedbacks (#78)
* Second round of feedbacks - (22) Scales grid on laptop screen is too wide, you have to scroll to the right. It should fit on screen - (37) Footer needs a 30px padding around the main content - (40) The message that confirms the newsletter registration is too big on phones. - Homepage is on / now * Fix homepage --------- Co-authored-by: Pavlo Getta <pavlo.getta@openbraininstitute.org>
1 parent ac16ac1 commit df12061

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/LandingPage/content/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function useSanityContentRTF(sectionIndex: EnumSection): ContentForRichTe
5858
const section = getSection(sectionIndex);
5959
// In Sanity, we use only the last word of the actual slug.
6060
// `/welcome/home` is referenced as `home` in Sanity.
61-
const slug = section.slug.split('/').pop();
61+
const slug = section.slug.split('/').pop() || '/';
6262
const query = `*[_type=="pages"][slug.current=="${slug}"][0]{
6363
content[] {
6464
...,

src/components/LandingPage/content/hero.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function useSanityContentForHero(sectionIndex: EnumSection): ContentForHe
4545
const section = getSection(sectionIndex);
4646
// Sanity onl uses th last pat of the slug.
4747
// `/welcome/news` becomes `news`.
48-
const slug = section.slug.split('/').pop();
48+
const slug = section.slug.split('/').pop() || '/';
4949

5050
return (
5151
useSanity(
@@ -55,7 +55,6 @@ export function useSanityContentForHero(sectionIndex: EnumSection): ContentForHe
5555
"backgroundType": mediaType,
5656
"imageURL": headerImage.asset->url,
5757
"videoURL": headerVideo,
58-
"content": introduction,
5958
"next": scrollCatcher,
6059
"posterURL": posterImage.asset->url,
6160
"posterWidth": posterImage.asset->metadata.dimensions.width,

0 commit comments

Comments
 (0)