This repository was archived by the owner on May 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
[Feature] new layout/design #72
Open
orioltf
wants to merge
7
commits into
develop
Choose a base branch
from
feature/newdesign
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
c797723
New layout and design for Estatico
orioltf 36a200d
Minor fixes for small viewport
orioltf c069a65
Move JS to toggle tree from preview to its own JS file
orioltf 9291e97
Get rid from IIFE, rename variables with more meaningful names
orioltf 4ecddd2
Responsive styles
orioltf 3e69c59
Remove commented out code
orioltf 5ce851b
Make footer content and data project related
orioltf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,45 @@ | ||
| 'use strict'; | ||
|
|
||
| var _ = require('lodash'), | ||
| dataHelper = require('../../helpers/data.js'), | ||
| path = require('path'), | ||
|
|
||
| transform = function(data, filePath) { | ||
| const previewUrl = '/' + path.relative('./source/', filePath).replace('.data.js', '.html'); | ||
|
|
||
| return _.merge(data, { | ||
| meta: { | ||
| previewUrl: previewUrl, | ||
| documentation: dataHelper.getDocumentation('../index.md') | ||
| } | ||
| }); | ||
| }, | ||
|
|
||
| data = { | ||
| pages: dataHelper.getDataGlob('./source/pages/**/*.data.js', transform), | ||
| demoPages: dataHelper.getDataGlob('./source/demo/pages/**/*.data.js', transform), | ||
| modules: dataHelper.getDataGlob('./source/modules/**/*.data.js', transform), | ||
| demoModules: dataHelper.getDataGlob('./source/demo/modules/**/*.data.js', transform), | ||
| styleguide: dataHelper.getDataGlob('./source/preview/styleguide/*.data.js', transform) | ||
| }; | ||
|
|
||
| // console.log('pages =>', data.pages); | ||
|
|
||
|
|
||
| data.pages = _.sortBy(data.pages, function(item) { | ||
| return item.meta.title; | ||
| }).concat(_.sortBy(data.demoPages, function(item) { | ||
| return item.meta.title; | ||
| })); | ||
|
|
||
| data.modules = _.sortBy(data.modules, function(item) { | ||
| return item.meta.title; | ||
| }).concat(_.sortBy(data.demoModules, function(item) { | ||
| return item.meta.title; | ||
| })); | ||
|
|
||
| data.styleguide = _.sortBy(data.styleguide, function(item) { | ||
| return item.meta.title; | ||
| }); | ||
|
|
||
| module.exports = data; |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,69 +1,11 @@ | ||
| {{#extend "preview/layouts/layout"}} | ||
| {{#content "content"}} | ||
| <div class="sg_index"> | ||
| {{#if pages}} | ||
| <div class="sg_inner_wrapper"> | ||
| <h2 class="sg_h2">Pages</h2> | ||
| <h2 class="sg__title sg__title--module"> | ||
| <a href="/">{{meta.project}}</a>{{#if meta.title}} / {{meta.title}}{{/if}} | ||
| </h2> | ||
|
|
||
| <ul class="sg_index_list"> | ||
| {{#each pages}} | ||
| {{#unless meta.hideFromListing}} | ||
| <li> | ||
| <a href="{{meta.previewUrl}}">{{meta.title}}</a> | ||
| {{#if meta.jira}} | ||
| (<a href="#{{meta.jira}}"> | ||
| {{meta.jira}} | ||
| </a>) | ||
| {{/if}} | ||
| {{#if meta.feature}} — {{meta.feature}}{{/if}} | ||
| </li> | ||
| {{/unless}} | ||
| {{/each}} | ||
| </ul> | ||
| </div> | ||
| {{/if}} | ||
|
|
||
| {{#if modules}} | ||
| <div class="sg_inner_wrapper"> | ||
| <h2 class="sg_h2">Modules</h2> | ||
|
|
||
| <ul class="sg_index_list"> | ||
| {{#each modules}} | ||
| {{#unless meta.hideFromListing}} | ||
| <li> | ||
| <a href="{{meta.previewUrl}}"> | ||
| {{meta.title}} | ||
| </a> | ||
| {{#if meta.jira}} | ||
| (<a href="#{{meta.jira}}"> | ||
| {{meta.jira}} | ||
| </a>) | ||
| {{/if}} | ||
| {{#if meta.feature}} — {{meta.feature}}{{/if}} | ||
| </li> | ||
| {{/unless}} | ||
| {{/each}} | ||
| </ul> | ||
| </div> | ||
| {{/if}} | ||
|
|
||
| {{#if styleguide}} | ||
| <div class="sg_inner_wrapper"> | ||
| <h2 class="sg_h2">Styleguide</h2> | ||
|
|
||
| <ul class="sg_index_list"> | ||
| {{#each styleguide}} | ||
| {{#unless meta.hideFromListing}} | ||
| <li> | ||
| <a href="{{meta.previewUrl}}"> | ||
| {{meta.title}} | ||
| </a> | ||
| </li> | ||
| {{/unless}} | ||
| {{/each}} | ||
| </ul> | ||
| </div> | ||
| {{/if}} | ||
| <div class="sg__styleguide"> | ||
| {{{meta.documentation}}} | ||
| </div> | ||
| {{/content}} | ||
| {{/extend}} |
This file contains hidden or 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,75 @@ | ||
| <style> | ||
| .sg--home .sg__styleguide { | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| blockquote { | ||
| display:block; | ||
| background: #fff; | ||
| padding: 15px 20px 15px 55px; | ||
| position: relative; | ||
|
|
||
| /*Font*/ | ||
| font: italic 400 1.5em/1.2 Georgia, "Times New Roman", Times, serif; | ||
| color: #000; | ||
|
|
||
| /*Box Shadow - (Optional)*/ | ||
| -moz-box-shadow: 2px 2px 15px #ccc; | ||
| -webkit-box-shadow: 2px 2px 15px #ccc; | ||
| box-shadow: 2px 2px 15px #ccc; | ||
|
|
||
| /*Borders - (Optional)*/ | ||
| border-left-style: solid; | ||
| border-left-width: 15px; | ||
| border-right-style: solid; | ||
| border-right-width: 2px; | ||
|
|
||
| border-left-color: rgba(164, 196, 0, 0.8); | ||
| border-right-color: #a4c400; | ||
| } | ||
|
|
||
| blockquote:before { | ||
| content: "\201C"; /*Unicode for Left Double Quote*/ | ||
|
|
||
| /*Font*/ | ||
| font-family: Georgia, serif; | ||
| font-size: 60px; | ||
| font-weight: bold; | ||
|
|
||
| /*Positioning*/ | ||
| position: absolute; | ||
| left: 10px; | ||
| top:5px; | ||
| } | ||
|
|
||
| blockquote:after { | ||
| /*Reset to make sure*/ | ||
| content: ""; | ||
| } | ||
|
|
||
| blockquote a { | ||
| border-bottom: 1px solid; | ||
| text-decoration: none; | ||
| cursor: pointer; | ||
| padding: 0 3px; | ||
| color: #a4c400; | ||
| transition: color .3s | ||
| } | ||
|
|
||
| blockquote a:hover { | ||
| color: #3a4ecc; | ||
| } | ||
|
|
||
| blockquote em { | ||
| font-style: italic; | ||
| } | ||
|
|
||
| @media and (min-width: 661px) { | ||
| blockquote { | ||
| font-size: 2.5em | ||
| } | ||
| } | ||
| </style> | ||
|
|
||
| > Estático is an open source static build system created with love at *[Unic AG](https://unic.com)* and crafted together with the community with the purpose of creating static and modular sites, systems, styleguides and/or design systems. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to the preview's main.scss?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left it here on purpose for 2 reasons:
What do you think?