Skip to content

Commit

Permalink
feat(examples): add vanilla (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHofmeister authored Dec 10, 2021
1 parent 1bab1c3 commit 91259f8
Show file tree
Hide file tree
Showing 16 changed files with 150 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/angular-boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-reactive-forms/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/gatsby-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"description": "A simple starter to get up and developing quickly with Gatsby",
Expand Down
2 changes: 1 addition & 1 deletion examples/nuxt-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"description": "My legendary Nuxt.js project",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions examples/react-form/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"main": "dist/index.js",
Expand Down Expand Up @@ -45,4 +45,4 @@
"last 1 safari version"
]
}
}
}
13 changes: 13 additions & 0 deletions examples/vanilla-cdn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vanilla cdn

## Project setup

```
npm install
```

### Starts a local server with hot-reloads for development

```
npm run start
```
27 changes: 27 additions & 0 deletions examples/vanilla-cdn/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://unpkg.com/@telekom/scale-components-neutral/dist/scale-components/scale-components.css"
/>
<script
type="module"
src="https://unpkg.com/@telekom/scale-components-neutral/dist/scale-components/scale-components.esm.js"
></script>
<link rel="stylesheet" href="styles.css" />
<title>Vanilla</title>
</head>
<body>
<div class="container">
<h1>Scale + UNPKG</h1>
<scale-button
href="https://www.brand-design.telekom.com/en/account/login/?redirect_url=/scale/"
>Open the docs</scale-button
>
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions examples/vanilla-cdn/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "npx servor --reload --browse"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
],
"devDependencies": {
"servor": "^4.0.2"
}
}
13 changes: 13 additions & 0 deletions examples/vanilla-cdn/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
text-align: center;
margin: 0;
padding: 0;
height: 100vh;
}

.container {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
}
13 changes: 13 additions & 0 deletions examples/vanilla/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# vanilla

## Project setup

```
npm install
```

### Starts a local server with hot-reloads for development

```
npm run start
```
27 changes: 27 additions & 0 deletions examples/vanilla/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="node_modules/@telekom/scale-components-neutral/dist/scale-components/scale-components.css"
/>
<script
type="module"
src="node_modules/@telekom/scale-components-neutral/dist/scale-components/scale-components.esm.js"
></script>
<link rel="stylesheet" href="styles.css" />
<title>Vanilla</title>
</head>
<body>
<div class="container">
<h1>Scale + Vanilla</h1>
<scale-button
href="https://www.brand-design.telekom.com/en/account/login/?redirect_url=/scale/"
>Open the docs</scale-button
>
</div>
</body>
</html>
19 changes: 19 additions & 0 deletions examples/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "npx servor --reload --browse"
},
"dependencies": {
"@telekom/scale-components-neutral": "^3.0.0-beta.33"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
],
"devDependencies": {
"servor": "^4.0.2"
}
}
13 changes: 13 additions & 0 deletions examples/vanilla/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
text-align: center;
margin: 0;
padding: 0;
height: 100vh;
}

.container {
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
}
2 changes: 1 addition & 1 deletion examples/vue-boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue3-boilerplate/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "%TODO%",
"name": "TODO",
"version": "1.0.0",
"private": true,
"scripts": {
Expand Down

0 comments on commit 91259f8

Please sign in to comment.