Skip to content

Commit f5df7ef

Browse files
committed
migrate LegacyCallout to comps
1 parent 51f10a6 commit f5df7ef

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<template>
2+
<div class="tip custom-block legacy-callout">
3+
<p>
4+
This site is in beta.
5+
<a
6+
href="https://github.com/ipfs/docs/issues/new?assignees=&labels=OKR+3%3A+Content+Improvement%2C+docs-ipfs&template=documentation-issue.md&title=%5BDOCS+ISSUE%5D+Beta+Site+Feedback"
7+
target="_blank"
8+
>Submit feedback</a
9+
>
10+
<span v-if="$site.themeConfig.betaTestFormUrl">
11+
or
12+
<a :href="$site.themeConfig.betaTestFormUrl" target="_blank"
13+
>become a tester</a
14+
>
15+
</span>
16+
to help us improve it!
17+
<span v-if="legacyUrl" class="content-status-status">
18+
<br />
19+
<a target="_blank" :href="legacyUrl">View this page on legacy site</a>
20+
</span>
21+
</p>
22+
</div>
23+
</template>
24+
25+
<script>
26+
export default {
27+
computed: {
28+
legacyUrl: function() {
29+
return this.$frontmatter && this.$frontmatter.legacyUrl
30+
}
31+
}
32+
}
33+
</script>
34+
35+
<style lang="stylus" scoped>
36+
.legacy-callout {
37+
background-color: #f6f9fa;
38+
color: #737681;
39+
border-color: #5db5be;
40+
}
41+
42+
@media (min-width: $MQNarrow) {
43+
}
44+
</style>

0 commit comments

Comments
 (0)