layout |
---|
~/layouts/MainPageLayout |
This website has a variety of components such as cards, buttons, announcements, etc. Here you can find examples, descriptions and information on how to use them.
Home Cards are the main Call to Action on the Homepage. They are used as links to other pages on the website.
<home-card to="/about/about-secret-network" vertical>### **Learn about**<br>Secret Network<separator small />
![Community](./img/home-card/learn-about-secret-network.png)
home-card>
<home-card to="/about/about-secret-network" horizontal>### **Explore the**<br>Ecosystem<separator small />
![Node Operator](./img/home-card/explore-the-ecosystem.png)
home-card>
Media Cards are used to share media content such as videos, podcast episodes and blog articles, whether it's Secret Network original content or from an external source but relates to Secret Network.
<media-card tag="podcast" title="Tor Bair on Nugget's News Podcast" src="media-card/image2.png" to="https://www.youtube.com/watch?v=2kttQDQOT3Y" cta="Listen Now">media-card>
Cards are very versatile components, composed by a header, body and footer, and can be used to describe concepts, steps or just link to other pages.
<card>
<template v-slot:header>
![Run](../img/card/run.svg)
template>
#### Node Runner Guide
<template v-slot:footer>
<next-button tag="Read guide"
to="https://build.scrt.network/validators-and-full-nodes/join-validator-mainnet.html">
next-button>
template>
card>
Community cards are used to link Secret Network social media and platforms where the community gets together. (e. g. Telegram, Discord, etc.)
<community-grid name="Discord Chat"
to="https://discord.com/invite/SJK32GY" class="discord">
<template v-slot:icon>
<themed-image>
<g-image light light-colored
src="./img/community-card/discord-black.svg">g-image>
<g-image light light-colored
src="./img/community-card/discord-white.svg">g-image>
themed-image>
template>
community-grid>
As its name suggests, this component is part of a grid of elements such as validators, contributors, members, etc. They are used as links and when hovering over them, the name and tags are displayed.
<grid-item name="Secret Nodes" tag="validator" tagTwo="developer"
to="https://secretnodes.org"
src="grid-item/contributors/image2.png">
grid-item>
Composed by a "next" arrow and a tag, used mostly to link to other pages inside or outside the website.
<next-button tag="See more" to="/podcast">
next-button>
Composed by a "back" arrow and a tag, used mostly to link to the previous page.
<back-button tag="Back to Ecosystem" to="/ecosystem/overview">
back-button>
This announcement occupies 100% of the page width and it's part of the website's layout so it's visible on every page. It's composed by the announcement text and link on the left and an image on the right.
<announcement>
<template v-slot:content-left>
#### Announcement
### Upgrade Complete:<br>Secret Contracts are<br>LIVE on Mainnet!
The secret is out! Privacy-preserving smart contracts are now LIVE on Secret Network. Learn about this launch, our exciting initial apps, our new strategic partnership with Hashed, and what comes next as "programmable privacy" comes to public blockchains.
template>
<template v-slot:content-right>
![](./img/announcement/announcement.png)
template>
announcement>
This announcement occupies 2/3 of the page width and it's part of the website's layout so it's visible on every page. It's composed by the announcement text and link.
<small-announcement>
<template v-slot:content>
#### Announcement
### Secret Network Gets a Secret API!
Chain of Secrets just launched the Secret API for Secret Network as part of our developer community on-boarding efforts. We hope to connect and collaborate with all kinds of secret app builders!
<next-button class="turquoise" tag="Read more"
to="/blog/secret-api/">
next-button>
template>
small-announcement>