1
Fork 0

Add realistic content to card

This commit is contained in:
Jake Howard 2019-01-16 20:55:28 +00:00
parent 6b120ecc7c
commit db30275f49
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 28 additions and 10 deletions

View file

@ -1,6 +1,8 @@
---
title: GitHub
account: RealOrangeOne
account_url: https://github.com/realorangeone
icon: fab fa-github
---
My GitHub account

View file

@ -0,0 +1 @@
{{ default "@" .Params.account_prefix }}{{ .Params.account }}

View file

@ -1,11 +1,10 @@
<div class="card hoverable">
<div class="card-image">
<img src="images/sample-1.jpg" />
<a class="btn-floating halfway-fab waves-effect waves-light red"><i class="fas fa-plus"></i></a>
<a href="{{ .Params.account_url }}">
<div class="card hoverable">
<i class="card-icon {{ .Params.icon }} fa-7x"></i>
<div class="card-content">
<span class="card-title" style="margin-bottom: -8px">{{ .Title }}</span>
<span class="card-title username"><h6>{{ partial "account-name.html" . }}</h6></span>
<p>{{ .Summary }}</p>
</div>
</div>
<div class="card-content">
<span class="card-title" style="margin-bottom: -8px">{{ .Title }}</span>
<span class="card-title"><h6>{{ .Params.account }}</h6></span>
<p>{{ .Summary }}</p>
</div>
</div>
</a>

View file

@ -10,4 +10,6 @@ cp -r node_modules/materialize-css/dist/* static/build/
cp -r node_modules/@fortawesome/fontawesome-free/css/all.min.css static/build/css/font-awesome.css
cp -r node_modules/@fortawesome/fontawesome-free/webfonts static/build/
cp static/src/* static/build
hugo -v --stepAnalysis --gc

14
static/src/index.scss Normal file
View file

@ -0,0 +1,14 @@
$primary: #E85537;
.card {
text-align: center;
color: black;
.card-icon {
margin-top: 24px;
}
.username {
color: $primary;
}
}