-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added portfolio and projects page (#272)
Closes #221
- Loading branch information
Showing
7 changed files
with
320 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: 'Portfolio' | ||
draft: false | ||
description: 'Welcome to my Portfolio!' | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
portfolioitems: | ||
# portfolio category | ||
- title: Coding Projects | ||
portfolioitem: | ||
- name: Project 1 | ||
image: '/images/portfolio/code.jpg' | ||
link: https://gohugo.io/ | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 | ||
status: 'Finished' | ||
start: '2020' | ||
end: '2021' | ||
- name: Project 2 | ||
image: '/images/portfolio/code.jpg' | ||
link: https://gohugo.io/ | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.' | ||
status: 'On Hold' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 | ||
- name: Project 3 | ||
link: https://gohugo.io/ | ||
status: 'Finished' | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 | ||
# portfolio category | ||
- title: Research | ||
portfolioitem: | ||
- name: Project 1 | ||
image: '/images/portfolio/code.jpg' | ||
link: https://gohugo.io/ | ||
description: 'A description' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 | ||
- name: Project 2 | ||
image: '/images/portfolio/code.jpg' | ||
link: https://gohugo.io/ | ||
description: 'A description' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 | ||
- name: Project 3 | ||
image: '/images/portfolio/code.jpg' | ||
link: https://gohugo.io/ | ||
description: 'A description' | ||
tags: | ||
- Tag 1 | ||
- Tag 2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{{ define "main" }} | ||
|
||
{{ range $index, $elemen:= .Site.Data.portfolio.portfolioitems }} | ||
<div | ||
class="post {{ with .Site.Params.doNotLoadAnimations }} | ||
. | ||
{{ else }} | ||
animated fadeInDown | ||
{{ end }}" | ||
> | ||
<div class="post-content"> | ||
<div class="post-title"> | ||
<h2>{{ .title }}</h2> | ||
</div> | ||
|
||
{{ range $i, $p := .portfolioitem }} | ||
<div class="box-wrapper"> | ||
{{ if .image }} | ||
<div | ||
class="box-image {{ if (modBool $i 2) }} | ||
box-image--right | ||
{{ else }} | ||
box-image--left | ||
{{ end }}" | ||
> | ||
<a href="{{ .link | safeURL }}" target="_blank" rel="noopener"> | ||
<img src="{{ .image | relURL }}" alt="{{ .name | markdownify }}" /> | ||
</a> | ||
</div> | ||
|
||
{{ end }} | ||
<div | ||
class="box {{ if (modBool $i 2) }} | ||
box--left | ||
{{ else }} | ||
box--right | ||
{{ end }}" | ||
> | ||
<h2>{{ .name | markdownify }}</h2> | ||
<div class="info"> | ||
{{ if .status }} | ||
<em class="fas fa-flag-checkered"></em> | ||
<span>{{ .status }}</span> | ||
|
||
{{ end }} | ||
{{ if .venue }} | ||
<em class="fas fa-map-marker-alt"></em> | ||
<span>{{ .venue }}</span> | ||
|
||
{{ end }} | ||
{{ if .start }} | ||
<span>Start:</span> | ||
<span>{{ .start }}</span> | ||
|
||
{{ end }} | ||
{{ if .end }} | ||
<span>End:</span> | ||
<span>{{ .end }}</span> | ||
|
||
{{ end }} | ||
</div> | ||
{{ if .authors }} | ||
<div class="info"> | ||
{{ range .authors }} | ||
<span>{{ . }}</span> | ||
|
||
{{ end }} | ||
</div> | ||
|
||
{{ end }} | ||
<p>{{ .description | markdownify }}</p> | ||
{{ if .link }} | ||
<div class="cta"> | ||
<a class="btn" href="{{ .link | safeURL }}" target="_blank" rel="noopener">Visit Site</a> | ||
</div> | ||
|
||
{{ end }} | ||
<div class="seperator"> | ||
{{ range .tags }} | ||
<p class="tag">{{ . }}</p> | ||
|
||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{ end }} | ||
</div> | ||
</div> | ||
|
||
{{ end }} | ||
|
||
|
||
{{ end }} |