Skip to content

Commit

Permalink
style: more branding styles and update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
yld-weng committed Nov 7, 2022
1 parent 8573604 commit 8b21b1c
Show file tree
Hide file tree
Showing 14 changed files with 265 additions and 250 deletions.
24 changes: 21 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ To contribute contents such as blog posts, visualisations, and documentation, pl

### Blog post

- [Guide on contribute blog posts](https://dataviz.shef.ac.uk/docs/22/03/2020/contribute-blog-post)
- See the guide for how to contribute blog post on [website](https://dataviz.shef.ac.uk/docs/22/03/2020/contribute-blog-post) or [local markdown file](./content/docs/2020-03-22-datavizhub-guide/index.mdx).

### Documentation

Expand All @@ -121,7 +121,7 @@ All markdown files and resources for the document should be placed under the dir

### Visualisation

- [How to contribute visualisation?](https://dataviz.shef.ac.uk/docs/21/07/2021/Contribute-visualisation)
- See the guide for how to contribute visualisation on [website](https://dataviz.shef.ac.uk/docs/21/07/2021/Contribute-visualisation) or [local markdown file](./content/docs/2021-07-21-Contribute-visualisation/index.mdx).

[coc]: https://github.com/researchdata-sheffield/dataviz-hub2/blob/master/CODE-OF-CONDUCT.md
[issue]: https://github.com/researchdata-sheffield/dataviz-hub2/issues
Expand All @@ -131,4 +131,22 @@ All markdown files and resources for the document should be placed under the dir

### Styles

Place global variables in the file `src/css/_variables.scss` and use it in any scss files like `var.$varibale-name`.
Place global variables in the file `src/css/_variables.scss` and use it in any scss files in the format of `var.$varibale-name`.

You may wish to use the [react-reveal](https://www.react-reveal.com/) package to add some animations to your contributed pages. Sometimes the following order of HTML elements would not render the content correctly:

```mdx
import { Fade } from "react-reveal";

<div>
<Fade>...contents</Fade>
</div>
```

To solve this problem, move the `<Fade>` tag one level above:

```mdx
<Fade>
<div>...contents</div>
</Fade>
```
14 changes: 4 additions & 10 deletions content/docs/2020-07-04-LearningPath-Lab/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,31 +58,31 @@ import { TiChevronLeft, TiChevronRight } from "react-icons/ti";
<a
href="#sec1"
anchor
className="hover:text-brand-blue cursor-pointer py-2 mx-3"
className="hover:bg-brand-blue cursor-pointer py-2 mx-3"
style={{ background: "none" }}
>
Introduction
</a>
<a
href="#sec2"
anchor
className="hover:text-brand-blue cursor-pointer py-2 mx-3"
className="hover:bg-brand-blue cursor-pointer py-2 mx-3"
style={{ background: "none" }}
>
R
</a>
<a
href="#sec3"
anchor
className="hover:text-brand-blue cursor-pointer py-2 mx-3"
className="hover:bg-brand-blue cursor-pointer py-2 mx-3"
style={{ background: "none" }}
>
Python
</a>
<a
href="#sec4"
anchor
className="hover:text-brand-blue cursor-pointer py-2 mx-3"
className="hover:bg-brand-blue cursor-pointer py-2 mx-3"
style={{ background: "none" }}
>
Matlab
Expand Down Expand Up @@ -130,8 +130,6 @@ import { TiChevronLeft, TiChevronRight } from "react-icons/ti";
</Fade>
</div>

{" "}

<div id="sec2" className="flex-wrap lg:min-h-80 mt-24">
<Fade duration={1200}>
<p className="text-brand-purple font-bold text-5xl leading-10">R</p>
Expand Down Expand Up @@ -468,8 +466,6 @@ import { TiChevronLeft, TiChevronRight } from "react-icons/ti";
</Fade>
</div>

{" "}

<div id="sec3" className="flex-wrap lg:min-h-80 mt-24">
<Fade duration={1200}>
<p className="text-brand-purple font-bold text-5xl leading-8">Python</p>
Expand Down Expand Up @@ -730,8 +726,6 @@ import { TiChevronLeft, TiChevronRight } from "react-icons/ti";
</Fade>
</div>

{" "}

<div id="sec4" className="flex-wrap lg:min-h-50 mt-16">
<Fade>
<p className="text-brand-purple font-bold text-5xl leading-8">Matlab</p>
Expand Down
Loading

0 comments on commit 8b21b1c

Please sign in to comment.