Skip to content

Commit

Permalink
modified: assets/css/style.css
Browse files Browse the repository at this point in the history
	modified:   assets/js/componentes/floatingButton.js
	modified:   assets/js/componentes/slides/slideImages.js
  • Loading branch information
faustinopsy committed Feb 29, 2024
1 parent 195ef14 commit f34fda4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
25 changes: 16 additions & 9 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,24 @@ main {
position: relative;
margin: auto;
border: dotted 1px #00000042;
background-color: #bbb;
background-color: #bbbbbb2c;
}

.mySlides {
display: none;
}

.mySlides img {
width: 100%;
object-fit: contain;
}
.prev, .next {
width: 50px;
height: 30px;
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
color: white;
color: rgb(0, 0, 0);
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
Expand All @@ -51,14 +52,20 @@ main {
}

.next {
width: 50px;
height: 30px;
width: 50px;
height: 58px;
right: 0;
border-radius: 3px 0 0 3px;
border-radius: 18px 0 0 18px;
}
.prev {
width: 50px;
height: 58px;
left: 0;
border-radius: 0 17px 18px 0;
}

.prev:hover, .next:hover {
background-color: rgba(0,0,0,0.8);
color: rgb(255, 255, 255);
}

.text {
Expand Down
2 changes: 0 additions & 2 deletions assets/js/componentes/floatingButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ class FloatingButton {
this.i18nService = i18nService;
this.navegar = navegar;
this.buttonElement = document.createElement('button');
//this.buttonElement.textContent = this.i18nService.t('open');
this.buttonElement.classList.add('floating-button');
}

render() {
document.body.appendChild(this.buttonElement);
this.buttonElement.addEventListener('click', () => this.navegar('#config'));
Expand Down
2 changes: 1 addition & 1 deletion assets/js/componentes/slides/slideImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SlideImages {
const slides = this.images.map((image, index) => `
<div class="mySlides fade ">
<div class="numbertext">${index + 1} / ${this.images.length}</div>
<img src="${image}" style="width:100%;" alt="Painel de slides">
<img src="${image}" alt="Painel de slides">
</div>
`).join('');
const controls = this.slideControls.render();
Expand Down

0 comments on commit f34fda4

Please sign in to comment.