Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realvjy committed Aug 29, 2021
1 parent 67dd0fc commit 75f18c3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions content/illlustrations/117/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "NEW 117: Ironman"
date: 2020-02-02
date: 2020-12-02
author: "vijay verma"
svg: ./117-ironman.svg
png: ./117-ironman.png
Expand All @@ -9,8 +9,8 @@ category:
- iphone
tags:
- new
- grid
- single
- svg
- sold
---
<li><a href="./117-ironman.svg" download className="btn-svg">SVG</a></li>
<li><a href="/117-ironman.png" download className="btn-png">PNG</a></li>
2 changes: 1 addition & 1 deletion src/components/100-illustrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Challange = () => {
<div className="info">
<h5>{node.frontmatter.title}</h5>
{ node.frontmatter.tags.includes('sold')?
<div className="btns sold"><h4>Sold</h4></div>
<div className="btns sold"><h4>Not available</h4></div>
: <div className="btns">
<a href={node.frontmatter.svg.publicURL} download className="btn-svg">SVG</a>
<a href={node.frontmatter.png.publicURL} download className="btn-png">PNG</a>
Expand Down
9 changes: 7 additions & 2 deletions src/components/featured.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Featured = () => {
}
}
allMarkdownRemark(
sort: { fields: [frontmatter___date], order: DESC }
sort: { fields: [frontmatter___date], order: ASC }
filter: { frontmatter: { featured: { eq: true } } }
) {
edges {
Expand All @@ -26,6 +26,7 @@ const Featured = () => {
title
author
category
tags
svg {
publicURL
}
Expand Down Expand Up @@ -74,10 +75,14 @@ const Featured = () => {

<div className="info">
<h5>{node.frontmatter.title}</h5>
<div className="btns">
{ node.frontmatter.tags.includes('sold')?
<div className="btns sold"><h4>Not available</h4></div>
: <div className="btns">
<a href={node.frontmatter.svg.publicURL} download className="btn-svg">SVG</a>
<a href={node.frontmatter.png.publicURL} download className="btn-png">PNG</a>
</div>

}
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ footer{
}
.sold{
h4{
font-size: 32px;
font-size: 24px;
font-weight: bold;
color: $blue
}
Expand Down

0 comments on commit 75f18c3

Please sign in to comment.