-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dac3aca
commit babaf8d
Showing
8 changed files
with
219 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from 'react'; | ||
import styles from './styles.module.css'; | ||
import Translate from '@docusaurus/Translate'; | ||
|
||
const DownloadWebsites = [ | ||
{ | ||
name: 'GitHub', | ||
Svg: require('@site/static/img/github.svg').default, | ||
url: "https://github.com/TISUnion/Carpet-TIS-Addition/releases", | ||
color: '#24292F', | ||
}, | ||
{ | ||
name: 'CurseForge', | ||
Svg: require('@site/static/img/curseforge.svg').default, | ||
url: "https://legacy.curseforge.com/minecraft/mc-mods/carpet-tis-addition/files", | ||
color: '#F16436', | ||
}, | ||
{ | ||
name: 'Modrinth', | ||
Svg: require('@site/static/img/modrinth.svg').default, | ||
url: "https://modrinth.com/mod/carpet-tis-addition/versions", | ||
color: '#00AF5C', | ||
}, | ||
] | ||
|
||
function DownloadLink({name, Svg, url, color}) { | ||
return ( | ||
<> | ||
<a href={url} className={styles.brandContainer} style={{background: color}}> | ||
<Svg className={styles.downloadSvg}/> | ||
<p>{name}</p> | ||
</a> | ||
</> | ||
); | ||
} | ||
|
||
export default function DownloadLinks() { | ||
return ( | ||
<> | ||
<section className={styles.brandsContainer}> | ||
<h2 className="hero__title text--center"> | ||
<Translate id="homepage.downloads.title"> | ||
Download Mod | ||
</Translate> | ||
</h2> | ||
{DownloadWebsites.map((props, idx) => ( | ||
<DownloadLink key={idx} {...props} /> | ||
))} | ||
</section> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.brandsContainer { | ||
padding: 2rem 0; | ||
width: 100%; | ||
} | ||
|
||
.downloadSvg { | ||
width: 40px; | ||
height: 40px; | ||
margin: 10px; | ||
} | ||
|
||
.brandContainer { | ||
display: flex; | ||
border-radius: 10px; | ||
width: 240px; | ||
margin: 10px auto; | ||
} | ||
|
||
.brandContainer:hover { | ||
text-decoration: none; | ||
} | ||
|
||
.brandContainer p { | ||
color: white; | ||
font-size: 1.2rem; | ||
margin: auto 0 auto 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,5 @@ | |
|
||
.downloadsContainer { | ||
text-align: center; | ||
text-decoration: none; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.