Skip to content

Commit

Permalink
Add background splash image placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
jennie committed Nov 5, 2023
1 parent ce1aad6 commit 720338c
Show file tree
Hide file tree
Showing 11 changed files with 1,474 additions and 48 deletions.
46 changes: 24 additions & 22 deletions twine_src/styles/main.css → css/main.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

body,
html {
margin: 0;
Expand All @@ -6,7 +10,8 @@ html {
}

#hud {
display: none;
@apply hidden;

height: 100vh;
width: 100vw;
position: absolute;
Expand Down Expand Up @@ -42,31 +47,32 @@ html {
overflow: hidden;
}
#planet-info {
display: flex;
flex-direction: column;
align-self: end;
@apply flex flex-col self-end flex-grow z-20;
}
#planet-splash {
@apply absolute w-full h-full z-0 flex flex-col;
}
#rep {
display: flex;
align-items: end;
justify-content: end;
@apply flex flex-col self-end -ml-6 z-30 relative;
}

.repImage {
}
#passageContainer {
justify-self: end;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.5);
color: #fff;
padding: 20px;
/* max-width: 50vw; */
max-height: 33vh;
overflow-y: auto;
width: 100%;
@apply self-end flex-col w-full p-6 md:max-h-96 overflow-y-auto bg-neutral-400;
}
#passage {
h1,
h2,
h3,
h4,
h5,
h6 {
}
}

#sidebar {
@apply z-20;
height: 100vh;
width: 30vw;
min-width: 300px;
Expand Down Expand Up @@ -120,15 +126,11 @@ tw-story {
}

#sidebar ul {
list-style-type: none;
padding: 0;
@apply p-0 list-none;
}

#sidebar li {
font-size: 0.75rem;
padding: 10px;
border-bottom: 1px solid #444;
cursor: pointer;
@apply text-sm px-0 py-2 border-b-neutral-300 cursor-pointer;
}

#sidebar li:hover {
Expand Down
Binary file added img/planet-1-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/planet-2-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/planet-3-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/planet-4-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/planet-5-splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// postcss.config.js
module.exports = {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
},
};
11 changes: 11 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./twine_src/**/*.{html,js,twee}"],
theme: {
extend: {},
},
plugins: [
require("@tailwindcss/typography"),
// ...
],
};
Loading

0 comments on commit 720338c

Please sign in to comment.