Skip to content

Commit

Permalink
add thumbnail images (except the Identity (Pi/CMS)'s thumbnail image)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgptr committed Jan 15, 2022
1 parent 5b8535e commit cce2a74
Show file tree
Hide file tree
Showing 13 changed files with 177 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ const TutorialCard = ({
</div>
<div className={styles.desc}>{tutorials[name].desc}</div>
</div>
<div className={styles.image} />
<div
className={classNames(
styles.thumbnail,
styles[tutorials[name].thumbnailImage]
)}
/>
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@
color: var(--grey-5);
}

.image {
background-color: #c4c4c4;
width: 9.2rem;
height: 9.2rem;
min-width: 9.2rem;
margin-left: 2.5rem;
}

.progressBarContainer {
display: flex;
align-items: center;
Expand Down Expand Up @@ -86,6 +78,54 @@
color: var(--grey-5);
}

/* thumnail images */

.thumbnail {
width: 9.2rem;
height: 9.2rem;
min-width: 9.2rem;
margin-left: 2.5rem;
background-repeat: no-repeat;
background-size: 100%;
background-position: center;
}

.decredIntroThumb {
background-image: var(--tutorial-decredIntro-thumb);
}

.lnThumb {
background-image: var(--tutorial-ln-thumb);
}

.powPosThumb {
background-image: var(--tutorial-powPos-thumb);
}

.ticketsThumb {
background-image: var(--tutorial-tickets-thumb);
}

.stakingThumb {
background-image: var(--tutorial-staking-thumb);
}

.blocksThumb {
background-image: var(--tutorial-blocks-thumb);
}

.consensusVotingThumb {
background-image: var(--tutorial-consensusVoting-thumb);
}

.consensusCodeThumb {
background-image: var(--tutorial-consensusCode-thumb);
}

.lifecycleThumb {
background-image: var(--tutorial-lifecycle-thumb);
}

@media screen and (max-width: 1180px) {
.overview {
width: 63.4rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tutorials.decredIntro = {
title: "Decred Intro",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "decredIntroThumb",
slides: [
{
label: (
Expand Down Expand Up @@ -35,6 +36,7 @@ tutorials.ln = {
title: "What is Lightning Network?",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "lnThumb",
slides: [
{
label: <T id="tutorials.ln.label1" m="Backup" />,
Expand Down Expand Up @@ -108,7 +110,8 @@ tutorials.ln = {
tutorials.consensusCode = {
title: "Consensus Code",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
"Small description of decredIntroThumbthe tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "consensusCodeThumb",
slides: [
{
label: <T id="tutorials.consensusCode.label1" m="Consensus Code" />, // TODO
Expand All @@ -125,6 +128,7 @@ tutorials.powPos = {
title: "Hybrid PoW/PoS",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "powPosThumb",
slides: [
{
label: <T id="tutorials.powPos.label1" m="POW" />, // TODO
Expand Down Expand Up @@ -160,6 +164,7 @@ tutorials.tickets = {
title: "Staking and Tickets",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "ticketsThumb",
slides: [
{
label: <T id="tutorials.tickets.label1" m="Time-locking coins" />, // TODO
Expand Down Expand Up @@ -195,6 +200,7 @@ tutorials.staking = {
title: "Core Functions of Staking",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "stakingThumb",
slides: [
{
label: <T id="tutorials.staking.label1" m="New block creation" />, // TODO
Expand Down Expand Up @@ -230,6 +236,7 @@ tutorials.lifecycle = {
title: "Ticket Lifecycle",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "lifecycleThumb",
slides: [
{
label: (
Expand Down Expand Up @@ -298,6 +305,7 @@ tutorials.consensusVoting = {
title: "Consensus Voting",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "consensusVotingThumb",
slides: [
{
label: <T id="tutorials.consensusVoting.label1" m="Overview" />, // TODO
Expand Down Expand Up @@ -348,6 +356,7 @@ tutorials.blocks = {
title: "Block Creation",
desc:
"Small description of the tutorial in 1-2 sentences. Small description of the tutorial in 1-2 sentences. ", // TODO
thumbnailImage: "blocksThumb",
slides: [
{
label: (
Expand Down
13 changes: 13 additions & 0 deletions app/style/icons/tutorials/blocks/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions app/style/icons/tutorials/consensusCode/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions app/style/icons/tutorials/consensusVoting/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions app/style/icons/tutorials/decredIntro/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions app/style/icons/tutorials/lifecycle/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/style/icons/tutorials/ln/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions app/style/icons/tutorials/powPos/thumb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit cce2a74

Please sign in to comment.