Skip to content

Commit

Permalink
fix(chapter): adjust text shadow and positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerd Müller committed Jun 21, 2020
1 parent a2d4f56 commit 39c0288
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions apps/demol/src/app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
{
"type": "image",
"layer": "primary",
"layer": "second",
"value": "daheim_familie"
}
]
Expand Down Expand Up @@ -193,9 +193,9 @@
"value": "Hilf Anna, ihn wieder zusammenzufügen, um zum Treffpunkt der Ortsgruppe zu gelangen. Ziehe dazu die durcheinandergewürfelten Kartenausschnitte in das entsprechende vorgezeichnete Feld. Wenn du das Puzzle richtig gelöst hast, kommst du zum nächsten Kapitel."
},
{
"type": "suitcase",
"type": "puzzle",
"layer": "base",
"value": "suitcase"
"value": "puzzle"
},
{
"type": "redirect",
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/chapter/chapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Chapter = (props: ChapterProps) => {
return props.groups.map((group, index) =>
<Fragment key={index}>
{(!group.character || group.character === character) &&
<InView>
<InView threshold={0.5}>
{({ inView, ref, entry }) => (
<section ref={ref} key={index} className={`parallax__group ${group.background ? 'back' : ''} ${inView ? 'active' : ''}`}>
<Group {...group} />
Expand Down
4 changes: 4 additions & 0 deletions libs/ui/src/lib/image/image.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
width: 66%;
}

.second {
width: 50%;
}

.third {
width: 33%;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/src/lib/info/info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
z-index: 11;
background-color: rgba(0,0,0,.7);
color: #fff;
font-size: 1rem;
font-size: 1.1rem;
}

&:hover {
Expand Down
4 changes: 4 additions & 0 deletions libs/ui/src/lib/text/text.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.box {
width: 80%;

p {
text-shadow: 2px 2px lightgrey;
}
}

.column {
Expand Down

0 comments on commit 39c0288

Please sign in to comment.