Skip to content
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

Move "Media About Morphir" panels to "Morphir Homepage" #156

Open
4 tasks
mcleo-d opened this issue Mar 10, 2023 · 0 comments
Open
4 tasks

Move "Media About Morphir" panels to "Morphir Homepage" #156

mcleo-d opened this issue Mar 10, 2023 · 0 comments
Assignees

Comments

@mcleo-d
Copy link
Member

mcleo-d commented Mar 10, 2023

Move "Media About Morphir" panels to "Morphir Homepage"

Scope of Work

Media About Morphir

screencapture-morphir-finos-org-docs-media-2023-03-13-10_41_43

Morphir Homepage

screencapture-morphir-finos-org-2023-03-13-10_42_22

Initial Guidance

  • The homepage content of the Morphir website is found in the Docusaurus project here website/src/pages/index.tsx
  • The following section at line 36 renders the homepage content as JSX components.
export default function Home(): JSX.Element {
	return (
		<Layout description={'Morphir Home Page'}>
			<HomepageHeader />
			<main>
				<HomepageFeatures />
			</main>
		</Layout>
	)
}
  • A new component should be added to <main> for rendering the moved media content
  • Create a new component called <MediaPanel> in website/src/components and add to <main>

Component and Homepage Example Scaffold

  • The following is a scaffold for creating a new <MedialPanel> component
import React from 'react'

export default function MediaPanel(): JSX.Element {
	return (
		<div>
			Hello World
		</div>
	)
}
  • The following is scaffold for adding the <MedialPanel> component to the homepage
export default function Home(): JSX.Element {
	return (
		<Layout description={'Morphir Home Page'}>
			<HomepageHeader />
			<main>
				<HomepageFeatures />
				<MediaPanel />
			</main>
		</Layout>
	)
}
@mcleo-d mcleo-d changed the title Roland Microsite Changes - JavaScript and Docusaurus Move "Media About Morphir" panels to "Morphir Homepage" Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants