Skip to content
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

New website design #122

Closed
wants to merge 40 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6c94c0d
Merge pull request #1 from Unibeautify/master
Jul 5, 2018
dc2b352
Merge remote-tracking branch 'upstream/master'
Jul 8, 2018
f9df10b
Added credits section with link to logo/icon authors
Jul 8, 2018
79a675f
We are the code beautifier, added a font and changed the logo
Jul 8, 2018
5cf2fcc
Changed the folder structure, optimized quality and size and added logo
Jul 8, 2018
38c07d4
Added high res svg logos
Jul 8, 2018
2e07978
Removed old logos
Jul 8, 2018
f827d4f
Added a few icons (for commercial use)
Jul 8, 2018
4681c78
Changed the demo image
Jul 8, 2018
6be2d17
Updated the tagline
Jul 8, 2018
3667808
Improved footer with more links
Jul 8, 2018
3ff6ca2
Added vscode to the "Who‘s using" section and changed ubi logo
Jul 8, 2018
a31b26e
New hero image
Jul 8, 2018
2393bcd
Removed old logo
Jul 8, 2018
3e78edf
header script for adding a sticky class to the header
Jul 8, 2018
0c0846a
Updated a few things:
Jul 8, 2018
35d3a6c
First version for the index.js page and initial css structure
Jul 8, 2018
761cd31
First version of the new index.js page (home)
Jul 8, 2018
bc9237c
First try editing the header html
Jul 8, 2018
acb050b
Added eslinting for react scripts. eslint-plugin-react needs to be in…
Jul 8, 2018
1e734eb
beautification
Jul 8, 2018
8749795
removed whitespace
Jul 8, 2018
3da9623
changed hljs theme
Jul 8, 2018
ea346bd
changed offset
Jul 8, 2018
ba9ee94
more styling
Jul 8, 2018
6282193
Styling
Jul 9, 2018
56f0c38
Reorganized and added/modified some things
Jul 9, 2018
7e82312
Changed menu
Jul 9, 2018
d46d61f
Beautification
Jul 9, 2018
3e705ef
Styling
Jul 9, 2018
268146c
Reordered/reorganized
Jul 9, 2018
7305c2a
Added og images
Jul 9, 2018
2a54d84
Added featherlight and jquery
Jul 9, 2018
3431c2e
Added featherlight, sticky scroll header and scrollspy
Jul 9, 2018
6940c91
debug: false
Jul 9, 2018
2fb1a51
more credits
Jul 9, 2018
359bd5d
Merge branch 'new-website-design' of https://github.com/muuvmuuv/webs…
Jul 10, 2018
952dc32
:art: Fix formatting of 20 files for commit 2fb1a51
Jul 10, 2018
1e603e7
Merge pull request #2 from Unibeautify/unibeautify/pull-request-122
Jul 10, 2018
f701bd5
- Removed ext. libs to use CDN now.
Jul 12, 2018
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
4 changes: 4 additions & 0 deletions .unibeautifyrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ TypeScript:
quotes: "double"
space_after_anon_function: false
wrap_line_length: 80
JavaScript:
beautifiers: ["ESLint"]
ESLint:
prefer_beautifier_config: true
CSS:
indent_char: " "
indent_size: 2
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"prettier.trailingComma": "all"
"prettier.trailingComma": "all",
"prettier.eslintIntegration": true,
"prettier.stylelintIntegration": true
}
11 changes: 11 additions & 0 deletions docs/credits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: credits
title: Credits
---

**From the community for the community**

* Logo by [Marvin Heilemann](https://github.com/muuvmuuv)
* ["Planet"](https://thenounproject.com/search/?q=universe&i=823017) icon by Royyan Wijaya from [the Noun Project](https://thenounproject.com/)
* Hero image by [Daniel Leone](https://unsplash.com/photos/g30P1zcOzXo)
* Icons by [Kavoon](https://pixelbuddha.net/)
25 changes: 18 additions & 7 deletions scripts/generate-docs/OptionsDoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export default class OptionsDoc extends Doc {
url: "https://img.shields.io/npm/v/unibeautify.svg",
href: "https://www.npmjs.com/package/unibeautify",
});
builder.append(`**Available since version**: ${this.option.since} (**Current:** ${currentUnibeautifyVersionBadge})\n`);
builder.append(
`**Available since version**: ${
this.option.since
} (**Current:** ${currentUnibeautifyVersionBadge})\n`,
);
builder.append(`**Type**: \`${this.type}\`\n`);
builder.append(`**Default**: \`${JSON.stringify(this.option.default)}\`\n`);
if (this.option.enum) {
Expand All @@ -102,9 +106,7 @@ export default class OptionsDoc extends Doc {
builder.details("<strong>Comparison Table</strong>", builder => {
this.appendTable(builder);
});
return this.appendExamples(builder).then(() =>
builder.build()
);
return this.appendExamples(builder).then(() => builder.build());
} else {
builder.editButton("Add Beautifier", editBeautifiersUrl);
builder.append("No language or beautifier support!");
Expand Down Expand Up @@ -189,8 +191,15 @@ export default class OptionsDoc extends Doc {
),
).then(beautified => {
builder.header("Examples", 2);
builder.append("<label>Select Language: </label>");
builder.append(`<div class="select"><select id="languages-select">`);
builder.append(
'<div class="input-group languages-select"><div class="input-group-prepend">',
);
builder.append(
'<label class="input-group-text" for="languages-select">Select Language:</label>',
);
builder.append(
'</div><select class="custom-select" id="languages-select">',
);
let defaultDisplay: string;
let isDefault: boolean = true;
this.languages.forEach(language => {
Expand Down Expand Up @@ -386,7 +395,9 @@ export default class OptionsDoc extends Doc {
}

private editExampleButtonUrl(language: Language): string {
return `${this.languageEditURL}/samples/${language.name}/${this.optionKey}.txt`;
return `${this.languageEditURL}/samples/${language.name}/${
this.optionKey
}.txt`;
}

private addExampleButtonUrl(language: Language): string {
Expand Down
33 changes: 33 additions & 0 deletions website/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"amd": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"$": true,
"jQuery": true
},
"extends": [
"eslint:recommended", "plugin:react/recommended"
],
"rules": {
"indent": [
"error",
2, {
"SwitchCase": 1
}
],

// React specific rules
"react/prop-types": [0]
}
}
270 changes: 270 additions & 0 deletions website/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
{
"plugins": ["./node_modules/stylelint-order"],
"extends": "./node_modules/stylelint-config-standard",
"rules": {
"indentation": 2,

"order/order": [
"custom-properties",
"dollar-variables",
"declarations",
"at-rules", {
"type": "at-rule",
"name": "include",
"parameter": "center"
},
"less-mixins",
"rules"
],
"order/properties-order": [
{
"emptyLineBefore": "always",
"properties": [
"content",
"quotes",
"display",
"visibility",
"position",
"z-index",
"top",
"right",
"bottom",
"left"
]
}, {
"emptyLineBefore": "always",
"properties": [
"grid",
"grid-area",
"grid-auto-columns",
"grid-auto-flow",
"grid-auto-rows",
"grid-column",
"grid-column-end",
"grid-column-gap",
"grid-column-start",
"grid-gap",
"grid-row",
"grid-row-end",
"grid-row-gap",
"grid-row-start",
"grid-template",
"grid-template-areas",
"grid-template-columns",
"grid-template-rows",
"flex",
"flex-basis",
"flex-direction",
"flex-flow",
"flex-grow",
"flex-shrink",
"flex-wrap",
"align-content",
"align-items",
"align-self",
"justify-content",
"order"
]
}, {
"emptyLineBefore": "always",
"properties": [
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height"
]
}, {
"emptyLineBefore": "always",
"properties": [
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left"
]
}, {
"emptyLineBefore": "always",
"properties": ["float", "clear", "overflow", "overflow-x", "overflow-y"]
}, {
"emptyLineBefore": "always",
"properties": [
"columns",
"column-gap",
"column-fill",
"column-rule",
"column-span",
"column-count",
"column-width",
"table-layout",
"empty-cells",
"caption-side",
"border-spacing",
"border-collapse",
"list-style",
"list-style-position",
"list-style-type",
"list-style-image"
]
}, {
"emptyLineBefore": "always",
"properties": [
"transform",
"transform-origin",
"transform-style",
"backface-visibility",
"perspective",
"perspective-origin"
]
}, {
"emptyLineBefore": "always",
"properties": ["transition", "transition-property", "transition-duration", "transition-timing-function", "transition-delay"]
}, {
"emptyLineBefore": "always",
"properties": [
"animation",
"animation-name",
"animation-duration",
"animation-play-state",
"animation-timing-function",
"animation-delay",
"animation-iteration-count",
"animation-direction"
]
}, {
"emptyLineBefore": "always",
"properties": [
"border",
"border-top",
"border-right",
"border-bottom",
"border-left",
"border-width",
"border-top-width",
"border-right-width",
"border-bottom-width",
"border-left-width",
"border-style",
"border-top-style",
"border-right-style",
"border-bottom-style",
"border-left-style",
"border-radius",
"border-top-left-radius",
"border-top-right-radius",
"border-bottom-left-radius",
"border-bottom-right-radius",
"border-color",
"border-top-color",
"border-right-color",
"border-bottom-color",
"border-left-color"
]
}, {
"emptyLineBefore": "always",
"properties": [
"outline",
"outline-color",
"outline-offset",
"outline-style",
"outline-width",
"stroke-width",
"stroke-linecap",
"stroke-dasharray",
"stroke-dashoffset",
"stroke"
]
}, {
"emptyLineBefore": "always",
"properties": [
"opacity",
"background",
"background-color",
"background-image",
"background-repeat",
"background-position",
"background-size",
"box-shadow",
"fill"
]
}, {
"emptyLineBefore": "always",
"properties": [
"color",
"font",
"font-family",
"font-size",
"font-size-adjust",
"font-stretch",
"font-effect",
"font-style",
"font-variant",
"font-weight",
"font-emphasize",
"font-emphasize-position",
"font-emphasize-style",
"letter-spacing",
"line-height",
"list-style",
"word-spacing"
]
}, {
"emptyLineBefore": "always",
"properties": [
"text-align",
"text-align-last",
"text-decoration",
"text-indent",
"text-justify",
"text-overflow",
"text-overflow-ellipsis",
"text-overflow-mode",
"text-rendering",
"text-outline",
"text-shadow",
"text-transform",
"text-wrap",
"word-wrap",
"word-break",
"text-emphasis",
"text-emphasis-color",
"text-emphasis-style",
"text-emphasis-position",
"vertical-align",
"white-space",
"word-spacing",
"hyphens"
]
}, {
"emptyLineBefore": "always",
"properties": [
"src",
"tab-size",
"counter-reset",
"counter-increment",
"resize",
"cursor",
"pointer-events",
"speak",
"user-select",
"nav-index",
"nav-up",
"nav-right",
"nav-down",
"nav-left",
"filter",
"backdrop-filter",
"box-sizing",
"clip",
"zoom"
]
}
]
}
}
Loading