-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ad component with test results survey
- Loading branch information
1 parent
3fc0c80
commit 8a3022e
Showing
4 changed files
with
67 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,59 @@ | ||
<script setup> | ||
import Icon from "./Icon.vue"; | ||
</script> | ||
|
||
<template> | ||
<div class="ad-component"> | ||
<a target="_blank" href="https://forms.gle/Wfc9c89j78He3Zap9"> | ||
<Icon class="icon" /> | ||
<span | ||
>Share Your Insights: Join Our Survey on Test Reporting Practices!</span | ||
> | ||
<span class="cta">Participate now →</span> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
@keyframes pulse { | ||
0% { | ||
border: 2px solid var(--vp-c-divider); | ||
} | ||
50% { | ||
border: 2px solid var(--vp-c-brand); | ||
} | ||
100% { | ||
border: 2px solid var(--vp-c-divider); | ||
} | ||
} | ||
.ad-component { | ||
margin-bottom: 2rem; | ||
padding: 0.5rem 0.85rem; | ||
border: 2px solid var(--vp-c-brand); | ||
border-radius: 4px; | ||
text-decoration: none; | ||
color: var(--vp-c-text-2); | ||
transition: color 0.4s ease-in-out; | ||
font-size: 0.8rem; | ||
animation: pulse 3s infinite; | ||
} | ||
.ad-component:hover { | ||
color: var(--vp-c-text-1); | ||
} | ||
.ad-component .icon { | ||
display: inline-block; | ||
width: 1rem; | ||
height: 1rem; | ||
margin-right: 2rem; | ||
} | ||
.ad-component .cta { | ||
margin-left: 0.3rem; | ||
text-decoration: underline; | ||
text-underline-offset: 2px; | ||
font-weight: 600; | ||
} | ||
</style> |
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,3 @@ | ||
<template> | ||
📢 | ||
</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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { h } from 'vue' | ||
import '../style/vars.css' | ||
import Theme from 'vitepress/theme' | ||
import AdComponent from './AdComponent.vue' | ||
|
||
export default { | ||
...Theme, | ||
Layout() { | ||
return h(Theme.Layout, null, { | ||
|
||
'doc-before': () => h(AdComponent), | ||
}) | ||
}, | ||
} |
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