Skip to content

fix: nuxtjs.org design #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 48 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
4697b86
add DM fonts
bdrtsky Jun 8, 2021
343f07f
merge
bdrtsky Jun 8, 2021
935abf1
init style fixes
bdrtsky Jun 8, 2021
be01882
:sparkles: (head) move design things to defaultTheme instead of app
Tahul Jun 8, 2021
ef6635a
add body text tokens
bdrtsky Jun 8, 2021
fa84dc3
move hero parallax
bdrtsky Jun 8, 2021
c3171d2
HeroDescription
bdrtsky Jun 8, 2021
e5b03a4
cleanup section titles and description
bdrtsky Jun 9, 2021
9464c06
merge conflict
bdrtsky Jun 9, 2021
30f904d
cleanup section titles and description
bdrtsky Jun 9, 2021
353b5cf
fix buttons
bdrtsky Jun 9, 2021
851da1c
discover dx items
bdrtsky Jun 9, 2021
7354f64
add category label
bdrtsky Jun 9, 2021
ace5990
section content item
bdrtsky Jun 9, 2021
6aad66b
header border and bg; footer; lot of fixes
bdrtsky Jun 9, 2021
239c3c4
fix: parallax
bdrtsky Jun 10, 2021
484b9b5
update primary color
bdrtsky Jun 10, 2021
a981da0
fix sections bgs
bdrtsky Jun 11, 2021
df3901c
fix dark footer text colors
bdrtsky Jun 11, 2021
e3bba30
tokenise body text color; fixes
bdrtsky Jun 11, 2021
c88672d
fix docus aside and toc dark bg
bdrtsky Jun 11, 2021
782a9c0
add DM fonts
bdrtsky Jun 8, 2021
29c8c14
fix(nuxtjs): use typescript
farnabaz Jun 8, 2021
b34f521
init style fixes
bdrtsky Jun 8, 2021
e7580a5
:sparkles: (head) move design things to defaultTheme instead of app
Tahul Jun 8, 2021
2caabe7
add body text tokens
bdrtsky Jun 8, 2021
e181fc5
move hero parallax
bdrtsky Jun 8, 2021
0855f12
HeroDescription
bdrtsky Jun 8, 2021
470b208
cleanup section titles and description
bdrtsky Jun 9, 2021
7236870
merge conflict
bdrtsky Jun 9, 2021
36c8bd3
cleanup section titles and description
bdrtsky Jun 9, 2021
8b5374e
fix buttons
bdrtsky Jun 9, 2021
a074c95
discover dx items
bdrtsky Jun 9, 2021
5b8587c
add category label
bdrtsky Jun 9, 2021
1b3d096
section content item
bdrtsky Jun 9, 2021
9b15fe8
header border and bg; footer; lot of fixes
bdrtsky Jun 9, 2021
536ee23
fix: parallax
bdrtsky Jun 10, 2021
43e4391
update primary color
bdrtsky Jun 10, 2021
1aa0fb2
fix sections bgs
bdrtsky Jun 11, 2021
fff79fe
fix dark footer text colors
bdrtsky Jun 11, 2021
89511c8
tokenise body text color; fixes
bdrtsky Jun 11, 2021
5e75222
fix docus aside and toc dark bg
bdrtsky Jun 11, 2021
aea6767
fix merge conflict
bdrtsky Jun 11, 2021
b462384
fix merge conflict
bdrtsky Jun 11, 2021
81549bc
fix partners banner graqdient color
bdrtsky Jun 14, 2021
c8d0995
init resources page
bdrtsky Jun 14, 2021
c22fb55
init all pages; hero components
bdrtsky Jun 14, 2021
dd08575
Merge branch 'dev' into fix/styles
Tahul Jun 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nuxtjs.org/components/ASelectNative.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<div class="relative">
<select
v-bind="props"
class="select-none"
:class="[{ 'pointer-events-none opacity-50': disabled }, selectClass]"
@input="$emit('input', $event.target.value)"
@focus="handleFocus(true)"
Expand Down
6 changes: 3 additions & 3 deletions nuxtjs.org/components/MPartnersBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default defineComponent({
.dark .partners__slider::before,
.dark .partners__slider::after {
@apply absolute h-24 w-48 z-10;
background: linear-gradient(to right, #01232d 0%, rgba(255, 255, 255, 0) 20%);
background: linear-gradient(to right, #001e26 0%, rgba(255, 255, 255, 0) 20%);
content: '';
}

Expand All @@ -84,7 +84,7 @@ export default defineComponent({
@screen sm {
.dark .partners__slider::before,
.dark .partners__slider::after {
background: linear-gradient(to right, #01232d 0%, rgba(255, 255, 255, 0) 50%);
background: linear-gradient(to right, #001e26 0%, rgba(255, 255, 255, 0) 50%);
}
}

Expand All @@ -98,7 +98,7 @@ export default defineComponent({
@screen md {
.dark .partners__slider::before,
.dark .partners__slider::after {
background: linear-gradient(to right, #01232d 0%, rgba(255, 255, 255, 0) 100%);
background: linear-gradient(to right, #001e26 0%, rgba(255, 255, 255, 0) 100%);
}
}

Expand Down
38 changes: 38 additions & 0 deletions nuxtjs.org/components/PageHero.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<template>
<div class="relative pt-24 pb-32 bg-gray-100 dark:bg-secondary-darkest">
<div class="relative d-container-content">
<h1 class="text-display-3 font-serif mb-4">{{ title }}</h1>
<p class="text-body-xl max-w-3xl">{{ description }}</p>
</div>

<img
loading="lazy"
:src="`/img/page-hero/dark/mountains.svg`"
class="absolute -bottom-1px left-0 w-full h-24 object-fill light:hidden pointer-events-none"
alt="A landscape image"
/>
<img
loading="lazy"
:src="`/img/page-hero/light/mountains.svg`"
class="absolute -bottom-1px left-0 w-full h-24 object-fill dark:hidden pointer-events-none"
alt="A landscape image"
/>
</div>
</template>

<script>
import { defineComponent } from '@nuxtjs/composition-api'

export default defineComponent({
props: {
title: {
type: String,
default: ''
},
description: {
type: String,
default: ''
}
}
})
</script>
25 changes: 25 additions & 0 deletions nuxtjs.org/components/SimplePageHero.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<template>
<div class="overflow-hidden mt-12 mb-6">
<div class="relative d-container-content">
<h1 class="text-display-4 font-serif mb-4">{{ title }}</h1>
<p class="text-body-lg max-w-3xl">{{ description }}</p>
</div>
</div>
</template>

<script>
import { defineComponent } from '@nuxtjs/composition-api'

export default defineComponent({
props: {
title: {
type: String,
default: ''
},
description: {
type: String,
default: ''
}
}
})
</script>
11 changes: 11 additions & 0 deletions nuxtjs.org/content/design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
template: page
layout:
fluid: true
---
::page-hero
title: NuxtJS Design Kit
description: "NuxtJS is an MIT licensed open source project and completely free to use.
You can freely use our logos as long as you mention NuxtJS and link to nuxtjs.org."
---
::
10 changes: 10 additions & 0 deletions nuxtjs.org/content/resources.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
template: page
layout:
fluid: true
---
::simple-page-hero
title: NuxtJS Resources
description: "Discover a panel of resources made by our partners. By using thoses affiliate resources links, you are helping us to maintain and develop the Open Source Framework."
---
::
10 changes: 10 additions & 0 deletions nuxtjs.org/content/team.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
template: page
layout:
fluid: true
---
::page-hero
title: NuxtJS Team
description: "The development of NuxtJS and its ecosystem is guided by an international team. We have a very active and engaged team that is constantly striving to push Nuxt forward."
---
::
10 changes: 10 additions & 0 deletions nuxtjs.org/content/themes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
template: page
layout:
fluid: true
---
::simple-page-hero
title: NuxtJS Themes
description: "Discover a panel of resources made by our partners. By using thoses affiliate resources links, you are helping us to maintain and develop the Open Source Framework."
---
::
10 changes: 10 additions & 0 deletions nuxtjs.org/content/video-courses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
template: page
layout:
fluid: true
---
::simple-page-hero
title: NuxtJS Video Courses
description: "Discover a panel of resources made by our partners. By using thoses affiliate resources links, you are helping us to maintain and develop the Open Source Framework."
---
::
4 changes: 4 additions & 0 deletions nuxtjs.org/static/img/page-hero/dark/mountains.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions nuxtjs.org/static/img/page-hero/light/mountains.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions nuxtjs.org/windi.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default {
colors: {
transparent: 'transparent',
current: 'currentColor',

'primary-green': '#00DC82',
'secondary-surface': '#E5F9FF',
'secondary-lightest': '#B7E1ED',
Expand All @@ -16,13 +15,6 @@ export default {
'secondary-darker': '#003543',
'secondary-darkest': '#012A35',
'secondary-black': '#001E26',
// secondary: '#002E3B',
// 'secondary-lightest': '#95CDDE', // where the heck is lightest? colors are complete mess
// 'secondary-light': '#064A5B',
// 'secondary-dark': '#01232D',
// 'secondary-darker': '#001D25',
// 'secondary-darkest': '#00181F',

terciary: '#B2CCCC', // cloud
'cloud-surface': '#E6F0F0',
'cloud-lightest': '#D1E2E2',
Expand All @@ -33,7 +25,6 @@ export default {
'cloud-darker': '#334040',
'cloud-darkest': '#273131',
'cloud-black': '#1A2121',

black: '#000',
white: '#fff',
blue: colors.lightBlue,
Expand All @@ -42,7 +33,6 @@ export default {
rose: colors.rose,
yellow: colors.amber,
gray: colors.gray

// $colorNeutralWhite: #FFFFFF;
// $colorNeutralBlack: #000000;
// $colorGreenLighter: #80EEC0;
Expand Down