forked from extern/homer
Optionnal footer support
This commit is contained in:
parent
672bd42a79
commit
51956c3abd
4
app.css
4
app.css
@ -230,6 +230,10 @@ body {
|
||||
color: #676767;
|
||||
font-size: 0.85rem;
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; }
|
||||
body .no-footer #main-section {
|
||||
margin-bottom: 0; }
|
||||
body .no-footer .footer {
|
||||
display: none; }
|
||||
body .search-bar {
|
||||
position: relative;
|
||||
display: inline-block; }
|
||||
|
10
app.scss
10
app.scss
@ -302,6 +302,16 @@ body {
|
||||
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
|
||||
}
|
||||
|
||||
.no-footer {
|
||||
#main-section {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
@ -6,9 +6,9 @@ title: "Demo homepage"
|
||||
subtitle: "Homer"
|
||||
logo: "assets/logo.png"
|
||||
# icon: "fas fa-skull-crossbones" Optional icon
|
||||
footer: '<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a href="https://vuejs.org/">vuejs</a> & <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i class="fab fa-github-alt"></i></a></p>' # set false if you want to hide it.
|
||||
|
||||
# Optional message
|
||||
#
|
||||
message:
|
||||
# url: https://....
|
||||
style: "is-dark" # See https://bulma.io/documentation/components/message/#colors for styling options.
|
||||
|
@ -13,7 +13,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light']">
|
||||
<div id="app" v-if="config" :class="[isDark ? 'is-dark' : 'is-light', !config.footer ? 'no-footer': '']">
|
||||
<div id="bighead">
|
||||
<section class="first-line">
|
||||
<div v-cloak class="container">
|
||||
@ -104,11 +104,8 @@
|
||||
</section>
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="content has-text-centered">
|
||||
<p>Created with <span class="has-text-danger">❤️</span> with <a href="https://bulma.io/">bulma</a>, <a
|
||||
href="https://vuejs.org/">vuejs</a>
|
||||
& <a href="https://fontawesome.com/">font awesome</a> // Fork me on <a href="https://github.com/bastienwirtz/homer"><i
|
||||
class="fab fa-github-alt"></i></a></p>
|
||||
<div class="content has-text-centered" v-if="config.footer" v-html="config.footer">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user