forked from FlowFuse/node-red-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FlowFuse#1026 from FlowFuse/workshop-advert
Events Banner - Allow for advertising of Dashboard events in the docs
- Loading branch information
Showing
4 changed files
with
68 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<script setup> | ||
import AdvertBanner from '../../components/AdvertBanner.vue'; | ||
import DefaultTheme from 'vitepress/theme' | ||
const { Layout } = DefaultTheme | ||
</script> | ||
|
||
<template> | ||
<Layout> | ||
<template #layout-top> | ||
<AdvertBanner href="https://flowfuse.com/webinars/2024/workshop-dashboard/"> | ||
<b>Dashboard 2.0 Workshop: </b> Join us for a free workshop | ||
on how to use Dashboard 2.0 in Node-RED on July 2nd - <span class="underline">Register Now</span> | ||
</AdvertBanner> | ||
</template> | ||
</Layout> | ||
</template> |
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 |
---|---|---|
|
@@ -32,4 +32,8 @@ img + em { | |
|
||
.vp-doc h3 { | ||
margin-bottom: 16px; | ||
} | ||
|
||
.underline { | ||
text-decoration: underline; | ||
} |
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,43 @@ | ||
<template> | ||
<a class="advert-banner" :href="href"> | ||
<slot></slot> | ||
</a> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
href: { | ||
type: String, | ||
required: true | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
body { | ||
--vp-layout-top-height: 42px; | ||
} | ||
.advert-banner { | ||
height: var(--vp-layout-top-height); | ||
line-height: var(--vp-layout-top-height); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
background-color: var(--vp-c-flowfuse); | ||
text-align: center; | ||
color: var(--vp-button-brand-text); | ||
z-index: 15; | ||
font-size: 0.875rem; | ||
} | ||
.advert-banner:hover { | ||
cursor: pointer; | ||
background-color: var(--vp-c-flowfuse-dark); | ||
} | ||
.VPContent { | ||
margin-top: var(--vp-layout-top-height); | ||
} | ||
</style> |