Skip to content

Commit b084bf0

Browse files
committed
docs: add mappia advertisement
1 parent 6f0604d commit b084bf0

File tree

2 files changed

+98
-1
lines changed

2 files changed

+98
-1
lines changed

docs/.vitepress/theme/MappiaAd.vue

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<template>
2+
<div class="mappia-ad">
3+
<a href="https://mappia.io" target="_blank" rel="noopener noreferrer">
4+
<div class="mappia-ad-header">
5+
<img src="https://docs.mappia.io/logo.svg" alt="Mappia" class="mappia-ad-logo" />
6+
<span class="mappia-ad-title">Mappia</span>
7+
</div>
8+
<span class="mappia-ad-desc">Run Magento in production on your own Kubernetes cluster.</span>
9+
<span class="mappia-ad-btn">Learn more</span>
10+
</a>
11+
</div>
12+
</template>
13+
14+
<style scoped>
15+
.mappia-ad {
16+
margin-top: 2rem;
17+
border-top: 1px solid var(--vp-c-divider);
18+
padding-top: 1.5rem;
19+
}
20+
21+
.mappia-ad a {
22+
display: flex;
23+
flex-direction: column;
24+
align-items: flex-start;
25+
gap: 8px;
26+
text-decoration: none;
27+
color: inherit;
28+
border-radius: 8px;
29+
padding: 16px 12px;
30+
background: var(--vp-c-bg-soft);
31+
transition: border-color 0.25s;
32+
border: 1px solid transparent;
33+
line-height: 1.5;
34+
}
35+
36+
.mappia-ad a:hover {
37+
border-color: var(--vp-c-divider);
38+
}
39+
40+
.mappia-ad-header {
41+
display: flex;
42+
align-items: center;
43+
gap: 8px;
44+
}
45+
46+
.mappia-ad-logo {
47+
width: 20px;
48+
height: auto;
49+
}
50+
51+
.mappia-ad-title {
52+
font-size: 13px;
53+
font-weight: 600;
54+
color: var(--vp-c-text-1);
55+
line-height: 1.4;
56+
}
57+
58+
.mappia-ad-desc {
59+
font-size: 12px;
60+
line-height: 1.5;
61+
color: var(--vp-c-text-2);
62+
}
63+
64+
.mappia-ad-btn {
65+
display: inline-block;
66+
font-size: 12px;
67+
font-weight: 500;
68+
color: var(--vp-c-brand);
69+
border: 1px solid var(--vp-c-brand);
70+
border-radius: 4px;
71+
padding: 4px 12px;
72+
margin-top: 4px;
73+
transition: background 0.25s, color 0.25s;
74+
}
75+
76+
.mappia-ad a:hover .mappia-ad-btn {
77+
background: var(--vp-c-brand);
78+
color: #fff;
79+
}
80+
81+
.mappia-ad-label {
82+
font-size: 11px;
83+
font-weight: 500;
84+
letter-spacing: 0.02em;
85+
color: var(--vp-c-text-3);
86+
text-transform: uppercase;
87+
}
88+
</style>

docs/.vitepress/theme/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import DefaultTheme from 'vitepress/theme';
2+
import { h } from 'vue';
3+
import MappiaAd from './MappiaAd.vue';
24

35
import './custom.css';
46

5-
export default DefaultTheme;
7+
export default {
8+
extends: DefaultTheme,
9+
Layout() {
10+
return h(DefaultTheme.Layout, null, {
11+
'aside-outline-after': () => h(MappiaAd),
12+
});
13+
},
14+
};

0 commit comments

Comments
 (0)