-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove marketing blocks from PRODUCT mode home page #2780
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a183a5d
wip
fiskus 5f27acc
fix background heights
fiskus 77c3bc1
remove Docs and Blog
fiskus 09a4482
add changelog entry
fiskus 96cf04a
Merge branch 'master' of github.com:quiltdata/quilt into product-no-m…
fiskus f885c1f
simplify condition
fiskus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -24,23 +24,27 @@ import UseQuilt from './UseQuilt' | |
export default function Landing({ location }) { | ||
const cfg = Config.useConfig() | ||
const { q: query = '' } = parseSearch(location.search) | ||
const showMarketingBlocks = cfg.mode !== 'LOCAL' && cfg.mode !== 'PRODUCT' | ||
return ( | ||
<Layout> | ||
<MetaTitle /> | ||
<React.Suspense fallback={null}> | ||
<LinkedData.CatalogData /> | ||
</React.Suspense> | ||
{cfg.mode !== 'LOCAL' && <Dots />} | ||
{cfg.mode !== 'LOCAL' && ( | ||
<Dots style={{ height: cfg.mode === 'PRODUCT' ? '1109px' : undefined }} /> | ||
)} | ||
{cfg.mode === 'PRODUCT' && <Buckets query={query} />} | ||
{cfg.mode === 'LOCAL' ? <LocalMode /> : <Showcase />} | ||
{cfg.mode !== 'LOCAL' && <UseQuilt />} | ||
{cfg.mode !== 'LOCAL' && <Logos />} | ||
{cfg.mode !== 'LOCAL' && <CaseStudies />} | ||
{cfg.mode !== 'LOCAL' && <Testimonials />} | ||
{cfg.mode !== 'LOCAL' && <Platform />} | ||
{cfg.mode !== 'LOCAL' && <Highlights />} | ||
{cfg.mode === 'LOCAL' && <LocalMode />} | ||
{showMarketingBlocks && <Showcase />} | ||
{showMarketingBlocks && <UseQuilt />} | ||
{showMarketingBlocks && <Logos />} | ||
{showMarketingBlocks && <CaseStudies />} | ||
{showMarketingBlocks && <Testimonials />} | ||
{showMarketingBlocks && <Platform />} | ||
{showMarketingBlocks && <Highlights />} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could wrap these into a fragment and keep only one check before it, e.g.:
no big deal tho, up to you |
||
{cfg.mode === 'MARKETING' && <Pricing />} | ||
{cfg.mode !== 'LOCAL' && <Contribute />} | ||
{showMarketingBlocks && <Contribute />} | ||
{cfg.mode === 'MARKETING' && <StickyFooter />} | ||
</Layout> | ||
) | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we should keep the documentation link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aneesh asked to remove it. I thought we should keep it too.
But after removing all marketing blocks docs link in the footer become visible now, and probably redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, we have docs links in-place where something goes wrong and user should want to check the docs :)