Styling adjustments
This commit is contained in:
1 parent
65b5430c7e
commit
cae27a9fa0
13 files changed
+108
-117
No files matched your search
@@ -21,17 +21,42 @@
|
||||
|
||||
.height-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
width: 100vw;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
z-index: 10; /* Ensure the text and button are above the canvas */
|
||||
}
|
||||
|
||||
.blog-header .subtitle {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.blog-header {
|
||||
text-align: center;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.blog-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px auto 8px auto;
|
||||
max-width: 220px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.blog-container {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
max-width: 900px;
|
||||
margin-top: 120px;
|
||||
margin-bottom: 80px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 60px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<div id="vanta-blog-bg"></div>
|
||||
<div class="height-container">
|
||||
<div class="blog-header" [ngStyle]="{'margin-top': isMobile ? '72px' : '112px'}">
|
||||
<h1>Blog</h1>
|
||||
<p class="subtitle">Some (very) irregular updates</p>
|
||||
</div>
|
||||
<div class="blog-container">
|
||||
<div *ngIf="articles$ | async as articles; else noArticles">
|
||||
<div *ngFor="let article of articles" (click)="navigateToArticle(article.slug)" class="article-card">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../services/device-detector.service'
|
||||
import {DatePipe, isPlatformBrowser, NgIf, NgFor, AsyncPipe, SlicePipe} from '@angular/common';
|
||||
import {DatePipe, isPlatformBrowser, NgIf, NgFor, AsyncPipe, SlicePipe, NgStyle} from '@angular/common';
|
||||
import {VantaBackgroundService} from '../services/vanta-background.service';
|
||||
import { ArticleService } from '../services/article.service';
|
||||
import { Router } from '@angular/router';
|
||||
@@ -13,7 +13,8 @@ import {Observable} from 'rxjs';
|
||||
NgFor,
|
||||
DatePipe,
|
||||
AsyncPipe,
|
||||
SlicePipe
|
||||
SlicePipe,
|
||||
NgStyle
|
||||
],
|
||||
templateUrl: './blog.component.html',
|
||||
styleUrl: './blog.component.css'
|
||||
|
||||
Reference in new issue
Block a user