Skip to content

Commit

Permalink
Add Pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh73 committed Dec 31, 2020
1 parent aea86e7 commit 8087a3b
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/assets/images/dark-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/light-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/components/portfolio-card/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 56,18 @@ const PortfolioCard = ({ portfolio }) => {
);
}

PortfolioCard.propTypes = {
portfolio: PropTypes.shape({
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
description: PropTypes.string,
tags: PropTypes.array,
role: PropTypes.string,
link: PropTypes.string,
background: PropTypes.string,
image: PropTypes.object,
showBadge: PropTypes.bool
}).isRequired
};

export default PortfolioCard;
2 changes: 1 addition & 1 deletion src/pages/portfolio.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 36,7 @@ const PortfolioPage = () => {
<h1 className="title">Projects</h1>

{data.portfolio.nodes.map((portfolio) => (
<PortfolioCard portfolio={portfolio} />
<PortfolioCard key={portfolio.id} portfolio={portfolio} />
))}
</div>
</Layout>
Expand Down
2 changes: 2 additions & 0 deletions src/styles/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 20,13 @@ $themes: (

// Bootstrap Variables
$primary: #158ff3;
$dark: #3f3855;
$activeColor: $primary;
$font-family-sans-serif: "HK Grotesk", sans-serif;
$font-family-monospace: "Anonymous Pro", monospace;
$theme-colors: (
"primary": $primary,
"dark": $dark,
);
$hamburger-padding-x: 0px;
$hamburger-padding-y: 5px;
Expand Down
44 changes: 37 additions & 7 deletions src/styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 11,25 @@ body {
position: relative;
font-family: $font-family-sans-serif;
font-size: 1rem;

&.light {
background-image: url("./../assets/images/light-pattern.svg");

header,
.overlay-menu__overlay {
transition: all 300ms ease-in-out;
background-image: url("./../assets/images/light-pattern.svg");
}
}

&.dark {
background-image: url("./../assets/images/dark-pattern.svg");

header,
.overlay-menu__overlay {
background-image: url("./../assets/images/dark-pattern.svg");
}
}
}

p {
Expand Down Expand Up @@ -135,7 154,7 @@ button:focus {
}

.nav-link {
background: rgba(0, 0, 0, 0.1);
// background: rgba(0, 0, 0, 0.1);
border-radius: 0.5rem;
padding: 1rem;
width: 100%;
Expand Down Expand Up @@ -348,10 367,18 @@ button:focus {
}
}

.nav-mobile {
.nav-link {
transition: all 300ms ease-in-out;
background-color: themed("backgroundColor");
box-shadow: 0px 15px 20px themed("shadowColor");
}
}

a.btn-resume {
box-shadow: 0px 15px 20px themed("shadowColor");
transition: all 300ms ease-in-out;
background-color: rgba(153, 153, 153, 0.1);
background-color: themed("backgroundColor");
box-shadow: 0px 15px 20px themed("shadowColor");
color: themed("contentTextColor");
font-weight: bold;

Expand All @@ -378,10 405,13 @@ button:focus {
border-bottom-right-radius: 0.5rem;
}

.portfolio-body {
.badge {
background-color: themed("headerTextColor");
color: themed("contentBackgroundColor");
.portfolio-card {
box-shadow: 0px 15px 20px themed("shadowColor");
.portfolio-body {
.badge {
background-color: themed("headerTextColor");
color: themed("contentBackgroundColor");
}
}
}

Expand Down

0 comments on commit 8087a3b

Please sign in to comment.