Skip to content

Commit

Permalink
refactor: rename vision to concepts
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill committed Nov 15, 2023
1 parent 364efa1 commit 5b4ff8d
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ const config = {
// right
{
items: [
{
label: 'Vision',
to: '#vision',
},
{
label: 'Features',
to: '#features',
},
{
label: 'Concepts',
to: '#concepts',
},
],
label: 'Overview',
position: 'right',
Expand All @@ -127,7 +127,7 @@ const config = {
title: 'Learn More',
items: [
{
label: 'Learn',
label: 'Docs',
to: '/docs/intro',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IVisionItemProps } from './types';

type IProps = IVisionItemProps;

const VisionItem: FC<IProps> = ({
const ConceptItem: FC<IProps> = ({
title,
SvgComponent,
description,
Expand All @@ -31,4 +31,4 @@ const VisionItem: FC<IProps> = ({
);
};

export default VisionItem;
export default ConceptItem;
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import React, { FC } from 'react';

// components
import Section from '@site/src/components/Section';
import VisionItem from './VisionItem';
import ConceptItem from './ConceptItem';

// images
import feature001Svg from '@site/static/images/feature_001.svg';
import feature002Svg from '@site/static/images/feature_002.svg';
import feature003Svg from '@site/static/images/feature_003.svg';
import concept001Svg from '@site/static/images/concept_001.svg';
import concept002Svg from '@site/static/images/concept_002.svg';
import concept003Svg from '@site/static/images/concept_003.svg';

// styles
import styles from './styles.module.scss';
Expand All @@ -18,11 +18,11 @@ import { IVisionItemProps } from './types';

type IProps = IDefaultSectionProps;

const VisionSection: FC<IProps> = ({ variant }: IProps) => {
const ConceptsSection: FC<IProps> = ({ variant }: IProps) => {
const items: IVisionItemProps[] = [
{
title: 'Not Just For DeFi',
SvgComponent: feature001Svg,
SvgComponent: concept001Svg,
description: (
<>
Kibisis differs from most wallets by focusing on tokens as a utility,
Expand All @@ -32,7 +32,7 @@ const VisionSection: FC<IProps> = ({ variant }: IProps) => {
},
{
title: 'AVM Compatible',
SvgComponent: feature002Svg,
SvgComponent: concept002Svg,
description: (
<>
Kibisis not only works with Algorand, but endeavours to encompass all
Expand All @@ -42,7 +42,7 @@ const VisionSection: FC<IProps> = ({ variant }: IProps) => {
},
{
title: 'Browser Extension',
SvgComponent: feature003Svg,
SvgComponent: concept003Svg,
description: (
<>
Leveraging the security and convenience of browser extensions, Kibisis
Expand All @@ -53,10 +53,10 @@ const VisionSection: FC<IProps> = ({ variant }: IProps) => {
];

return (
<Section id="vision" title="Vision" variant={variant}>
<Section id="concepts" title="Concepts" variant={variant}>
<div className={styles['items-container']}>
{items.map(({ description, SvgComponent, title }, index) => (
<VisionItem
<ConceptItem
description={description}
key={`vision-item-${index}`}
SvgComponent={SvgComponent}
Expand All @@ -68,4 +68,4 @@ const VisionSection: FC<IProps> = ({ variant }: IProps) => {
);
};

export default VisionSection;
export default ConceptsSection;
3 changes: 3 additions & 0 deletions src/components/ConceptsSection/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default } from './ConceptsSection';
export { default as ConceptItem } from './ConceptItem';
export * from './types';
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ComponentProps, ComponentType, ReactElement } from 'react';

interface IVisionItemProps {
interface IConceptItemProps {
SvgComponent: ComponentType<ComponentProps<'svg'>>;
description: ReactElement;
title: string;
}

export default IVisionItemProps;
export default IConceptItemProps;
1 change: 1 addition & 0 deletions src/components/ConceptsSection/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as IVisionItemProps } from './IConceptItemProps';
3 changes: 0 additions & 3 deletions src/components/VisionSection/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/components/VisionSection/types/index.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import React, { FC } from 'react';
import Layout from '@theme/Layout';

// components
import ConceptsSection from '@site/src/components/ConceptsSection';
import FeaturesSection from '@site/src/components/FeaturesSection';
import Header from '@site/src/components/Header';
import Main from '@site/src/components/Main';
import VisionSection from '@site/src/components/VisionSection';

const IndexPage: FC = () => {
const { siteConfig } = useDocusaurusContext();
Expand All @@ -20,9 +20,9 @@ const IndexPage: FC = () => {
<Header />

<Main>
<VisionSection variant="accent" />
<FeaturesSection variant="accent" />

<FeaturesSection variant="primary" />
<ConceptsSection variant="primary" />
</Main>
</Layout>
);
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 5b4ff8d

Please sign in to comment.