Skip to content

New logo, redesign website #365

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

Open
wants to merge 57 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
cc4615e
prettier setup
Sep 30, 2018
ac435c8
added font-subsets
Sep 30, 2018
64c73e2
exchange hljs with prism-highlighter, add icon to REPL-link
Sep 30, 2018
6c4a868
added components inline-svg, icon and debug-css
Sep 30, 2018
2ef106e
style overhaul on guide and setup
Sep 30, 2018
09ed5e2
relink renamed toast
Sep 30, 2018
711e6d0
added theme-input for easy theming – maybe for later
Sep 30, 2018
6dc8060
added data to avoid warnings
Oct 2, 2018
5b68c70
styled toast
Oct 2, 2018
1788edc
added app-icons
Oct 2, 2018
c3ec124
added more fonts figuring out which ones are fitting best
Oct 2, 2018
0541464
update manifest
Oct 2, 2018
22349f6
working on prism-styles
Oct 2, 2018
7bb67fa
working on global styles
Oct 2, 2018
84b471f
added a few more icons
Oct 2, 2018
05b9b78
indent problems in vscode make me mad
Oct 2, 2018
91447e6
added icon
Oct 2, 2018
829511b
refining styles
Oct 2, 2018
c922665
started with error-page
Oct 2, 2018
2d4a6e5
added svelte-transitions (not in use for now), Design-Readme
Oct 4, 2018
46909a9
styling REPL
Oct 4, 2018
3ceb807
added some svg-components and a css-debug for dev
Oct 4, 2018
2cc4511
fix styles home, blog(just list-view), guide, toast
Oct 4, 2018
6734d7a
the nav. still have to figure out mobile-styles
Oct 4, 2018
3053694
current state of global-styles
Oct 4, 2018
222724a
keep up for later
Oct 4, 2018
f7f2344
Update Design-Readme.md
vedam Oct 4, 2018
a20c095
Update Design-Readme.md
vedam Oct 4, 2018
5eb804d
Update Design-Readme.md
vedam Oct 4, 2018
f33a11d
some minor tweaks...aaaandd...ready to rumble
Oct 4, 2018
a053211
get rid of secret-warning
Oct 4, 2018
f68237f
missing stuff
Oct 4, 2018
093a075
try to sove lowercase-problem
Oct 4, 2018
8ede46c
setup for now
Oct 7, 2018
6deef87
remove waste
Oct 7, 2018
35deb4f
move app-icons to images
Oct 7, 2018
e858cd3
remove prettier
Oct 8, 2018
ced1eac
added custom-properties for later
Oct 8, 2018
940c789
added font-display
Oct 8, 2018
6c87e7e
added guides
Oct 8, 2018
3b87111
components rebrush
Oct 8, 2018
480f3ff
main routes rebrush
Oct 8, 2018
81a50b5
repl rebrush
Oct 8, 2018
019d7b9
styles rebrush
Oct 8, 2018
db9c8ee
remove .vscode
Oct 8, 2018
0b64f0e
.grid fixes
Oct 8, 2018
2a5f4b9
prepare for github-dploys
Oct 8, 2018
effe8ee
fixing nav
Oct 8, 2018
208de1a
working on blog
Oct 8, 2018
a174416
minor fixes
Oct 8, 2018
c185cbf
try global links
Oct 8, 2018
d75cea1
small fixes
Oct 9, 2018
aec1f90
solved links and lists with linkify and listify for now
Oct 9, 2018
ea4d47f
some rough blog-styles
Oct 9, 2018
2078b7a
fix edit-link
Oct 10, 2018
ccf20da
added twitter-card, bigger navigation for guide, small refinements
Oct 10, 2018
0d08c22
added themer - experiment
Oct 10, 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: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ credentials.json
src/manifest
build
yarn-error.log
.vscode
.env
.sessions
.sessions
_snippets
87 changes: 87 additions & 0 deletions Design-Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
**Work in progress**

Hi all,
so I've done it.
I forked the svelte.technology-repo and styled the page along my [style-drafts](https://github.com/sveltejs/svelte.technology/issues/335#issuecomment-421912789).
Opinions are welcome.

I also replied on an issue by @rich_harris concerning syntax-highlighting and wanted to throw these thought into discussion too.
Just have to find it again...wait...ahh...[here #316](https://github.com/sveltejs/svelte.technology/pull/316#issuecomment-425632718)

and have fun
Achim



---

**Still on the list**

- [ ] REPL – lost SplitPanes (css)
- [ ] REPL – user menu
not able to login/load/check
- [ ] REPL – wrong viewer-height
- [x] <strike>REPL – "click to run"</strike>
- [ ] right top-offset for #anchors. (smooth-scroll solution?)
- [ ] some mindful/helpful animations?
- [ ] Browser-testing
- [x] <strike>Firefox dislikes my svgs</strike>
- [x] <strike>Safari doesn't want my link-styles</strike>
- [ ] No one knows what Explorer will do...
- [ ] make Link- and List-solution more practicable
see Notes in global.css
- [x] <strike>figure out mobile styles</strike>
- [x] <strike>nav</strike>
- [x] <strike>blog-post single-page (rough)</strike>
- [x] <strike>list-styles</strike>
- [x] <strike>REPL – fix file-edit (css)</strike>
- [x] <strike>links</strike>
- [x] <strike>replace hljs with prism (smaller footprint)</strike>
- [x] <strike>fix guide-padding</strike>
- [x] <strike>site icons</strike>
- [x] <strike>current section icon</strike>
- [x] <strike>fix blockquotes</strike>
- [x] <strike>wrong font in syntax-highlighter</strike>
- [x] <strike>bigger h3</strike>
- [x] <strike>Home-/Landing-page just rough</strike>
- [x] <strike>blog (rough list-page)</strike>
- [x] <strike>repl (rough)</strike>
- [x] <strike>error (very, very rough)</strike>



---

**Is it bad to use global.css?**

I thought for main stuff it makes sense to define common stuff in global.css than to "overload" <style> in routes.

<small>Easy to change that if needed/requested.</small>

I know that global.css won't receive auto-css-removal, but is this an issue for commonly, overall used style-stuff?
I've tried hard to include only real global-stuff.

Main advantage in my eyes is the usage of custom-css-properties for theming, color- and font-stuff or helper-classes.

<small>**hmm. OK.** That could be done with components including css too.</small>

**maybe it's this**
I find all these `.someting :global(xxx) :global(yy)` disturbing.

**NOTE on css**
The real basic reset is inline in template.html
for fastest possible load.



---

**Some Questions**

- Is an agressive font-subsetting OK?
- Is this @web-font load ok?
I wanted to prevent the inlining of base64.
Got it from [fout-with-class](https://github.com/zachleat/web-font-loading-recipes)
- What are our required glyphs? Even Chinese?
- Is inlining svg for icons bad practice?

2 changes: 1 addition & 1 deletion content/blog/2018-04-18-version-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The Svelte compiler can still see which values `d` depends on, but it's no longe
Again, you don't need to make this change manually — just run svelte-upgrade on your components, as shown above.


## Sorry, IE11. It's not you, it's... well actually, yeah. It's you
## Sorry, IE11. It's not you, it's...<br>well actually, yeah. It's you

Svelte v1 was careful to only emit ES5 code, so that you wouldn't be forced to faff around with transpilers in order to use it. But it's 2018 now, and almost all browsers support modern JavaScript. By ditching the ES5 constraint, we can generate leaner code.

Expand Down
25 changes: 12 additions & 13 deletions content/guide/00-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ Svelte is a tool for building fast web applications.

It is similar to JavaScript frameworks such as React, Angular, Vue, and Ractive, which all share a goal of making it easy to build slick interactive user interfaces.

But there's a crucial difference: Svelte converts your app into ideal JavaScript at *build time*, rather than interpreting your application code at *run time*. This means you don't pay the performance cost of the framework's abstractions, and you don't incur a penalty when your app first loads.
But there's a crucial difference: Svelte converts your app into ideal JavaScript at _build time_, rather than interpreting your application code at _run time_. This means you don't pay the performance cost of the framework's abstractions, and you don't incur a penalty when your app first loads.

You can build your entire app with Svelte, or you can add it incrementally to an existing codebase. You can also ship components as standalone packages that work anywhere, without the overhead of a dependency on a conventional framework.

[Read the introductory blog post](/blog/frameworks-without-the-framework) to learn more about Svelte's goals and philosophy.


### Understanding Svelte components

In Svelte, an application is composed from one or more *components*. A component is a reusable self-contained block of code that encapsulates markup, styles and behaviours that belong together.
In Svelte, an application is composed from one or more _components_. A component is a reusable self-contained block of code that encapsulates markup, styles and behaviours that belong together.

Like Ractive and Vue, Svelte promotes the concept of *single-file components*: a component is just an `.html` file. Here's a simple example:
Like Ractive and Vue, Svelte promotes the concept of _single-file components_: a component is just an `.html` file. Here's a simple example:

```html
<!--{ title: 'Hello world!' }-->
Expand All @@ -29,11 +28,11 @@ Like Ractive and Vue, Svelte promotes the concept of *single-file components*: a
```json
/* { hidden: true } */
{
name: 'world'
"name": "world"
}
```

> Wherever you see <strong style="font-weight: 700; font-size: 16px; font-family: Inconsolata, monospace; color: rgba(170,30,30, 0.8)">REPL</strong> links, click through for an interactive example
> Wherever you see <svg class="icon" style="color:var(--text)"><use xlink:href='#maximize-2' /></svg> links, click through for an interactive example

Svelte turns this into a JavaScript module that you can import into your app:

Expand All @@ -42,8 +41,8 @@ Svelte turns this into a JavaScript module that you can import into your app:
import App from './App.html';

const app = new App({
target: document.querySelector('main'),
data: { name: 'world' }
target: document.querySelector('main'),
data: { name: 'world' },
});

// change the data associated with the template
Expand All @@ -55,7 +54,6 @@ app.destroy();

Congratulations, you've just learned about half of Svelte's API!


### Getting started

Normally, this is the part where the instructions might tell you to add the framework to your page as a `<script>` tag. But because Svelte runs at build time, it works a little bit differently.
Expand All @@ -66,7 +64,7 @@ The best way to use Svelte is to integrate it into your build system – there

#### Getting started using the REPL

Going to the [REPL](/repl) and pressing the *download* button on any of the examples will give you a .zip file containing everything you need to run that example locally. Just unzip it, `cd` to the directory, and run `npm install` and `npm run dev`. See [this blog post](/blog/the-easiest-way-to-get-started) for more information.
Going to the [REPL](/repl) and pressing the _download_ button on any of the examples will give you a .zip file containing everything you need to run that example locally. Just unzip it, `cd` to the directory, and run `npm install` and `npm run dev`. See [this blog post](/blog/the-easiest-way-to-get-started) for more information.

#### Getting started using degit

Expand All @@ -87,8 +85,8 @@ npm run dev

You can use any git repo you like — these are the 'official' templates:

* [sveltejs/template](https://github.com/sveltejs/template) — this is what you get by downloading from the REPL
* [sveltejs/template-webpack](https://github.com/sveltejs/template-webpack) — similar, but uses [webpack](https://webpack.js.org/) instead of [Rollup](https://rollupjs.org/guide/en)
- [sveltejs/template](https://github.com/sveltejs/template) — this is what you get by downloading from the REPL
- [sveltejs/template-webpack](https://github.com/sveltejs/template-webpack) — similar, but uses [webpack](https://webpack.js.org/) instead of [Rollup](https://rollupjs.org/guide/en)

#### Getting started using the CLI

Expand All @@ -101,7 +99,8 @@ If you've installed `svelte` globally, you can use `svelte --help` for a complet
svelte compile MyComponent.html > MyComponent.js
svelte compile -i MyComponent.html -o MyComponent.js

# Generate a UMD module from MyComponent.html, inferring its name from the filename ('MyComponent')
# Generate a UMD module from MyComponent.html,
# inferring its name from the filename ('MyComponent')
svelte compile -f umd MyComponent.html > MyComponent.js

# Generate a UMD module, specifying the name
Expand Down
Loading