Skip to content

Commit 687bc12

Browse files
authored
Docs Restyle (#2151)
* 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 * Updated footer links (#2145) * Docs/restyle (#2150) * Added dropdown in nabber * Added sponsors * restyled codefund * Codefund restyle * Restyled footer * Restyled footer * Footer restyle on responsive * Add "new" tag and modify logo in footer * Cleaned console.log test texts * Added arrow on dropdown * Modified sponsors and dropdown * Codefund on responsive * Footer restyle on responsive
1 parent 68a49c6 commit 687bc12

File tree

8 files changed

+171
-14
lines changed

8 files changed

+171
-14
lines changed

docs/app/components/PageContainer.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,15 @@
119119
>>>.code-fund{
120120
float: none;
121121
margin: 0;
122-
122+
display: flex;
123+
#cf{
124+
width: 300px !important;
125+
img{
126+
float: left;
127+
margin-right: 10px;
128+
border-radius: 2px;
129+
}
130+
}
123131
}
124132
}
125133
}

docs/app/pages/Home/Home.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,26 @@
141141
margin-left: 8px;
142142
}
143143
144+
#cf{
145+
width: 300px !important;
146+
img{
147+
float: left;
148+
margin-right: 10px;
149+
border-radius: 2px;
150+
}
151+
}
144152
a {
145153
color: #fff !important;
146154
}
147155
}
148156
}
149157
}
150158
}
159+
160+
.main-footer {
161+
margin-left: 0 !important;
162+
h4, p{
163+
color: #3a3a3a
164+
}
165+
}
151166
</style>

docs/app/pages/Home/HomeSponsors.vue

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
<a href="https://www.creative-tim.com/?ref=vuematerial.io" target="_blank">
2020
<img src="/assets/sponsors/creative-tim.png" class="home-sponsors-open-1 logo-2">
2121
</a>
22+
<a href="https://vuetifyjs.com/?ref=vuematerial.io" target="_blank">
23+
<img src="/assets/sponsors/vuetify-logo.webp" class="home-sponsors-open-1 logo-3">
24+
<img src="/assets/sponsors/vuetify-name.webp" class="home-sponsors-open-1 logo-4">
25+
26+
</a>
2227
</div>
2328
<!-- <p>{{ $t('pages.home.beACollective') }}:</p> -->
2429
<!--
@@ -64,6 +69,12 @@
6469
width: calc(100% + 32px);
6570
margin: 0 -16px -16px;
6671
padding-bottom: 28px;
72+
a{
73+
&:hover{
74+
color: transparent !important;
75+
text-decoration: none;
76+
}
77+
}
6778
}
6879
6980
.home-sponsors-open {
@@ -78,6 +89,21 @@
7889
margin-left: 11px;
7990
margin-top: 8px;
8091
}
92+
&.logo-3{
93+
margin-left: 11px;
94+
margin-top: 5px;
95+
width: 30px;
96+
}
97+
&.logo-4{
98+
width: 45px;
99+
margin-top: 10px;
100+
}
101+
@include md-layout-xsmall {
102+
&.logo-3{
103+
margin-top: 10px;
104+
margin-left: 0px;
105+
}
106+
}
81107
}
82108
83109

docs/app/template/MainFooter.vue

Lines changed: 48 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<template>
22
<footer class="main-footer">
33
<div class="main-footer-container">
4-
<div class="main-footer-section">
4+
<div class="main-footer-section" center>
5+
<ul class="md-list">
6+
<h4>About</h4>
7+
<p>Vue Material is simple, lightweight and built exactly according to the Google Material Design specs.</p>
8+
</ul>
59
<ul class="md-list">
10+
<h4>Links</h4>
611
<li>
712
<router-link to="/license">{{ $t('pages.license.title') }}</router-link>
813
</li>
@@ -15,6 +20,7 @@
1520
</ul>
1621

1722
<ul class="md-list">
23+
<h4>More information</h4>
1824
<li>
1925
<router-link to="/about">{{ $t('aboutMaterial') }}</router-link>
2026
</li>
@@ -35,6 +41,8 @@
3541

3642

3743
<div class="main-footer-section">
44+
<logo-vue-material />
45+
3846
<a href="https://github.com/marcosmoura" target="_blank">
3947
{{ $t('madeWith') }} <span class="red">❤</span> {{ $t('by') }} Marcos Moura.
4048
</a>
@@ -63,25 +71,47 @@
6371
@import "~vue-material/theme/engine";
6472
6573
.md-list{
66-
display: inline-block;
74+
display: inline-table;
6775
margin: 10px 0;
76+
max-width: 180px;
6877
+ .md-list{
6978
margin-left: 40px;
7079
}
7180
li{
7281
margin: 5px 0;
7382
}
83+
h4{
84+
margin: 0 0 10px;
85+
padding-bottom: 5px;
86+
// border-bottom: 1px solid #dedede;
87+
}
88+
7489
}
7590
.main-footer {
76-
padding: 0 16px;
91+
padding: 20px 16px;
92+
margin-left: 230px;
7793
position: relative;
94+
7895
z-index: 4;
7996
background-color: md-get-palette-color(grey, 200);
8097
81-
@include md-layout-xsmall {
82-
height: 152px;
98+
@include md-layout-small {
99+
.md-list{
100+
display: block;
101+
margin-left: 0;
102+
}
103+
}
104+
@include md-layout-small {
83105
flex-direction: column;
84106
justify-content: space-around;
107+
margin-left: 0;
108+
.md-list{
109+
display: block;
110+
max-width: unset;
111+
}
112+
}
113+
p{
114+
margin: 0;
85115
}
86116
}
87117
@@ -94,7 +124,7 @@
94124
transition: .3s $md-transition-default-timing;
95125
transition-property: max-width;
96126
97-
@include md-layout-xsmall {
127+
@include md-layout-medium {
98128
flex-direction: column;
99129
justify-content: space-around;
100130
}
@@ -125,6 +155,7 @@
125155
position: relative;
126156
127157
+ .main-footer-section {
158+
text-align: center;
128159
@include md-layout-xsmall {
129160
&:after {
130161
width: 60px;
@@ -152,4 +183,15 @@
152183
color: md-get-palette-color(red, 500);
153184
transition: .3s $md-transition-default-timing;
154185
}
186+
187+
.md-svg-loader {
188+
display: block;
189+
z-index: 3000;
190+
position: relative;
191+
width: 15%;
192+
margin: auto;
193+
text-align: center;
194+
}
195+
196+
155197
</style>

docs/app/template/MainHeader.vue

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,56 @@
7070
Docs
7171
</md-button>
7272

73-
<md-button href="/about">
74-
About
75-
</md-button>
76-
7773
<md-button href="/components/app">
7874
Components
7975
</md-button>
8076

8177
<md-button href="/premium-themes">
8278
Premium themes
8379
</md-button>
80+
<md-menu md-size="medium" md-align-trigger>
81+
<md-button md-menu-trigger>
82+
Ecosystem
83+
84+
<md-icon class="md-size-1x">arrow_drop_down</md-icon>
85+
86+
</md-button>
87+
<md-menu-content>
88+
<md-menu-item>
89+
<router-link to="/getting-started">
90+
Getting started
91+
</router-link>
92+
93+
</md-menu-item>
94+
<md-menu-item>
95+
<router-link to="/about">
96+
About
97+
</router-link>
98+
99+
</md-menu-item>
100+
<md-menu-item>
101+
<a href="https://www.binarcode.com/estimate-project/?ref=vuematarial.io" target="_blank">
102+
Custom development
103+
</a>
104+
</md-menu-item>
105+
<md-menu-item>
106+
<a href="https://github.com/vuematerial/webpack" target="_blank">
107+
Webpack SPA
108+
</a>
109+
</md-menu-item>
110+
<md-menu-item>
111+
<a href="https://github.com/vuematerial/nuxtjs" target="_blank">
112+
Nuxt.js
113+
</a>
114+
</md-menu-item>
115+
116+
<md-menu-item>
117+
<a href="https://codesandbox.io/s/github/vuematerial/examples/tree/master/examples/quick-start" target="_blank">
118+
Codesandbox
119+
</a>
120+
</md-menu-item>
121+
</md-menu-content>
122+
</md-menu>
84123
</div>
85124

86125
<md-button href="http://github.com/vuematerial/vue-material" target="_blank" class="md-icon-button">
@@ -312,5 +351,19 @@
312351
}
313352
}
314353
354+
.md-menu{
355+
margin: 6px 8px;
356+
}
357+
358+
.md-menu-content{
359+
background: #303030;
360+
z-index: 9999;
361+
>>>.md-list-item-content {
362+
a{
363+
color: inherit;
364+
}
365+
}
366+
}
367+
315368
316369
</style>

docs/app/template/MainNavContent.vue

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<router-link to="/themes/prebuilt">{{ $t('pages.themePrebuilt.nav') }}</router-link>
2626
<router-link to="/themes/configuration">{{ $t('pages.themeConfiguration.nav') }}</router-link>
2727
<router-link to="/themes/advanced">{{ $t('pages.themeAdvanced.nav') }}</router-link>
28-
<router-link to="/premium-themes">{{ $t('pages.home.premium') }}</router-link>
28+
<router-link to="/premium-themes" class="premium-themes">{{ $t('pages.home.premium') }} <md-badge class="md-square" md-content="New" /></router-link>
2929
<a href="https://www.binarcode.com/estimate-project/?ref=vuematarial.io" target="_blank">{{ $t('pages.home.custom') }}</a>
3030

3131
</div>
@@ -133,10 +133,8 @@
133133
responsiveLinks(){
134134
if (window.innerWidth < 601) {
135135
this.responsive = true;
136-
console.log('mai mic ');
137136
} else {
138137
this.responsive = false;
139-
console.log('mai mare ');
140138
}
141139
}
142140
}
@@ -145,6 +143,7 @@
145143

146144
<style lang="scss" scoped>
147145
@import "~vue-material/theme/engine";
146+
@import "~vue-material/components/MdLayout/mixins";
148147
149148
.main-nav-content {
150149
a {
@@ -166,4 +165,18 @@
166165
margin-bottom: 16px;
167166
margin-left: 20px;
168167
}
168+
169+
.premium-themes{
170+
display: flex !important;
171+
position: relative;
172+
}
173+
.md-badge{
174+
background: green;
175+
right: -15px;
176+
top: 5px;
177+
@include md-layout-xsmall {
178+
left: 55%;
179+
right: unset;
180+
}
181+
}
169182
</style>
9.5 KB
Loading
1.55 KB
Loading

0 commit comments

Comments
 (0)