Skip to content

Commit 2e9474a

Browse files
marqbeniamindragosct
authored andcommitted
Feature: docs and landing page restyle (#2143)
* fix(MdRadio): internal radio not being checked (#2063) * fix(MdMenu): unexpected close on item click (#2062) * docs: add funding * test: add a "testURL" field to jest config (#2082) fixes the " SecurityError: localStorage is not available for opaque origins" error message that everyone seems to get on their PRs. Using the solution provided here jestjs/jest#3630 * Docs/restyle (#2139) * Changed 'roboto mono' to 'roboto' * Changed code fund position to bottom right * updates Added ‘supported by Creative Tim’ in About page Added open collective * added links to header * Removed disclaimer, added sponsors, changed footer * Add premium-themes page and link to it from the footer * Added products to premium themes page * Finished premium page * Finished installation/usage/premium-themes section * Installed vue-github-buttons * Added GitHub star button * Added license, download and chat buttons * Changed order in gh star button * Changed page transition * Added vue-toc * Style modified for toc * Added ids on getting started for vue-toc * Added ids on themes-congifuration for vue-toc * Added ids on layouts for vue-toc * Added ids on typography * Added ids on components->app for vue-toc * Added ids on buttomBar for vue-toc * Added ids on Button for vue-toc * Added ids on Card for vue-toc * Added ids on datepicker for vue-toc * Added ids on Dialog for vue-toc * Added ids on Drawer for vue-toc * Added ids on autocomplete for vue-toc * Added ids on Chips for vue-toc * Added ids on Input for vue-toc * Added ids on Icon for vue-toc * Added ids on List for vue-toc * Added ids on Menu for vue-toc * Added ids on speedDial for vue-toc * Added ids on steppers for vue-toc * Added ids on table for vue-toc * Added ids on Tabs for vue-toc * Added ids on toolbar for vue-toc * Added ids on Tooltip for vue-toc * Updated license * Added key to vue-toc * Small change * Changed codeinwp logo * updates * Css changes for logo and gh-button * Added more space between buttons * Removed arrow down & nabber buttons hidden on mobile * style changes, added premium themes in navbar, centered premium themes * Cards change * toc style * Changed style for code-fund * restyle codefund * Restyled home premium section * Commented contribuitors section * Changed Patreon text to Open Collective * Changed home premium background color * Removed open collective * Added link to premium-themes from themes image * Added target blank * Restyled vue-toc * added refs * Responsive changes * Changed margin on title * Added custom development link * Added links from sponsors * lint fix * add margin left
1 parent 429f808 commit 2e9474a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+685
-190
lines changed

FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
patreon: marcosmoura
2+
custom: http://bit.ly/VueMaterialPaypal

docs/app/App.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<main-header />
44

55
<div class="container-wrapper md-layout-row" :class="containerClass">
6-
<main-nav />
6+
<main-nav/>
77

88
<div class="main-container" v-if="loading">
99
<code-loading>Loading page...</code-loading>
@@ -93,7 +93,6 @@
9393
padding-top: 64px;
9494
display: flex;
9595
flex-direction: column;
96-
font-family: "Roboto Mono", monospace;
9796
transition: $md-transition-default;
9897
transition-property: padding-top;
9998

docs/app/components/AdManager.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,23 @@
3636
$ad-responsive-small: 768px;
3737
3838
.ad-manager {
39-
width: calc(100% + 32px);
40-
margin: 0 -16px -16px;
39+
right: 0;
40+
bottom: 0;
41+
border-top-left-radius: 4px;
42+
z-index: 2000;
43+
margin-bottom: 150px;
4144
4245
@media (max-width: $ad-responsive-small) {
4346
display: flex;
4447
}
4548
}
4649
50+
.home-page .ad-manager{
51+
background: #303030;
52+
}
53+
4754
.code-fund {
4855
max-width: 175px;
49-
margin: 0 16px 24px 16px;
5056
padding: 8px;
5157
display: flex;
5258
flex-direction: column;
@@ -74,7 +80,7 @@
7480
@media (max-width: $ad-responsive-big) {
7581
max-width: 530px;
7682
min-height: 100px;
77-
margin: 60px auto 8px;
83+
margin: 0px auto 8px;
7884
float: none;
7985
background: none !important;
8086
}

docs/app/components/PageContainer.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@
4848
margin: 0 auto;
4949
padding: 16px;
5050
transition: .4s $md-transition-default-timing;
51+
transition-property: width;
52+
}
53+
54+
@media(min-width:981px){
55+
.page-container.centered{
56+
57+
margin-right: 280px;
58+
}
59+
5160
}
5261
5362
.page-container-leave-active {
@@ -98,4 +107,20 @@
98107
}
99108
}
100109
}
110+
111+
.ad-manager{
112+
margin-bottom: 0 !important;
113+
position: fixed;
114+
}
115+
116+
@media(max-width: 960px){
117+
.ad-manager{
118+
position: relative;
119+
>>>.code-fund{
120+
float: none;
121+
margin: 0;
122+
123+
}
124+
}
125+
}
101126
</style>

docs/app/i18n/en-US/pages.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ export default {
1010
featuredContent: 'Complete with dynamic themes, on-demand components and all with an easy-to-use API.',
1111
ecosystem: 'Ecosystem',
1212
premium: 'Premium Themes',
13+
custom: 'Custom Development',
1314
viewProject: 'View project',
1415
sponsors: 'Sponsors',
1516
backers: 'Backers',
1617
sponsorsDescription: 'Vue Material does not run under the umbrella of any company or anything like that. It is an independent project created by {0} in his spare time, which has become one of the most used UI Libraries for Vue.js. The development is active and we are working hard to release great things for you.',
17-
beAPatron: 'If you think that this project helped you or your company in any way, you can consider becoming a backer/sponsor on Patreon'
18+
beACollective: 'If you think that this project helped you or your company in any way, you can consider becoming a backer/sponsor on Open Collective'
1819
},
1920
about: {
2021
title: 'About'

docs/app/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import Vue from 'vue'
44
import ga from 'vue-ga'
55
import { sync } from 'vuex-router-sync'
66
import VueMaterial from 'vue-material'
7+
import VueGitHubButtons from 'vue-github-buttons'
8+
import VueToc from 'vue-toc'
9+
10+
Vue.component('vue-toc', VueToc)
11+
12+
import 'vue-github-buttons/dist/vue-github-buttons.css';
713

814
/* App */
915
import App from './App'
@@ -14,6 +20,7 @@ import './components'
1420

1521
Vue.config.productionTip = false
1622
Vue.use(VueMaterial)
23+
Vue.use(VueGitHubButtons)
1724

1825
ga(router, 'UA-85823257-1')
1926
sync(store, router)

docs/app/pages/About.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@
3232
<p>This project started as a side project and became the library as it is today, one of the most used UI Libraries for Vue.js!</p>
3333
</section>
3434

35-
<section class="page-container-section">
35+
<!-- <section class="page-container-section">
3636
<h2 class="md-title">Want to pay me a coffee?</h2>
3737
38-
<p>I don't drink coffee, but I can easily turn this into a strong and bold IPA beer... Or a burger... Or a Redbull! If you think that this project helped you or your company in any way, you can consider become a backer/sponsor on Patreon.</p>
39-
<a href="https://www.patreon.com/bePatron?u=4832202" target="_blank" class="about-patreon">
40-
<img src="/assets/sponsors/patreon.png">
38+
<a href="" target="_blank" class="about-collective">
39+
<img src="/assets/sponsors/opencollective.png">
4140
</a>
42-
</section>
41+
</section> -->
4342

4443
<section class="page-container-section">
4544
<h2 class="md-title">Want to contribute with the Project?</h2>
@@ -69,6 +68,7 @@
6968
<ul>
7069
<li><a href="https://github.com/elviskang" target="_blank">elviskang</a> for donating the npm package name!</li>
7170
<li><a href="https://github.com/brunocastro" target="_blank">Bruno Castro</a> for the awesome Vue Material Logo. <logo-vue-material animated /></li>
71+
<li>Supported by <a href="https://www.creative-tim.com/?ref=vuematerial.io" target="_blank">Creative Tim</a></li>
7272
</ul>
7373
</section>
7474
</page-container>
@@ -122,7 +122,7 @@
122122
vertical-align: middle;
123123
}
124124
125-
.about-patreon {
125+
.about-collective {
126126
max-width: 180px;
127127
display: inline-block;
128128
}

docs/app/pages/Components/App/App.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626

2727
<div class="page-container-section">
28-
<h2>{{ $t('pages.app.regular.title') }}</h2>
28+
<h2 id="regular">{{ $t('pages.app.regular.title') }}</h2>
2929

3030
<p>{{ $t('pages.app.regular.desc1') }}</p>
3131
<i18n tag="note-block" tip path="pages.app.regular.desc2">
@@ -35,35 +35,35 @@
3535
</div>
3636

3737
<div class="page-container-section">
38-
<h2>{{ $t('pages.app.fixed.title') }}</h2>
38+
<h2 id="fixed">{{ $t('pages.app.fixed.title') }}</h2>
3939

4040
<p>{{ $t('pages.app.fixed.desc') }}</p>
4141
<code-example :title="$t('pages.app.fixed.fixedWaterfall')" :component="examples['waterfall']" />
4242
</div>
4343

4444
<div class="page-container-section">
45-
<h2>{{ $t('pages.app.reveal.title') }}</h2>
45+
<h2 id="reveal">{{ $t('pages.app.reveal.title') }}</h2>
4646

4747
<p>{{ $t('pages.app.reveal.desc') }}</p>
4848
<code-example :title="$t('pages.app.reveal.reveal')" :component="examples['reveal']" />
4949
</div>
5050

5151
<div class="page-container-section">
52-
<h2>{{ $t('pages.app.flexible.title') }}</h2>
52+
<h2 id="flexible">{{ $t('pages.app.flexible.title') }}</h2>
5353

5454
<p>{{ $t('pages.app.flexible.desc') }}</p>
5555
<code-example :title="$t('pages.app.flexible.flexible')" :component="examples['flexible']" />
5656
</div>
5757

5858
<div class="page-container-section">
59-
<h2>{{ $t('pages.app.lastRow.title') }}</h2>
59+
<h2 id="lastRow">{{ $t('pages.app.lastRow.title') }}</h2>
6060

6161
<p>{{ $t('pages.app.lastRow.desc') }}</p>
6262
<code-example :title="$t('pages.app.lastRow.fixed')" :component="examples['last-row-fixed']" />
6363
</div>
6464

6565
<div class="page-container-section">
66-
<h2>{{ $t('pages.app.overlap.title') }}</h2>
66+
<h2 id="overlap">{{ $t('pages.app.overlap.title') }}</h2>
6767

6868
<p>{{ $t('pages.app.overlap.desc') }}</p>
6969
<code-example :title="$t('pages.app.overlap.content')" :component="examples['overlap']" />

docs/app/pages/Components/Autocomplete/Autocomplete.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@
1414
</div>
1515

1616
<div class="page-container-section">
17-
<h2>Static Data</h2>
17+
<h2 id="staticData">Static Data</h2>
1818

1919
<p>If you have a small amount of data or if it's static, you can pass the options to <code>md-autocomplete</code> in a simple and intuitive way:</p>
2020
<code-example title="Normal and Dense" :component="examples['autocomplete-static']" />
2121
</div>
2222

2323
<div class="page-container-section">
24-
<h2>Trigger</h2>
24+
<h2 id="trigger">Trigger</h2>
2525

2626
<p>By default the suggestions will appear along with a focus trigger. If you want something less intrusive, you can disable this behaviour by canceling the focus event. If this, the suggestions will appear right after a keystroke:</p>
2727
<code-example title="Focus vs Input" :component="examples['autocomplete-trigger']" />
2828
</div>
2929

3030
<div class="page-container-section">
31-
<h2>Box Layout</h2>
31+
<h2 id="boxLayout">Box Layout</h2>
3232

3333
<p>Autocomplete have types two layouts: Default with floating labels and a boxed layout with inline labels. The box layout will apply a boxed layout with a small elevation, that also works really great as search bar inside a toolbar. Gorgeous:</p>
3434
<code-example title="Works with dense variant too!" :component="examples['autocomplete-box']" />
3535
</div>
3636

3737
<div class="page-container-section">
38-
<h2>Custom Template</h2>
38+
<h2 id="customTemplate">Custom Template</h2>
3939

4040
<note-block alert>This section will assume that you have knowledge of <a href="https://vuejs.org/v2/guide/components.html#Scoped-Slots" target="_blank">Vue Scoped Slots</a>. This will allow you to customize the option list.</note-block>
4141
<p>Autocomplete also accepts a custom template, flexible to accept any HTML element and with an 'empty state' built in. You can also highlight the search term inside the matches, to give a feedback on why that item has been in the results. Awesome:</p>
@@ -44,7 +44,7 @@
4444
</div>
4545

4646
<div class="page-container-section search-algorithms">
47-
<h2>Search Algorithms</h2>
47+
<h2 id="search-algorithms">Search Algorithms</h2>
4848

4949
<p>Vue Material autocomplete comes with 2 ways of search: <a href="https://en.wikipedia.org/wiki/Approximate_string_matching" target="_blank">Fuzzy search</a> and search by whole term. The fuzzy search tries to match the results by approximation, finding patterns inside the available options. This will help with accidental type errors and improve the results. If you think that this may be confusing, you can disable this. Example:</p>
5050
<div class="md-layout md-gutter">
@@ -85,7 +85,7 @@
8585
</div>
8686

8787
<div class="page-container-section">
88-
<h2>Async Options</h2>
88+
<h2 id="async-options">Async Options</h2>
8989

9090
<p>Sometimes the options are inside a database in a remote server. Instead of giving a static data, we can provide a <code>Promise</code> that will resolve with the data from a backend servide, for example. This is great to save Bandwidth on the initial load and to improve the performance. Look at this example:</p>
9191
<code-example title="Spinner Loading" :component="examples['autocomplete-async']" />

docs/app/pages/Components/Avatar/Avatar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</div>
1010

1111
<div class="page-container-section">
12-
<h2>Avatar</h2>
12+
<h2 id="avatar">Avatar</h2>
1313

1414
<p>Avatars can show a single image by default but can also display an icon (using the <code>md-icon</code> component):</p>
1515
<code-example title="Default" :component="examples['regular']" />
@@ -21,14 +21,14 @@
2121
</div>
2222

2323
<div class="page-container-section">
24-
<h2>Initial letter as a placeholder</h2>
24+
<h2 id="initial">Initial letter as a placeholder</h2>
2525

2626
<p>Let's assume that you want to show a list of contacts, but some of them do not have a picture in your database. You can use the initial letter of the contact name as a placeholder. It can even show 2 letters (for compound names) without problems:</p>
2727
<code-example title="Placeholder" :component="examples['placeholder']" />
2828
</div>
2929

3030
<div class="page-container-section">
31-
<h2>Multiple sizes</h2>
31+
<h2 id="multipleSizes">Multiple sizes</h2>
3232

3333
<p>You can specify three different sizes, if you want: Regular, Small or Large. By default the avatar have a regular size.</p>
3434
<code-example title="Sizes" :component="examples['sizes']" />

0 commit comments

Comments
 (0)