Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
macx committed Jul 15, 2022
0 parents commit 9194bbf
Show file tree
Hide file tree
Showing 11 changed files with 550 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vite Starterkit

TBA
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "vite-starterkit",
"private": true,
"version": "0.0.1",
"type": "module",
"browserslist": [
"defaults"
],
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"autoprefixer": "^10.4.7",
"sass": "^1.53.0",
"vite": "^3.0.0"
},
"dependencies": {}
}
3 changes: 3 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('autoprefixer')],
};
15 changes: 15 additions & 0 deletions src/css/_presets.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* {
box-sizing: border-box;
}

:root {
--spacing: 1.25rem;

--clr-bg: hsl(204, 15%, 94%);
--clr-text: hsl(0, 0%, 0%);

--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol';
--font-weight: 400;
}
27 changes: 27 additions & 0 deletions src/css/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@use 'presets';

body {
font-family: var(--font-family);
font-weight: var(--font-weight);
font-size: 1rem;
background-color: var(--clr-bg);
color: var(--clr-text);
margin: 0;
}

#app {
}

/*
┌──────────────────────────────────┐
HEADER
└──────────────────────────────────┘
*/

.header {
border-bottom: 1px solid var(--clr-line);
}

h1 {
margin: 0 0;
}
1 change: 1 addition & 0 deletions src/images/vite-starterkit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Starterkit Vite</title>
</head>
<body>
<div id="app">
<header class="header">
<div class="logo"></div>

<div>Something</div>
</header>

<main>
<h1>Starterkit Vite</h1>

<p>
Lynda, first of all, I'm not your answering service. Second of all,
somebody named Greg or Craig called you just a little while ago. Look,
George, I'm telling you George, if you do not ask Lorraine to that
dance, I'm gonna regret it for the rest of my life. Who? Oh, uh, hey
you, get your damn hands off her. Do you really think I oughta swear?
Why do you keep following me around?
</p>

<p>
Please, Marty, don't tell me, no man should know too much about their
own destiny. What did you say? Children. I have to tell you about the
future. Whoa, they really cleaned this place up, looks brand new.
</p>

<p>
Lorraine, have you ever, uh, been in a situation where you know you
had to act a certain way but when you got there, you didn't know if
you could go through with it? Look, I'm just not ready to ask Lorraine
out to the dance, and not you, nor anybody else on this planet is
gonna make me change my mind. Erased from existence. Whoa, whoa, kid,
kid, stop, stop, stop, stop. I don't like her, Marty. Any girl who
calls a boy is just asking for trouble.
</p>
</main>
</div>

<script type="module" src="/main.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import './css/main.scss';

import starterkitLogo from './images/vite-starterkit.svg';

document.querySelector('.logo').innerHTML = `<img src="${starterkitLogo}">`;
12 changes: 12 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig } from 'vite';

export default defineConfig({
root: 'src',
server: {
open: true,
},
preview: {
port: 8080,
open: true,
},
});
Loading

0 comments on commit 9194bbf

Please sign in to comment.