Skip to content

Commit

Permalink
update templates, fixed docker-compose build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmrrqq committed May 27, 2022
1 parent 97c5f9b commit f762fc4
Show file tree
Hide file tree
Showing 11 changed files with 348 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ resources/js/*
!resources/js/README.md
src/sass/custom_chromakeying.css
src/sass/custom_live_chromakeying.css
src/sass/custom_style.scss
# src/sass/custom_style.scss
stats
template/custom.template.php
# template/custom.template.php
trash
vendor/simple-translator/
.sass-cache
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ WORKDIR /app
COPY . .

# Install and build
RUN git config --global --add safe.directory /app
RUN git submodule update --init
RUN yarn install
RUN yarn build
12 changes: 6 additions & 6 deletions config/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$config['dev']['enabled'] = true;
$config['dev']['demo_images'] = false;
$config['dev']['advanced_log'] = false;
$config['start_screen']['title'] = 'Photobooth';
$config['start_screen']['title'] = 'Lachlachs';
$config['start_screen']['title_visible'] = true;
$config['start_screen']['subtitle'] = NULL;
$config['start_screen']['subtitle_visible'] = true;
Expand Down Expand Up @@ -130,14 +130,14 @@
$config['pswp']['counterEl'] = true;
$config['pswp']['history'] = true;
// show_date only works if picture naming = 'dateformatted'
$config['gallery']['show_date'] = true;
$config['gallery']['show_date'] = false;
$config['gallery']['date_format'] = 'd.m.Y - G:i';
$config['gallery']['db_check_enabled'] = true;
$config['gallery']['db_check_time'] = '10';
$config['gallery']['allow_delete'] = true;
$config['gallery']['scrollbar'] = false;
$config['gallery']['bottom_bar'] = true;
$config['gallery']['figcaption'] = true;
$config['gallery']['figcaption'] = false;
$config['pswp']['clickToCloseNonZoomable'] = false;
$config['pswp']['closeOnScroll'] = false;
$config['pswp']['closeOnOutsideClick'] = false;
Expand Down Expand Up @@ -311,15 +311,15 @@
$config['ui']['result_buttons'] = true;
$config['ui']['font_size'] = '16px';
$config['colors']['countdown'] = '#ffffff';
$config['colors']['background_countdown'] = '#214852';
$config['colors']['background_countdown'] = '#2e2e2e';
$config['colors']['cheese'] = '#ffffff';
$config['background']['defaults'] = null;
$config['background']['admin'] = null;
$config['background']['chroma'] = null;
$config['ui']['decore_lines'] = true;
$config['ui']['rounded_corners'] = false;
$config['colors']['primary'] = '#0a6071';
$config['colors']['secondary'] = '#214852';
$config['colors']['primary'] = '#2e2e2e';
$config['colors']['secondary'] = '#0a6071';
$config['colors']['font'] = '#79bad9';
$config['colors']['button_font'] = '#ffffff';
$config['colors']['start_font'] = '#ffffff';
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ version: "3.9"
services:
photobooth:
build: .
# privileged: true
devices:
- '/dev/bus/usb/005:/dev/bus/usb/005'
volumes:
- ./:/app
- /app/resources/css/
Expand Down
4 changes: 2 additions & 2 deletions src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,7 @@ const photoBooth = (function () {
} else {
api.thrill(PhotoStyle.PHOTO);
}
$('.newpic').blur();
$('.newpic').trigger("blur");
});

$('.takeCollage, .newcollage').on('click', function (e) {
Expand All @@ -1163,7 +1163,7 @@ const photoBooth = (function () {
api.thrill(PhotoStyle.COLLAGE);
}

$('.newcollage').blur();
$('.newcollage').trigger("blur");
});

$('#mySidenav .closebtn').on('click', function (e) {
Expand Down
2 changes: 2 additions & 0 deletions src/sass/custom_chromakeying.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'classic_chromakeying';
@import 'partials/modern_button';
56 changes: 56 additions & 0 deletions src/sass/custom_live_chromakeying.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
@import 'classic_live_chromakeying';
@import 'partials/modern_button';

.backgrounds {
border-radius: 4%;
}

.round-btn {
width: 4em;
height: 4em;
}

.gallerybtn {
position: fixed;
top: 1em;
left: 0;
z-index: 10;
margin: 10px;
}

.closebtn {
position: fixed;
top: 1em;
right: 0;
z-index: 10;
margin: 10px;
}

@media (max-width: 1280px) and (orientation: landscape) {
.takeChroma,
.reloadPage,
.deletebtn {
margin: auto;
display: inline-block;
}

.home,
.gallerybtn,
.closebtn {
position: relative;
top: 0;
max-width: 150px;
}
}

@media (max-height: 740px) and (orientation: landscape) {
.backgrounds {
&.shrinked {
height: 350px;
}
}
}

.pswp-rotary-focus {
background: radial-gradient(grey, $mainColor, $hoverColor) !important;
}
154 changes: 154 additions & 0 deletions src/sass/custom_style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
@import 'classic_style';
@import 'partials/modern_button';

html,
body {
height: 100%;
background: #ffffff;
margin: 0px;
}

#start {
.startInner {
height: 100%;
width: 100%;
position: relative;
background: none;
.btn {
margin-top: 3px;
width: auto;
}
}

.fs-button {
position: relative;
top: auto;
bottom: 0px;
left: 0px;
}

.gallery-button {
position: relative;
top: auto;
bottom: 0px;
left: auto;
}

.cups-button {
&.round-btn {
position: fixed;
left: 0;
top: 0;
bottom: auto;
margin: 20px;
}
}
}

.homebtn {
&.round-btn {
position: fixed;
left: 0;
top: 0;
bottom: auto;
margin: 20px;
}
}

.resultInner {
display: block;
width: auto;
max-width: 90%;
position: fixed;
right: 0;
left: auto;
bottom: -15em;
top: auto;
justify-content: center;
transition: bottom 0.5s;
z-index: 100;
margin: 20px;
.round-btn {
display: inline-block;
}
&.show {
position: fixed;
bottom: 0;
}
}

.sidenav {
.closebtn {
width: 1.625em;
height: 1.625em;
margin: 0.3em;
background: radial-gradient(grey, $mainColor, $hoverColor);
color: $buttonFontColor;
.fa {
font-size: 0.8em;
}
}
}

.round-btn:active,
.round-btn:focus,
.round-btn:hover,
.round-btn.focused,
.gallery__close:active,
.gallery__close:hover,
.gallery__close:focus,
.gallery__close.focused,
.gallery__img:active > figure,
.gallery__img:focus > figure,
.gallery__img:hover > figure,
.gallery__img.focused > figure,
.gallery__img:active > img,
.gallery__img:focus > img,
.gallery__img:hover > img,
.gallery__img.focused > img {
opacity: 0.6 !important;
}

.divaussen {
height: 100%;
position: relative;
}

.divinnen {
float: none;
width: 100%;
}

.divinnen2 {
position: absolute;
bottom: 0;
right: 0;
left: 0;
padding: 10px;
margin-left: auto;
margin-right: auto;
}

@media (orientation: portrait) {
.divinnen2 {
margin-left: auto;
margin-right: auto;
}
.round-btn {
width: 4em;
height: 4em;
}
}

.transparenz {
opacity: 0.4;
}

hr,
hr.small {
display: none;
}

.pswp-rotary-focus {
background: radial-gradient(grey, $mainColor, $hoverColor) !important;
}
15 changes: 13 additions & 2 deletions src/sass/partials/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,22 @@
}
}

&__footer {
width: 100%;
// position: absolute;
align-self: flex-end;
bottom: 0;
margin-top: auto;
display: flex;
justify-content: center;
background: $mainColor;
}

&__body {
display: flex;
flex-wrap: wrap;
overflow-y: auto;
justify-content: center;
overflow-y: scroll;
justify-content: left;

a {
display: block;
Expand Down
Loading

0 comments on commit f762fc4

Please sign in to comment.