Skip to content

Commit

Permalink
made buttons into anchor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
HarveyD committed Jan 7, 2019
1 parent 383d4b0 commit 66cfcb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions components/shared/project-modal/project-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@
border: none;
transition: 0.25s background-color ease-in-out;
cursor: pointer;
text-decoration: none;

.fa {
.fa, .fab {
padding-left: 0.35rem;
}
}
Expand Down Expand Up @@ -152,7 +153,7 @@
overflow: hidden;

.modal-body-container {
flex: none;
flex: 4;

.header-container {
margin: 0;
Expand Down
12 changes: 5 additions & 7 deletions components/shared/project-modal/project-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,20 @@ const renderTechnologies = (skillList: SkillEnum[]) =>
const renderButtons = (url: IUrl) => (
<div className="button-links">
{url.github && (
<button
onClick={() => window.open(url.github)}
<a href={url.github}
className="link-button button-github"
>
Github
<i className="fa fa-github" />
</button>
<i className="fab fa-github" />
</a>
)}
{url.website && (
<button
onClick={() => window.open(url.website)}
<a href={url.website}
className="link-button button-website"
>
Website
<i className="fa fa-link" />
</button>
</a>
)}
</div>
);
Expand Down

0 comments on commit 66cfcb9

Please sign in to comment.