-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added a blank nue example project for use with 'create' cli
- Loading branch information
1 parent
f650086
commit 0edb491
Showing
13 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.gz | ||
.env | ||
.dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
:root { | ||
|
||
/* slate gray */ | ||
--gray-100: #f3f4f6; | ||
--gray-200: #e5e7eb; | ||
--gray-300: #d1d5db; | ||
--gray-500: #6b7280; | ||
--gray-800: #1f2937; | ||
--gray-900: #111827; | ||
|
||
/* main color */ | ||
--main-500: #3b82f6; | ||
--main-600: #2563eb; | ||
|
||
/* special colors */ | ||
--marker: #ffff7a; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* CSS reset */ | ||
*, *::before, *::after { | ||
box-sizing: border-box; | ||
} | ||
|
||
/* consistent whitespace */ | ||
ul, ol ,figure, pre { | ||
margin: 2em 0; | ||
} | ||
|
||
/* page layout */ | ||
body { | ||
max-width: 1000px; | ||
margin: 0 auto; | ||
padding: max(4rem, 7.5%) 5% 5% 5%; | ||
|
||
/* global footer */ | ||
> footer { | ||
border-top: 1px solid var(--gray-200); | ||
margin-top: 8rem; | ||
padding-top: 1rem; | ||
text-align: center; | ||
|
||
nav { | ||
a { | ||
color: var(--gray-500); | ||
opacity: .8; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
opacity: 1; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<footer> | ||
<navi :items="navigation.footer"/> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
body { | ||
font-family: -apple-system, BlinkMacSystemFont, Avenir Next, Segoe UI, Roboto; | ||
} | ||
|
||
/* heading and subtitle */ | ||
h1 { | ||
letter-spacing: -0.03em; | ||
font-size: clamp(2rem, 5vw, 2.4rem); | ||
|
||
&, + p { | ||
line-height: 1.3; | ||
margin: 0 auto .2em; | ||
max-width: 40rem; | ||
text-align: center; | ||
text-wrap: balance; | ||
} | ||
|
||
+ p { | ||
font-size: clamp(1em, 5vw, 1.25em); | ||
font-weight: 300; | ||
margin-bottom: 2em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
img { | ||
display: block; | ||
height: auto; | ||
margin: 0 auto 1vw; | ||
width: max(20vw, 10rem); | ||
} | ||
|
||
a { | ||
color: var(--main-500); | ||
text-decoration: none; | ||
|
||
&:hover { | ||
color: var(--main-600); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Nue blank website template | ||
|
||
A (mostly) blank template for the `nue create` command: | ||
|
||
## Links | ||
|
||
- [Template tutorial](https://nuejs.org/docs/tutorial.html) | ||
|
||
- [Installing Nue](https://nuejs.org/docs/installation.html) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Welcome | ||
include: ['home'] | ||
--- | ||
|
||
 | ||
|
||
# Welcome to [Nue](https://nuejs.org/) | ||
|
||
This is a blank Nue project that you can use as a starting point for your own website. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/nuejs-site.json | ||
|
||
globals: ['@global'] | ||
libs: ['@library'] | ||
|
||
native_css_nesting: true | ||
inline_css: true | ||
sections: true | ||
|
||
title_template: 'Nue / %s' | ||
author: Nue | ||
favicon: /img/favicon.png | ||
description: A (mostly) blank Nue project | ||
port: 8083 | ||
|
||
navigation: | ||
footer: | ||
- © Nue: https://nuejs.org/ | ||
target: _blank | ||
rel: noopener noreferrer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters