Skip to content

Commit

Permalink
refactor: move all templates into one dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Dec 22, 2022
1 parent 429128b commit f484c58
Show file tree
Hide file tree
Showing 22 changed files with 223 additions and 321 deletions.
106 changes: 0 additions & 106 deletions .gitignore

This file was deleted.

2 changes: 2 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "/Users/wibus/Developer/jwcjs/create-jwcjs/src/index";
export { default } from "/Users/wibus/Developer/jwcjs/create-jwcjs/src/index";
6 changes: 6 additions & 0 deletions dist/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import jiti from "file:///Users/wibus/Developer/jwcjs/create-jwcjs/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/index.js";

/** @type {import("/Users/wibus/Developer/jwcjs/create-jwcjs/src/index")} */
const _module = jiti(null, { interopDefault: true, esmResolve: true })("/Users/wibus/Developer/jwcjs/create-jwcjs/src/index.ts");

export default _module;
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions my-jwc-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "my-jwc-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"vite": "^4.0.1",
"jwcjs": "*"
}
}
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
58 changes: 58 additions & 0 deletions my-jwc-app/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
:host {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 0.25s;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.jwc:hover {
filter: drop-shadow(0 0 2em rgb(0, 0, 0));
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}

@media (prefers-color-scheme: dark) {
.logo.jwc:hover {
filter: drop-shadow(0 0 2em rgb(255, 255, 255));
}
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
button {
background-color: #f9f9f9;
}
}
File renamed without changes.
58 changes: 58 additions & 0 deletions my-jwc-app/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}

#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit f484c58

Please sign in to comment.