-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated netlify.toml so that images will only load from same-origin to same bandwidth * Added fullscreen for mock browser * Completed banner recipes
- Loading branch information
Showing
21 changed files
with
881 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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,95 @@ | ||
export interface Item { | ||
id: string; | ||
title: string; | ||
subtitle?: string; | ||
description?: string; | ||
img: string; | ||
credit: { | ||
name: string; | ||
url: string; | ||
}; | ||
} | ||
|
||
export interface Collection { | ||
name: string; | ||
description?: string; | ||
items: Item[] | ||
} | ||
|
||
export const singapore: Collection = { | ||
name: "Singapore", | ||
items: [ | ||
{ | ||
id: "singapore-1", | ||
title: "Marina Bay Sands", | ||
img: "/img/singapore/hu-chen-__cBlRzLSTg-unsplash.jpg", | ||
credit: { | ||
name: "Hu Chen", | ||
url: "https://unsplash.com/@huchenme" | ||
} | ||
}, | ||
{ | ||
id: "singapore-2", | ||
title: "Gardens by the Bay", | ||
img: "/img/singapore/sergio-sala-VbB6HYunm04-unsplash.jpg", | ||
credit: { | ||
name: "Sergio Sala", | ||
url: "https://unsplash.com/@sergiosala" | ||
} | ||
}, | ||
{ | ||
id: "singapore-3", | ||
title: "Fireworks", | ||
img: "/img/singapore/k8-KqkSoXWabJ8-unsplash.jpg", | ||
credit: { | ||
name: "K8", | ||
url: "https://unsplash.com/@k8_iv" | ||
} | ||
}, | ||
{ | ||
id: "singapore-4", | ||
title: "Cloud Forest", | ||
img: "/img/singapore/yuiizaa-september-BvG0I_bv4BI-unsplash.jpg", | ||
credit: { | ||
name: "Yuiizaa September", | ||
url: "https://unsplash.com/@yuiizaa" | ||
} | ||
}, | ||
{ | ||
id: "singapore-5", | ||
title: "Jewel", | ||
img: "/img/singapore/joe-green-9yoPzIns9G4-unsplash.jpg", | ||
credit: { | ||
name: "Joe Green", | ||
url: "https://unsplash.com/@jg" | ||
} | ||
}, | ||
{ | ||
id: "singapore-6", | ||
title: "Chinatown", | ||
img: "/img/singapore/lily-banse-e1Rc28R4qoA-unsplash.jpg", | ||
credit: { | ||
name: "Lily Banse", | ||
url: "https://unsplash.com/@lvnatikk" | ||
} | ||
}, | ||
{ | ||
id: "singapore-7", | ||
title: "Urban", | ||
img: "/img/singapore/hanson-lu-ShUDNP6EV-I-unsplash.jpg", | ||
credit: { | ||
name: "Hanson Lu", | ||
url: "https://unsplash.com/@hansonluu" | ||
} | ||
}, | ||
{ | ||
id: "singapore-8", | ||
title: "Town", | ||
img: "/img/singapore/zhu-hongzhi-tzFVsg6nWtM-unsplash.jpg", | ||
credit: { | ||
name: "Zhu Hongzhi", | ||
url: "https://unsplash.com/@zhuzhutrain" | ||
} | ||
} | ||
] | ||
} |
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,56 @@ | ||
<template> | ||
<div> | ||
<alert type="warning"> | ||
Keep a look out on this space. Constantly adding more recipes over the next few months. | ||
<a href="https://github.com/fuxingloh/vue-horizontal" target="_blank">Give this repo a star, it will help out greatly!</a> | ||
</alert> | ||
|
||
<ul> | ||
<li>Vue Horizontal is required, and you need to | ||
<n-link to="/installation"> install it</n-link> | ||
. | ||
</li> | ||
<li>Recipes follow the design language defined in the | ||
<n-link to="/design/principles">design principle</n-link> | ||
. | ||
</li> | ||
<li>You should be able to extract the code snippet and use it as a single file component.</li> | ||
<li>If you are consistently recycling a design pattern, you should abstract your SFC.</li> | ||
<li>It might look different on your website due various parent CSS rules. Tailwind is used under the hood with | ||
normalizing, that might be different from your default settings. | ||
</li> | ||
</ul> | ||
|
||
<h4>Recipes are designed:</h4> | ||
|
||
<ul> | ||
<li>For the responsive web, | ||
<n-link to="/design/responsive">using default breakpoints</n-link> | ||
. | ||
</li> | ||
<li>For mobile first design, | ||
<n-link to="/design/principles#peeking">peeking navigation</n-link> | ||
will be used on the mobile. | ||
Assumption is made that you have a padding of 24px on the left and right on the mobile viewport. | ||
The 24px is then removed and added into the <code><vue-horizontal></code> as scroll padding. | ||
</li> | ||
<li>For broad usage pattern, you should take it and edit it your needs.</li> | ||
</ul> | ||
|
||
<h4>Why is it so complex? Why is it not shipped together with vue-horizontal?</h4> | ||
|
||
<ul> | ||
<li>You control how to structure your content with HTML</li> | ||
<li>You control how it looks with CSS</li> | ||
<li> | ||
To give you greater control of your website and thus your code, vue-horizontal is merely a small component to | ||
horizontally align your content while fixing all the nasty quirks related to horizontal control | ||
(nav/scroll/touch). | ||
It also contains a few methods and event emitter that are optimized to make your life easier. | ||
It doesn't dictate how you structure your HTML or style your CSS. | ||
This responsive design logic is merely a skeleton of logic that is merely useful in that context. | ||
And every recipe may requires a different set of logic. | ||
</li> | ||
</ul> | ||
</div> | ||
</template> |
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
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,25 @@ | ||
--- | ||
title: Banner | ||
description: 'Vue Horizontal recipes, over 100 crafted recipes of horizontal layout with various design choices and control mechanisms ready for your needs.' | ||
position: 501 | ||
category: Recipes | ||
--- | ||
|
||
### Getting Started | ||
|
||
<recipes-getting-started></recipes-getting-started> | ||
|
||
## Banner 1 - 3 | ||
|
||
```vue[] import=recipes/banner/recipes-banner-1-3.vue padding=0 | ||
``` | ||
|
||
## Banner 1 - 5 | ||
|
||
```vue[] import=recipes/banner/recipes-banner-1-5.vue padding=0 | ||
``` | ||
|
||
## Banner 2 - 8 | ||
|
||
```vue[] import=recipes/banner/recipes-banner-2-8.vue padding=0 | ||
``` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.