Skip to content

Commit db35035

Browse files
committed
Add DevMail link to sidebar
1 parent c51879c commit db35035

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

docs/.vuepress/client.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineClientConfig } from '@vuepress/client'
2+
import Layout from './layouts/Layout.vue'
3+
4+
export default defineClientConfig({
5+
layouts: {
6+
Layout,
7+
},
8+
})

docs/.vuepress/layouts/Layout.vue

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<script setup>
2+
import ParentLayout from '@vuepress/theme-default/layouts/Layout.vue'
3+
</script>
4+
5+
<template>
6+
<ParentLayout>
7+
<template #sidebar-bottom>
8+
<a href="https://devmail.email" target="_blank" class="devmail">
9+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="3210.5263157894738"
10+
height="892.6315789473686" viewBox="0 0 3210.5263157894738 892.6315789473686">
11+
<g transform="scale(10.526315789473685) translate(10, 10)">
12+
<defs id="SvgjsDefs15891"></defs><g id="SvgjsG15892" featureKey="symbolFeature-0" transform="matrix(0.1723220754937478,0,0,0.1723220754937478,-11.71428304312259,-11.71445395582564)" fill="#335eea"><g xmlns="http://www.w3.org/2000/svg"><path d="M137.64,190.279v131.441c0,29.025,23.614,52.64,52.64,52.64h131.441c29.025,0,52.64-23.614,52.64-52.64V190.279 c0-29.025-23.614-52.64-52.64-52.64H190.279C161.254,137.64,137.64,161.254,137.64,190.279z M354.36,190.279v131.441 c0,17.998-14.642,32.64-32.64,32.64H190.279c-17.998,0-32.64-14.642-32.64-32.64V190.279c0-17.998,14.642-32.64,32.64-32.64 h131.441C339.718,157.64,354.36,172.282,354.36,190.279z"></path><path d="M222.78,106.68v-28.7c0-5.523-4.477-10-10-10s-10,4.477-10,10v28.7c0,5.523,4.477,10,10,10S222.78,112.203,222.78,106.68z"></path><path d="M309.22,106.68v-28.7c0-5.523-4.477-10-10-10s-10,4.477-10,10v28.7c0,5.523,4.477,10,10,10S309.22,112.203,309.22,106.68z"></path><path d="M222.78,405.32c0-5.522-4.477-10-10-10s-10,4.478-10,10v28.7c0,5.522,4.477,10,10,10s10-4.478,10-10V405.32z"></path><path d="M289.22,405.32v28.7c0,5.522,4.477,10,10,10s10-4.478,10-10v-28.7c0-5.522-4.477-10-10-10S289.22,399.798,289.22,405.32z"></path><path d="M434.021,202.78h-28.7c-5.523,0-10,4.477-10,10s4.477,10,10,10h28.7c5.523,0,10-4.477,10-10S439.543,202.78,434.021,202.78 z"></path><path d="M434.021,289.22h-28.7c-5.523,0-10,4.478-10,10s4.477,10,10,10h28.7c5.523,0,10-4.478,10-10S439.543,289.22,434.021,289.22 z"></path><path d="M77.979,222.78h28.7c5.523,0,10-4.477,10-10s-4.477-10-10-10h-28.7c-5.523,0-10,4.477-10,10S72.457,222.78,77.979,222.78z"></path><path d="M77.979,309.22h28.7c5.523,0,10-4.478,10-10s-4.477-10-10-10h-28.7c-5.523,0-10,4.478-10,10S72.457,309.22,77.979,309.22z"></path><path d="M206.64,315.36h98.72c5.523,0,10-4.478,10-10v-98.72c0-5.523-4.477-10-10-10h-98.72c-5.523,0-10,4.477-10,10v98.72 C196.64,310.883,201.117,315.36,206.64,315.36z M216.64,216.64h78.72v78.72h-78.72V216.64z"></path></g></g><g id="SvgjsG15893" featureKey="nameFeature-0" transform="matrix(2.2732438323354334,0,0,2.2732438323354334,82.27210891875146,3.3605370059874)" fill="#1b2a4e"><path d="M6.2 6 c3.98 0 7.1 3.12 7.1 6.92 c0 3.96 -3.12 7.08 -7.1 7.08 l-5 0 l0 -14 l5 0 z M6.18 17.240000000000002 c2.68 0 4.12 -1.94 4.12 -4.32 c0 -2.22 -1.44 -4.16 -4.12 -4.16 l-2.06 0 l0 8.48 l2.06 0 z M18.22 17.32 l5.92 0 l0 2.68 l-6.32 0 l-2.52 0 l0 -14 l2.92 0 l5.74 0 l0 2.68 l-5.74 0 l0 2.96 l4.34 0 l0 2.64 l-4.34 0 l0 3.04 z M37.42 6 l3.12 0 l-6.24 14 l-2.64 0 l-6.22 -14 l3.1 0 l4.44 10.42 z M57.14 6 l0 14 l-3 0 l0 -7.44 l-3.26 7.44 l-2.52 0 l-3.22 -7.4 l0 7.4 l-3 0 l0 -14 l2.88 0 l4.62 10.1 l4.62 -10.1 l2.88 0 z M70.72 20 l-1.06 -2.5 l-6.76 0 l-1.06 2.5 l-3.1 0 l6.22 -14 l2.64 0 l6.24 14 l-3.12 0 z M63.92 15.120000000000001 l4.72 0 l-2.36 -5.54 z M78.36000000000001 6 l0 14 l-2.92 0 l0 -14 l2.92 0 z M83.68 17.32 l5.5 0 l0 2.68 l-8.42 0 l0 -14 l2.92 0 l0 11.32 z"></path></g>
13+
</g>
14+
</svg>
15+
<span>Email sandbox for software&nbsp;developers</span>
16+
</a>
17+
</template>
18+
</ParentLayout>
19+
</template>
20+
21+
<style lang="css">
22+
.devmail {
23+
display: flex !important;
24+
flex-direction: column;
25+
align-items: center;
26+
background: #f9f9f9;
27+
border-radius: 4px;
28+
margin: 0 1rem 2rem;
29+
padding: 1rem 2rem 1.5rem;
30+
text-align: center;
31+
transition: background-color 0.2s ease;
32+
}
33+
.devmail:hover {
34+
background: #f5f5f5;
35+
}
36+
.devmail svg {
37+
width: 100%;
38+
max-width: 170px;
39+
height: auto;
40+
margin-bottom: 0.25rem;
41+
}
42+
.devmail span {
43+
line-height: 1.3;
44+
color: #333;
45+
}
46+
</style>

0 commit comments

Comments
 (0)