Styling adjustments
This commit is contained in:
1 parent
65b5430c7e
commit
cae27a9fa0
13 files changed
+108
-117
No files matched your search
@@ -22,7 +22,7 @@
|
||||
.portfolio-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding: 120px 20px;
|
||||
padding-bottom: 60px;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
@@ -37,26 +37,12 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.portfolio-header-mobile {
|
||||
text-align: center;
|
||||
padding-top: 50px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.portfolio-header-mobile h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px 30px 8px 30px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.portfolio-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px 330px 8px 330px;
|
||||
margin: 8px auto 8px auto;
|
||||
max-width: 280px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
@@ -1,18 +1,10 @@
|
||||
<div id="vanta-portfolio-bg"></div>
|
||||
<div class="height-container">
|
||||
<div class="portfolio-container">
|
||||
<ng-container *ngIf="!isMobile; else mobileContainer">
|
||||
<div class="portfolio-header" *ngIf="!isMobile">
|
||||
<div class="portfolio-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
|
||||
<h1>My Portfolio</h1>
|
||||
<p class="subtitle">Projects & Designs</p>
|
||||
</div>
|
||||
</ng-container>
|
||||
<ng-template #mobileContainer>
|
||||
<div class="portfolio-header-mobile" *ngIf="isMobile">
|
||||
<h1>My Portfolio</h1>
|
||||
<p class="subtitle">Projects & Designs</p>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="text-content">
|
||||
<p>
|
||||
Welcome to my portfolio!<br><br>
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
|
||||
import {VantaBackgroundService} from '../services/vanta-background.service';
|
||||
import {DeviceDetectorService} from '../services/device-detector.service';
|
||||
import {isPlatformBrowser, NgIf} from '@angular/common';
|
||||
import {isPlatformBrowser, NgIf, NgStyle} from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-portfolio',
|
||||
imports: [
|
||||
NgIf
|
||||
NgIf,
|
||||
NgStyle
|
||||
],
|
||||
templateUrl: './portfolio.component.html',
|
||||
styleUrl: './portfolio.component.css'
|
||||
|
||||
Reference in new issue
Block a user