Add realistic content to card
This commit is contained in:
parent
6b120ecc7c
commit
db30275f49
5 changed files with 28 additions and 10 deletions
|
@ -1,6 +1,8 @@
|
|||
---
|
||||
title: GitHub
|
||||
account: RealOrangeOne
|
||||
account_url: https://github.com/realorangeone
|
||||
icon: fab fa-github
|
||||
---
|
||||
|
||||
My GitHub account
|
||||
|
|
1
layouts/partials/account-name.html
Normal file
1
layouts/partials/account-name.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ default "@" .Params.account_prefix }}{{ .Params.account }}
|
|
@ -1,11 +1,10 @@
|
|||
<a href="{{ .Params.account_url }}">
|
||||
<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>
|
||||
</div>
|
||||
<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"><h6>{{ .Params.account }}</h6></span>
|
||||
<span class="card-title username"><h6>{{ partial "account-name.html" . }}</h6></span>
|
||||
<p>{{ .Summary }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -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
14
static/src/index.scss
Normal file
|
@ -0,0 +1,14 @@
|
|||
$primary: #E85537;
|
||||
|
||||
.card {
|
||||
text-align: center;
|
||||
color: black;
|
||||
|
||||
.card-icon {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.username {
|
||||
color: $primary;
|
||||
}
|
||||
}
|
Reference in a new issue