mirror of https://github.com/Lissy93/dashy.git
💻 - Commiting to switch computers...
This commit is contained in:
parent
95c28bb902
commit
1e149894a3
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
slug: hola
|
|
||||||
title: Hola
|
|
||||||
author: Gao Wei
|
|
||||||
author_title: Docusaurus Core Team
|
|
||||||
author_url: https://github.com/wgao19
|
|
||||||
author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4
|
|
||||||
tags: [hola, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
slug: hello-world
|
|
||||||
title: Hello
|
|
||||||
author: Endilie Yacop Sucipto
|
|
||||||
author_title: Maintainer of Docusaurus
|
|
||||||
author_url: https://github.com/endiliey
|
|
||||||
author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
|
|
||||||
tags: [hello, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
Welcome to this blog. This blog is created with [**Docusaurus 2**](https://docusaurus.io/).
|
|
||||||
|
|
||||||
<!--truncate-->
|
|
||||||
|
|
||||||
This is a test post.
|
|
||||||
|
|
||||||
A whole bunch of other information.
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
slug: welcome
|
|
||||||
title: Welcome
|
|
||||||
author: Yangshun Tay
|
|
||||||
author_title: Front End Engineer @ Facebook
|
|
||||||
author_url: https://github.com/yangshun
|
|
||||||
author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4
|
|
||||||
tags: [facebook, hello, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well!
|
|
||||||
|
|
||||||
Delete the whole directory if you don't want the blog features. As simple as that!
|
|
|
@ -67,12 +67,6 @@ module.exports = {
|
||||||
editUrl:
|
editUrl:
|
||||||
'https://github.com/facebook/docusaurus/edit/master/website/',
|
'https://github.com/facebook/docusaurus/edit/master/website/',
|
||||||
},
|
},
|
||||||
blog: {
|
|
||||||
showReadingTime: true,
|
|
||||||
// Please change this to your repo.
|
|
||||||
editUrl:
|
|
||||||
'https://github.com/facebook/docusaurus/edit/master/website/blog/',
|
|
||||||
},
|
|
||||||
theme: {
|
theme: {
|
||||||
customCss: [
|
customCss: [
|
||||||
require.resolve('./src/styles/Colors.scss'),
|
require.resolve('./src/styles/Colors.scss'),
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import clsx from 'clsx';
|
import './../styles/HomepageFeatures.scss';
|
||||||
import styles from './HomepageFeatures.module.css';
|
|
||||||
|
|
||||||
const FeatureList = [
|
const FeatureList = [
|
||||||
{
|
{
|
||||||
title: 'Easy to Use',
|
title: 'Search & Shortcuts',
|
||||||
description: (
|
description: (
|
||||||
<>
|
<>
|
||||||
Docusaurus was designed from the ground up to be easily installed and
|
Quisque ut dolor gravida, placerat libero vel, euismod. Ambitioni dedisse
|
||||||
used to get your website up and running quickly.
|
scripsisse iudicaretur.Donec sed odio operae, eu vulputate felis rhoncus.
|
||||||
|
Nihilne te nocturnum praesidium Palati, nihil urbis vigiliae.
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Focus on What Matters',
|
title: 'Theming',
|
||||||
description: (
|
description: (
|
||||||
<>
|
<>
|
||||||
Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
Docusaurus lets you focus on your docs, and we'll do the chores. Go
|
||||||
|
@ -22,7 +22,7 @@ const FeatureList = [
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Powered by React',
|
title: 'Customizable Layouts',
|
||||||
description: (
|
description: (
|
||||||
<>
|
<>
|
||||||
Extend or customize your website layout by reusing React. Docusaurus can
|
Extend or customize your website layout by reusing React. Docusaurus can
|
||||||
|
@ -32,29 +32,27 @@ const FeatureList = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
function Feature({ title, description }) {
|
function Feature({ title, description, index }) {
|
||||||
|
const side = index % 2 == 0 ? 'left' : 'right';
|
||||||
return (
|
return (
|
||||||
<div className={clsx('col col--4')}>
|
<div className={`feature align-${side}`}>
|
||||||
<div className="text--center">
|
<div className="feature-half">
|
||||||
</div>
|
|
||||||
<div className="text--center padding-horiz--md">
|
|
||||||
<h3>{title}</h3>
|
<h3>{title}</h3>
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="feature-half">
|
||||||
|
<p>Static Asset will go here</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function HomepageFeatures() {
|
export default function HomepageFeatures() {
|
||||||
return (
|
return (
|
||||||
<section className={styles.features}>
|
<section className="home-page-features-wrapper">
|
||||||
<div className="container">
|
{FeatureList.map((props, index) => (
|
||||||
<div className="row">
|
<Feature key={index} index={index} {...props} />
|
||||||
{FeatureList.map((props, idx) => (
|
))}
|
||||||
<Feature key={idx} {...props} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
/* stylelint-disable docusaurus/copyright-header */
|
|
||||||
|
|
||||||
.features {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 2rem 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.featureSvg {
|
|
||||||
height: 200px;
|
|
||||||
width: 200px;
|
|
||||||
}
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
.home-page-features-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 90%;
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 1200px;
|
||||||
|
.feature {
|
||||||
|
display: flex;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
&.align-left { flex-direction: row; }
|
||||||
|
&.align-right { flex-direction: row-reverse; }
|
||||||
|
.feature-half {
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue