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

Updated front page #25

Merged
merged 2 commits into from
Aug 9, 2024
Merged
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
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'LM Commons',
tagline: 'Community developed packages for the Laminas MVC',
tagline: 'Community developed packages for Laminas MVC and Mezzio',
favicon: 'img/favicon.ico',

// Set the production url of your site here
Expand Down
16 changes: 16 additions & 0 deletions src/components/HomepageFeatures/Feature.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Heading from "@theme/Heading";
import clsx from "clsx";

export function Feature({Svg, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}
33 changes: 33 additions & 0 deletions src/components/HomepageFeatures/FeatureList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export const FeatureList = [
{
title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
</>
),
},
{
title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
</>
),
},
];

21 changes: 21 additions & 0 deletions src/components/HomepageFeatures/Package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Heading from "@theme/Heading";
import clsx from "clsx";
import Link from "@docusaurus/core/lib/client/exports/Link";

export function Package({title, description, href}) {
return (
<div className={clsx('col col--4 margin-top--md')}>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
<div className={styles.buttons}>
<Link className="button button--primary"
to={href}>
Documentation
</Link>
</div>
</div>
);
}

26 changes: 26 additions & 0 deletions src/components/HomepageFeatures/PackageCard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import clsx from "clsx";
import Heading from "@theme/Heading";
import styles from "./styles.module.css";
import Link from "@docusaurus/core/lib/client/exports/Link";

export function PackageCard({title, description, href}) {
return (
<div className={clsx('card-demo col col--4 margin-bottom--md')}>
<div className="card shadow--md ">
<div className="card__header text--center">
<Heading as='h3'>{title}</Heading>
</div>
<div className="card__body">
<p>
{description}
</p>
</div>
<div className="card__footer">
<div className={styles.buttons}>
<Link className="button button--primary" to={href}>Documentation</Link>
</div>
</div>
</div>
</div>
);
}
60 changes: 60 additions & 0 deletions src/components/HomepageFeatures/PackageList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
export const PackageList= [
{
title: 'LmcUser',
description: (
<>
LmcUser is a user registration and authentication module for Laminas MVC. LmcUser provides the foundations for
adding user authentication and registration to your Laminas site.<br/>
It is designed to be very simple and easy to extend.
</>
),
href: 'https://lm-commons.github.io/LmcUser/',
},
{
title: 'LmcRbac',
description: (
<>
Role-based access control module to provide additional features on top of Laminas\Permissions\Rbac
</>
),
href: 'https://lm-commons.github.io/LmcRbac/',
},
{
title: 'LmcRbacMvc',
description: (
<>
LmcRbacMvc is a role-based access control Laminas MVC module to provide additional
features on top of Laminas\Permissions\Rbac
</>
),
href: 'https://lm-commons.github.io/LmcRbacMvc/',
},
{
title: 'LmcCors',
description: (
<>
LmcCors is a simple Laminas MVC module that helps you to deal with Cross-Origin Resource Sharing (CORS).
</>
),
href: 'https://lm-commons.github.io/LmcCors/',
},
{
title: 'LmcMail',
description: (
<>
LmcMail is an email service module that provides the ability to use the View Manager of a Laminas MVC
application and the installed View Helper plugins to render HTML emails.
</>
),
href: 'https://lm-commons.github.io/LmcMail/',
},
{
title: 'LmcAdmin',
description: (
<>
Admin framework for Laminas MVC
</>
),
href: 'https://lm-commons.github.io/LmcAdmin/',
},
];
168 changes: 4 additions & 164 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
@@ -1,174 +1,14 @@
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
import Link from '@docusaurus/Link';

const PackageList = [
{
title: 'LmcUser',
description: (
<>
LmcUser is a user registration and authentication module for Laminas. LmcUser provides the foundations for
adding user authentication and registration to your Laminas site. It is designed to be very simple and easy
to extend.
</>
),
href: 'https://lm-commons.github.io/LmcUser/',
},
{
title: 'LmcCors',
description: (
<>
LmcCors is a simple Laminas MVC module that helps you to deal with Cross-Origin Resource Sharing (CORS).
</>
),
href: 'https://lm-commons.github.io/LmcCors/',
},
{
title: 'LmcRbacMvc',
description: (
<>
LmcRbacMvc is a role-based access control Laminas MVC module to provide additional
features on top of Laminas\Permissions\Rbac
</>
),
href: 'https://lm-commons.github.io/LmcRbacMvc/',
},
{
title: 'LmcMail',
description: (
<>
LmcMail is an email service module that provides the ability to use the View Manager of a Laminas MVC
application and the installed View Helper plugins to render HTML emails.
</>
),
href: 'https://lm-commons.github.io/LmcMail/',
},
{
title: 'LmcRbac',
description: (
<>
Role-based access control module to provide additional features on top of Zend\Permissions\Rbac
</>
),
href: 'https://lm-commons.github.io/LmcRbac/',
},
{
title: 'LmcAdmin',
description: (
<>
LmcAdmin Module for Laminas Framework
</>
),
href: 'https://lm-commons.github.io/LmcAdmin/',
},
];

/*
const FeatureList = [
{
title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
</>
),
},
{
title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
</>
),
},
];

*/

/*
function Feature({Svg, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}
*/

/*
function Package({title, description, href}) {
return (
<div className={clsx('col col--4 margin-top--md')}>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
<div className={styles.buttons}>
<Link className="button button--primary"
to={href}>
Documentation
</Link>
</div>
</div>
);
}

*/

function PackageCard({title, description, href}) {
return (
<div className={clsx('card-demo col col--4 margin-bottom--md')}>
<div className="card shadow--md ">
<div className="card__header text--center">
<Heading as='h3'>{title}</Heading>
</div>
<div className="card__body">
<p>
{description}
</p>
</div>
<div className="card__footer">
<div className={styles.buttons}>
<Link className="button button--primary" to={href}>Documentation</Link>
</div>
</div>
</div>
</div>
);
}
import {PackageList} from "./PackageList";
import {PackageCard} from "./PackageCard";

export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{PackageList.map((props, idx) => (
<>

<PackageCard key={idx} {...props} />

</>
{PackageList.map((props) => (
<PackageCard key={props.title} {...props} />
))}
</div>
</div>
Expand Down