button icons

Signed-off-by: PRavaga <trueravaga@gmail.com>
This commit is contained in:
PRavaga 2023-09-07 22:49:18 +04:00
parent 46f5735c0a
commit 5f3da61d1a
No known key found for this signature in database
GPG key ID: 2A5FC2B63150943E
21 changed files with 62 additions and 34 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 B

View file

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View file

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View file

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View file

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View file

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 110 KiB

View file

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View file

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View file

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View file

@ -1,6 +1,12 @@
import React from "react";
import Link from "@docusaurus/Link";
import styles from "./Button.module.css";
const Button = ({ text, link }) => <Link to={link}>{text}</Link>;
const Button = ({ icon, text, link }) => (
<Link className={styles.button} to={link}>
<img src={icon} alt={text} />
{text}
</Link>
);
export default Button;

View file

@ -0,0 +1,21 @@
.button {
display: flex;
gap: 1em;
align-items: center;
justify-content: center;
text-decoration: none;
color: var(--ifm-link-color);
font-weight: 600;
width: 280px;
padding: 2em;
border-radius: 0.625rem;
border: 1px solid var(--ifm-color-emphasis-300);
backdrop-filter: blur(3px);
}
.button:hover {
text-decoration: none;
transition: border-color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
border: 0.0625rem solid var(--ifm-color-primary-lighter);
}

View file

@ -8,7 +8,12 @@ function LearnMore({ links }) {
<h2>Learn more</h2>
<div>
{links.map((link) => (
<Button link={link.link} text={link.name} key={link.name} />
<Button
icon={link.icon}
link={link.link}
text={link.name}
key={link.name}
/>
))}
</div>
</div>

View file

@ -22,25 +22,6 @@
margin-left: 20px;
}
.container > div > a {
display: flex;
align-items: center;
text-decoration: none;
color: var(--ifm-link-color);
font-weight: 600;
width: 280px;
padding: 25px 0px 25px 20px;
border-radius: 0.625rem;
border: 1px solid var(--ifm-color-emphasis-300);
backdrop-filter: blur(3px);
}
.container > div > a:hover {
transition: border-color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
border: 0.0625rem solid var(--ifm-color-primary-lighter);
}
@media (max-width: 900px) {
.container > div {
display: flex;

View file

@ -4,7 +4,8 @@ import styles from "./Projects.module.css";
function Projects({ projects }) {
const colorMode = "light";
return (
<div>
<div className={styles.container}>
<h2>Projects built on Zano:</h2>
<div className={styles.projects}>
{projects.map((project) => (
<a href={project.link} key={project.name}>

View file

@ -1,3 +1,9 @@
.container {
display: flex;
flex-direction: column;
margin-top: 20px;
}
.projects {
display: flex;
margin-top: 20px;

View file

@ -3,9 +3,13 @@ import styles from "./StartPage.module.css";
import StartArticle from "../../components/StartArticle/StartArticle";
import LearnMore from "../../components/LearnMore/LearnMore";
import Projects from "../../components/Projects/Projects";
import zanoTradeLogo from "../../assets/zano-trade_logo_square.png";
import clBridgeLogo from "../../assets/confidential_bridge_logo_square.png";
import bazaarLogo from "../../assets/bazaar_logo_square.png";
import zanoTradeLogo from "../../assets/projects/zano-trade_logo_square.png";
import clBridgeLogo from "../../assets/projects/confidential_bridge_logo_square.png";
import bazaarLogo from "../../assets/projects/bazaar_logo_square.png";
import devIcon from "../../assets/icons/developers_ico.png";
import mineIcon from "../../assets/icons/miners_ico.png";
import stakeIcon from "../../assets/icons/stakers_ico.png";
import userIcon from "../../assets/icons/users_ico.png";
const content = [
{
@ -63,32 +67,36 @@ const content = [
const links = [
{
name: "Developers",
link: "#",
link: "docs/build/overview",
icon: devIcon,
},
{
name: "Users",
link: "#",
link: "docs/use/overview",
icon: userIcon,
},
{
name: "Miners",
link: "#",
link: "docs/mine/overview",
icon: mineIcon,
},
{
name: "Stakers",
link: "#",
link: "docs/stake/overview",
icon: stakeIcon,
},
];
const projects = [
{
name: "Confidential Bridge",
link: "https://bridge.confidentiallayer.com",
logo: clBridgeLogo,
},
{
name: "Zano Trade",
link: "https://trade.zano.org",
logo: zanoTradeLogo,
},
{
name: "Confidential Bridge",
link: "https://bridge.confidentiallayer.com",
logo: clBridgeLogo,
},
{ name: "Bazaar", link: "#", logo: bazaarLogo },
];