-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: narrat editor updated to have a demo of themes (#172)
- Loading branch information
Showing
5 changed files
with
234 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "root", | ||
"path": "." | ||
}, | ||
{ | ||
"name": "editor", | ||
"path": "packages/narrat-editor" | ||
} | ||
], | ||
"settings": { | ||
"vitest.enable": true, | ||
"editor.tabSize": 2, | ||
"files.exclude": { | ||
"**/dist/*": true, | ||
"**/lib/*": true, | ||
"node_modules/": true, | ||
"packages/": true, | ||
"docs/": true, | ||
"demo-template": true, | ||
"**/*.rpyc": true, | ||
"**/*.rpa": true, | ||
"**/*.rpymc": true, | ||
"**/cache/": true, | ||
"**/lib.ts": true | ||
}, | ||
"search.exclude": { | ||
"dist/": true, | ||
"lib/": true, | ||
"node_modules/": true, | ||
"**/lib.ts": true | ||
}, | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"typescript.preferences.autoImportFileExcludePatterns": [ | ||
"@/lib/**", | ||
"@/lib**", | ||
"@/lib", | ||
"src/lib", | ||
"**/node_modules/**", | ||
"**/dist/**", | ||
"**/lib/**" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Theme } from 'narrat'; | ||
import JrpgCss from './jrpg.css?inline'; | ||
|
||
export const jrpgTheme: Theme = { | ||
id: 'jrpg', | ||
css: JrpgCss, | ||
extendedConfig: { | ||
dialogPanel: { | ||
width: 1200, | ||
height: 300, | ||
rightOffset: 50, | ||
bottomOffset: 50, | ||
}, | ||
layout: { | ||
portraits: { | ||
width: 200, | ||
height: 300, | ||
offset: { | ||
landscape: { | ||
right: -700, | ||
bottom: 200, | ||
}, | ||
portrait: { | ||
right: 10, | ||
bottom: 0, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} as Theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#narrat-app { | ||
--font-family: Noto Sans JP, sans-serif; | ||
--text-color: white; | ||
--blue-a: #0000a4; | ||
--blue-b: #000028; | ||
--bg-color: linear-gradient(0.5turn, #0000a4, #000028); | ||
--dialog-box-bg: var(--bg-color); | ||
--dialog-box-border: 0.25rem solid white; | ||
} | ||
|
||
.dialog { | ||
overflow-y: hidden; | ||
} | ||
.dialog-box { | ||
padding: 1rem 2rem; | ||
border-radius: 0.5rem; | ||
} | ||
|
||
.dialog-text { | ||
font-size: 1.7rem !important; | ||
} | ||
|
||
.dialog-title { | ||
font-size: 3rem; | ||
text-decoration: underline; | ||
} | ||
|
||
.dialog-choices { | ||
font-size: 1.5rem; | ||
} | ||
|
||
.dialog-box:not(:last-child) { | ||
display: none; | ||
} | ||
.dialog-separator { | ||
display: none; | ||
} | ||
|
||
.dialog-content { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.dialog-container { | ||
padding-bottom: 10px !important; | ||
} | ||
|
||
.interact-button { | ||
position: relative; | ||
background: transparent; | ||
color: transparent; | ||
font-size: 1.7rem !important; | ||
border: none; | ||
} | ||
.interact-button:after { | ||
position: absolute; | ||
right: 10px; | ||
content: '>'; | ||
color: white; | ||
font-size: 5rem; | ||
animation: anim 0.5s infinite; | ||
} | ||
|
||
@keyframes anim { | ||
0% { | ||
transform: translateX(0px); | ||
} | ||
100% { | ||
transform: translateX(10px); | ||
} | ||
} | ||
.dialog-content { | ||
/* text-align: center; */ | ||
} | ||
|
||
.list-enter-active, | ||
.list-leave-active { | ||
transition: none !important; | ||
} |
6b2968b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
narrat-editor-demo – ./packages/narrat-editor
narrat-editor-demo.vercel.app
narrat-editor-demo-git-main-nialna.vercel.app
narrat-editor-demo-nialna.vercel.app
demo.narrat.dev