1
Fork 0

Add card test and font awesome

This commit is contained in:
Jake Howard 2019-01-12 11:02:04 +00:00
parent 01f2e866db
commit 2d690a2bbc
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 27 additions and 0 deletions

View file

@ -7,8 +7,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
{{ partial "style.html" "css/materialize.css" }} {{ partial "style.html" "css/materialize.css" }}
{{ partial "style.html" "css/font-awesome.css" }}
</head> </head>
<body> <body>
<div class="container">
<div class="row">
<div class="col s3">
<div class="card">
<div class="card-image">
<img src="images/sample-1.jpg" />
<span class="card-title">Card Title</span>
<a class="btn-floating halfway-fab waves-effect waves-light red"><i class="fas fa-plus"></i></a>
</div>
<div class="card-content">
<p>I am a very simple card. I am good at containing small bits of information. I am convenient because I require little markup to use effectively.</p>
</div>
</div>
</div>
</div>
</div>
{{ partial "script.html" "js/materialize.js" }} {{ partial "script.html" "js/materialize.js" }}
</body> </body>
</html> </html>

5
package-lock.json generated
View file

@ -4,6 +4,11 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": {
"version": "5.6.3",
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.6.3.tgz",
"integrity": "sha512-s5PLdI9NYgjBvfrv6rhirPHlAHWx+Sfo/IjsAeiXYfmemC/GSjwsyz1wLnGPazbLPXWfk62ks980o9AmsxYUEQ=="
},
"materialize-css": { "materialize-css": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/materialize-css/-/materialize-css-1.0.0.tgz", "resolved": "https://registry.npmjs.org/materialize-css/-/materialize-css-1.0.0.tgz",

View file

@ -15,6 +15,7 @@
}, },
"homepage": "https://github.com/RealOrangeOne/social-landing#readme", "homepage": "https://github.com/RealOrangeOne/social-landing#readme",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.6.3",
"materialize-css": "^1.0.0" "materialize-css": "^1.0.0"
} }
} }

View file

@ -2,8 +2,12 @@
set -e set -e
rm -rf public/
mkdir -p static/build mkdir -p static/build
cp -r node_modules/materialize-css/dist/* static/build/ 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/
hugo -v --stepAnalysis --gc hugo -v --stepAnalysis --gc