Skip to content

Commit

Permalink
Update footer + homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Apr 30, 2024
1 parent c78cc14 commit da2da46
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 410 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const config = {
title: '21TORR',
items: [
{
label: 'Work with us',
label: 'Join our team',
href: 'https://www.21torr.com/career',
},
{
Expand Down
43 changes: 22 additions & 21 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
import React, {ReactElement} from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';
import MountainImage from "@site/static/img/undraw_docusaurus_mountain.svg";
import TreeImage from "@site/static/img/undraw_docusaurus_tree.svg";
import ReactImage from "@site/static/img/undraw_docusaurus_react.svg";

import joinImage from "@site/static/img/home-join.jpg";
import helpImage from "@site/static/img/home-help.jpg";
import placeImage from "@site/static/img/home-place.jpg";

import React, {type ReactNode} from "react";
import clsx from 'clsx';
import Link from "@docusaurus/Link";


type FeatureItem = {
title: string;
svg: ReactElement;
description: JSX.Element;
image: ReactNode;
description: ReactNode;
};

const FeatureList: FeatureItem[] = [
{
title: 'Easy to Use',
svg: <MountainImage className={styles.featureSvg} role="img" />,
title: 'All in one place',
image: <img src={placeImage} alt="Photo from coffee house in Jakarta, Indonesia" />,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
This website contains all documentation for all of our open-source tools.
</>
),
},
{
title: 'Focus on What Matters',
svg: <TreeImage className={styles.featureSvg} role="img" />,
title: 'Help appreciated',
image: <img src={helpImage} alt="Photo of a building during construction" />,
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.
The docs can be edited by everyone. Feel welcome to write docs or create issues about missing / unclear topics in the <Link href="https://github.com/21TORR/docs">repository</Link>.
</>
),
},
{
title: 'Powered by React',
svg: <ReactImage className={styles.featureSvg} role="img" />,
title: 'Work with us',
image: <img src={joinImage} alt="Photo from Stuttgart, Germany" />,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
You like our components? Come <Link href="https://www.21torr.com/career">join our team</Link> and work with us to make them even better.
</>
),
},
];

function Feature({title, svg, description}: FeatureItem) {
function Feature({title, image, description}: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">{svg}</div>
<div className={`text--center ${styles.featureImage}`}>{image}</div>
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<p>{description}</p>
Expand Down
21 changes: 14 additions & 7 deletions src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
.features {
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
display: flex;
align-items: center;
padding: 2rem 0;
width: 100%;
}

.featureSvg {
height: 200px;
width: 200px;
.featureImage {
height: auto;
width: 300px;
display: block;
margin-inline: auto;
margin-bottom: 8px;

img {
border-radius: 10px;
}
}
5 changes: 5 additions & 0 deletions src/globals.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
declare module "*.module.css";
declare module "*.module.scss";

declare module "*.jpg" {
const value: string;
export default value;
}
Binary file added static/img/home-help.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/home-join.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/home-place.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
171 changes: 0 additions & 171 deletions static/img/undraw_docusaurus_mountain.svg

This file was deleted.

170 changes: 0 additions & 170 deletions static/img/undraw_docusaurus_react.svg

This file was deleted.

40 changes: 0 additions & 40 deletions static/img/undraw_docusaurus_tree.svg

This file was deleted.

0 comments on commit da2da46

Please sign in to comment.