diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 6ec4847..aa583b1 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,5 @@ import {Component, OnInit} from '@angular/core'; -import {NgIf} from '@angular/common'; +import {CommonModule} from '@angular/common'; import {ActivatedRoute, Router, RouterOutlet} from '@angular/router'; import {NavbarComponent} from './shared/navbar/navbar.component'; import {MobileNavbarComponent} from './shared/mobile-navbar/mobile-navbar.component'; @@ -9,7 +9,7 @@ import {TranslateService} from '@ngx-translate/core'; @Component({ selector: 'app-root', - imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent, NgIf], + imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent, CommonModule], templateUrl: './app.component.html', styleUrl: './app.component.css', }) diff --git a/src/app/blog/article-page/article-page.component.css b/src/app/blog/article-page/article-page.component.css index d641e2f..d1fa384 100644 --- a/src/app/blog/article-page/article-page.component.css +++ b/src/app/blog/article-page/article-page.component.css @@ -133,6 +133,62 @@ h1 { animation: spin 1s linear infinite; } +::ng-deep img { + max-width: 900px; + padding: 15px; + border-radius: 35px; + height: auto; +} + +::ng-deep .gallery { + display: grid; + max-width: 900px; + grid-template-columns: repeat(3, 1fr); + gap: 15px; + margin: auto; + padding: 15px; +} + +::ng-deep .gallery img { + width: 100%; + height: auto; + border-radius: 20px; + object-fit: cover; +} + +::ng-deep .modal { + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: rgba(0,0,0,0.5); + display: flex; + justify-content: center; + align-items: center; + animation: fadeIn 0.3s ease forwards; + z-index: 1000; + cursor: pointer; +} + +::ng-deep .modal img { + max-width: 80%; + max-height: 80%; + border-radius: 20px; + object-fit: contain; +} + +@keyframes fadeIn { + from { + opacity: 0; + transform: scale(0.95); /* optional: slight zoom effect */ + } + to { + opacity: 1; + transform: scale(1); + } +} + @keyframes spin { 0% { transform: rotate(0deg); @@ -141,3 +197,15 @@ h1 { transform: rotate(360deg); } } + +@media (max-width: 768px) { + ::ng-deep .gallery img { + flex: 1 1 calc(50% - 15px); + } +} + +@media (max-width: 480px) { + ::ng-deep .gallery img { + flex: 1 1 100%; + } +} diff --git a/src/app/blog/article-page/article-page.component.html b/src/app/blog/article-page/article-page.component.html index ef626be..b9a3793 100644 --- a/src/app/blog/article-page/article-page.component.html +++ b/src/app/blog/article-page/article-page.component.html @@ -6,7 +6,7 @@
{{ 'PORTF_SUB' | translate }}
-
- Abstract Background
+{{ 'PORTF_SUB' | translate }}
- Profile Picture Design
+
- Pixelart Canvas
-
- Profile Picture Design 2
-
- Social Media Banner
-
- Logo Design
-
- Clipart Design
-