Skip to content

Commit 509e43f

Browse files
rahaugatinux
andauthored
Vue School links (nuxt-community#352)
* docs: add link to Axios Module lesson * Update readme.md Co-authored-by: Sébastien Chopin <[email protected]>
1 parent 990cfb7 commit 509e43f

File tree

5 files changed

+88
-0
lines changed

5 files changed

+88
-0
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
title: 'Axios Module',
33
description: 'Axios Module for Nuxt',
4+
head: [['link', { rel: 'stylesheet', href: '/styles.css' }]],
45
themeConfig: {
56
repo: 'nuxt-community/axios-module',
67
docsDir: 'docs',
Loading
20.9 KB
Loading

docs/.vuepress/public/styles.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
.Promote {
2+
background-color: #edf2f7;
3+
color: #2f495e;
4+
display: flex;
5+
flex-direction: column;
6+
padding: 1rem;
7+
margin-top: 1rem;
8+
margin-bottom: 1rem;
9+
border-radius: .25rem;
10+
}
11+
12+
13+
.Promote:hover {
14+
background-color: #e2e8f0 !important;
15+
text-decoration: none !important;
16+
}
17+
18+
.Promote img {
19+
width: 100%;
20+
height: auto;
21+
border-radius: .25rem;
22+
margin-bottom: .75rem;
23+
}
24+
25+
.Promote .Promote__Content {
26+
font-size: 0.75rem;
27+
margin: 0;
28+
padding: 0;
29+
font-weight: 500;
30+
}
31+
32+
.Promote .Promote__Content__Title {
33+
font-size: 1.25rem;
34+
color: #2f495e;
35+
font-weight: 500;
36+
margin-top: 1rem;
37+
margin-bottom: 0;
38+
}
39+
40+
.Promote .Promote__Content__Description {
41+
line-height: 1.625;
42+
font-size: .875rem;
43+
color: #606f7b;
44+
}
45+
46+
.Promote .Promote__Content__Signature {
47+
color: #a0aec0;
48+
font-size: .75rem;
49+
margin: 0;
50+
line-height: 1;
51+
}
52+
53+
@media screen and (min-width: 1020px) {
54+
55+
.Promote {
56+
flex-direction: row;
57+
}
58+
59+
.Promote .Promote__Content {
60+
padding-left: 1rem;
61+
}
62+
63+
64+
.Promote .Promote__Content__Title {
65+
margin: 0;
66+
}
67+
68+
.Promote img {
69+
max-width: 240px !important;
70+
margin-bottom: 0;
71+
}
72+
73+
}
74+

docs/readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,16 @@
2828
* [Examples](https://axios.nuxtjs.org/usage.html)
2929

3030
> 👉 To get started head to [Setup](setup.md) section.
31+
32+
## Online courses
33+
34+
<div>
35+
<a href="https://vueschool.io/lessons/the-axios-module?friend=nuxt" target="_blank" class="Promote">
36+
<img src="/async-data-with-nuxtjs-2x.png" alt="AsyncData Nuxt course by Vue School"/>
37+
<div class="Promote__Content">
38+
<h4 class="Promote__Content__Title">Learn how to use the Axios module with a short video lesson</h4>
39+
<p class="Promote__Content__Description">Get up to speed quickly with Vue School's free video lesson.</p>
40+
<p class="Promote__Content__Signature">Video courses made by VueSchool to support Nuxt.js developpement.</p>
41+
</div>
42+
</a>
43+
</div>

0 commit comments

Comments
 (0)