2 Commits

Author SHA1 Message Date
c8168580d6 feat: dmca footer 2024-07-21 19:54:59 +03:00
f3a3344004 feat: started header changing 2024-07-20 23:47:35 +03:00
8 changed files with 50 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -8,7 +8,8 @@
} }
<app-header></app-header> <app-header></app-header>
<div class="h-10"></div> <div class="h-10"></div>
<main> <div class="content">
<router-outlet></router-outlet> <router-outlet></router-outlet>
</main> <app-footer></app-footer>
</div>
<app-notification></app-notification> <app-notification></app-notification>

View File

@@ -1,4 +1,4 @@
main { .content {
overflow-y: auto; overflow-y: auto;
height: calc(100vh - 3rem); height: calc(100vh - 3rem);
} }

View File

@@ -1,12 +1,19 @@
import { Component } from "@angular/core"; import { Component } from "@angular/core";
import { RouterModule } from "@angular/router"; import { RouterModule } from "@angular/router";
import { AppService } from "./app.service"; import { AppService } from "./app.service";
import { FooterComponent } from "./components/footer/footer.component";
import { HeaderComponent } from "./components/header/header.component"; import { HeaderComponent } from "./components/header/header.component";
import { NotificationComponent } from "./components/notification/notification.component"; import { NotificationComponent } from "./components/notification/notification.component";
@Component({ @Component({
standalone: true, standalone: true,
imports: [RouterModule, HeaderComponent, NotificationComponent, NotificationComponent], imports: [
RouterModule,
HeaderComponent,
NotificationComponent,
NotificationComponent,
FooterComponent,
],
selector: "app-root", selector: "app-root",
templateUrl: "./app.component.html", templateUrl: "./app.component.html",
styleUrl: "./app.component.less", styleUrl: "./app.component.less",

View File

@@ -0,0 +1,19 @@
<div class="footer w-full border-t border-black bg-gray-300 pt-3">
<p class="text-3xl ps-[5rem]">DMCA Disclaimer</p>
<div class="footer-content h-full px-[5rem] py-6 flex flex-col gap-3">
<div class="block">
<p>На русском:</p>
<p>
Разработчики этого приложения не имеют никакого отношения к контенту, доступному в
приложении. Оно собрано из источников, свободно доступных через любой веб-браузер.
</p>
</div>
<div class="block">
<p>English:</p>
<p>
The developers of this application does not have any affiliation with the content available
in the app. It is collecting from the sources freely available through any web browser.
</p>
</div>
</div>
</div>

View File

@@ -0,0 +1,9 @@
import { Component } from "@angular/core";
@Component({
selector: "app-footer",
templateUrl: "./footer.component.html",
styleUrls: ["./footer.component.less"],
standalone: true,
})
export class FooterComponent {}

View File

@@ -1,6 +1,6 @@
<div <div
[class]=" [class]="
'header fixed flex justify-between w-full px-2 bg-gray-700 md:h-8 items-center md:flex-row flex-col md:gap-0 gap-3 text-xl md:text-base ' + 'header fixed flex justify-between w-full px-2 bg-gray-700 md:h-10 items-center md:flex-row flex-col md:gap-0 gap-3 text-xl md:text-base ' +
(menuOpened ? 'h-screen' : '') (menuOpened ? 'h-screen' : '')
" "
> >
@@ -39,6 +39,7 @@
#searchInput #searchInput
class="outline-none ps-1 text-sm leading-6 w-full border-0 bg-transparent border-r border-gray-700" class="outline-none ps-1 text-sm leading-6 w-full border-0 bg-transparent border-r border-gray-700"
(keydown.enter)="search()" (keydown.enter)="search()"
placeholder="Начать поиск"
/> />
<button <button
class="align-middle w-[100px] text-center border-0 flex flex-col items-center justify-center" class="align-middle w-[100px] text-center border-0 flex flex-col items-center justify-center"
@@ -48,6 +49,14 @@
<span class="text-sm text-black h-full">Поиск</span> <span class="text-sm text-black h-full">Поиск</span>
</button> </button>
</div> </div>
<div class="profile-pic hidden md:block">
<!-- TODO: profile pic of current user -->
<img
src="pic/Blank-profile.png"
alt="Profile pic"
class="aspect-square w-8 bg-white rounded-md"
/>
</div>
<div <div
[class]=" [class]="
'flex flex-col w-full justify-start items-center md:hidden overflow-hidden ' + 'flex flex-col w-full justify-start items-center md:hidden overflow-hidden ' +