Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request das Issues #98 e #96 #5

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions src/app/components/background/background.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,46 @@
min-width: 1.5em;
text-align: center;
}
.tooltip-container {
position: relative;
/* Necessário para posicionar a tooltip */
display: inline-block;
}

.tooltip {
visibility: hidden;
opacity: 0;
position: absolute;
bottom: 125%;
/* Posiciona acima do ícone */
left: 50%;
transform: translateX(-50%);
background-color: #686565ee;
color: #fff;
text-align: center;
padding: 0.25em 0.5em;
border-radius: 1em;
font-size: 0.75em;
line-height: 1.2;
white-space: nowrap;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: opacity 0.3s ease, visibility 0.3s ease;
z-index: 10;
}

.tooltip-container:hover .tooltip {
visibility: visible;
opacity: 1;
}

.tooltip::after {
content: '';
position: absolute;
top: 95%;
/* Aparece abaixo da tooltip */
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: #686565ee transparent transparent transparent;
}
82 changes: 25 additions & 57 deletions src/app/components/background/background.component.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<div class="w-full flex flex-col min-h-screen justify-between">
<nav class="w-full fixed top-0 left-0 z-50 bg-white">
<div class="pt-10 flex justify-center items-center">
<img
alt="simbolo-unb"
src="../../../assets/Icone-unbtv.svg"
class="h-10"
/>
<a [routerLink]="['/catalog']">
<img alt="simbolo-unb" src="../../../assets/Icone-unbtv.svg" class="h-10" />
</a>
</div>
<div
*ngIf="
<div *ngIf="
getActualRoute() !== '/login' && getActualRoute() !== '/loginsocial'
"
>
">
<div class="flex flex-row items-center justify-center pl-3">
<ul class="flex flex-row gap-1 text-xs">
<div *ngIf="getActualRoute() === '/stream'">
Expand Down Expand Up @@ -60,13 +56,7 @@
</ul>
<div class="card flex justify-content-center mx-2">
<p-menu #menu [model]="items" [popup]="true"></p-menu>
<button
pButton
type="button"
(click)="menu.toggle($event)"
label="&#9776;"
class="menu-button"
></button>
<button pButton type="button" (click)="menu.toggle($event)" label="&#9776;" class="menu-button"></button>
<div class="notification-badge-wrapper" *ngIf="hasNotifications">
<div class="notification-badge"></div> <!-- Badge sem o número -->
</div>
Expand All @@ -77,69 +67,47 @@
<div class="flex-grow p-3 mt-40 mb-auto">
<ng-content></ng-content>
</div>
<footer
class="flex flex-row items-center justify-center gap-3 py-6 px-3 md:py-10 sticky bottom-0 bg-white"
>
<footer class="flex flex-row items-center justify-center gap-3 py-6 px-3 md:py-10 sticky bottom-0 bg-white z-20">
<div>
<a
[href]="
mobileDevide ? 'tel:+556131072775' : 'https://unbtv.unb.br/contato'
"
target="_blank"
id="contact_link"
rel="noopener"
>
<a [href]="
mobileDevide ? 'tel:+556131072775' : 'https://unbtv.unb.br/contato'
" target="_blank" id="contact_link" rel="noopener" class="tooltip-container">
<img alt="telefone" src="../../../assets/telefone.svg" />
<span class="tooltip">Contato</span>
</a>
</div>
<div>
<a
href="https://www.unbtv.unb.br"
target="_blank"
id="website_link"
rel="noopener"
>
<a href="https://www.unbtv.unb.br" target="_blank" id="website_link" rel="noopener" class="tooltip-container">
<img alt="website" src="../../../assets/website.svg" />
<span class="tooltip">UnB-TV</span>
</a>
</div>
<div>
<a
href="https://www.youtube.com/@UnBTV"
target="_blank"
id="youtube_link"
rel="noopener"
>
<a href="https://www.youtube.com/@UnBTV" target="_blank" id="youtube_link" rel="noopener"
class="tooltip-container">
<img alt="youtube" src="../../../assets/youtube.svg" />
<span class="tooltip">YouTube</span>
</a>
</div>
<div>
<a
href="https://www.instagram.com/unbtv/"
target="_blank"
id="instagram_link"
rel="noopener"
>
<a href="https://www.instagram.com/unbtv/" target="_blank" id="instagram_link" rel="noopener"
class="tooltip-container">
<img alt="instagram" src="../../../assets/instagram.svg" />
<span class="tooltip">Instagram</span>
</a>
</div>
<div>
<a
href="https://www.facebook.com/UnBTV"
target="_blank"
id="facebook_link"
rel="noopener"
>
<a href="https://www.facebook.com/UnBTV" target="_blank" id="facebook_link" rel="noopener"
class="tooltip-container">
<img alt="facebook" src="../../../assets/facebook.svg" />
<span class="tooltip">Facebook</span>
</a>
</div>
<div>
<a
href="https://www.twitter.com/unb_tv"
target="_blank"
id="twitter_link"
rel="noopener"
>
<a href="https://www.twitter.com/unb_tv" target="_blank" id="twitter_link" rel="noopener"
class="tooltip-container">
<img alt="x" src="../../../assets/x.svg" />
<span class="tooltip">X</span>
</a>
</div>
</footer>
Expand Down
Loading