Added Device Detection and conditional formatting for Mobile
This commit is contained in:
1 parent
166e2503ee
commit
97217cb149
31 files changed
+261
-453
No files matched your search
@@ -19,6 +19,24 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.about-header-mobile {
|
||||
text-align: center;
|
||||
padding-top: 50px;
|
||||
}
|
||||
|
||||
.about-header-mobile p {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.about-header-mobile h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px 30px 8px 30px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.about-header {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -67,7 +85,7 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
h3 {
|
||||
.tech-stack-title {
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, #9c27b0, #6200ea);
|
||||
@@ -76,6 +94,15 @@ h3 {
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.tech-stack-title-mobile {
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, #9c27b0, #6200ea);
|
||||
margin: 8px 80px 20px 80px;
|
||||
padding: 10px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.tech-stack {
|
||||
background: linear-gradient(135deg, #9c27b0, #6200ea);
|
||||
border-radius: 40px;
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<div id="vanta-about-bg"></div>
|
||||
<div class="about-container">
|
||||
<div class="about-header">
|
||||
<div class="about-header" *ngIf="!isMobile">
|
||||
<h1>About Me</h1>
|
||||
<p class="subtitle">Hobby developer & designer</p>
|
||||
</div>
|
||||
<div class="about-header-mobile" *ngIf="isMobile">
|
||||
<h1>About Me</h1>
|
||||
<p class="subtitle">Hobby developer & designer</p>
|
||||
</div>
|
||||
@@ -14,7 +18,8 @@
|
||||
When I'm not coding, I love learning new technologies and contributing to open-source projects.<br>I also give support on the Pterodactyl Discord
|
||||
</p>
|
||||
<br>
|
||||
<h3>Tech Stack</h3>
|
||||
<h3 class="tech-stack-title" *ngIf="!isMobile">Tech Stack</h3>
|
||||
<h3 class="tech-stack-title-mobile" *ngIf="isMobile">Tech Stack</h3>
|
||||
<div class="tech-stack">
|
||||
<div class="category">
|
||||
<h4>= WEB SERVERS =</h4>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { AboutComponent } from './about.component';
|
||||
|
||||
describe('AboutComponent', () => {
|
||||
let component: AboutComponent;
|
||||
let fixture: ComponentFixture<AboutComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [AboutComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AboutComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -1,13 +1,21 @@
|
||||
import {Component, OnInit, OnDestroy, AfterViewInit} from '@angular/core';
|
||||
import {Meta, Title} from '@angular/platform-browser';
|
||||
import { DeviceDetectorService } from 'ngx-device-detector';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-about',
|
||||
templateUrl: './about.component.html',
|
||||
imports: [
|
||||
NgIf
|
||||
],
|
||||
styleUrls: ['./about.component.css']
|
||||
})
|
||||
export class AboutComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
constructor(private titleService: Title, private meta: Meta) {}
|
||||
constructor(private titleService: Title, private meta: Meta, private deviceService: DeviceDetectorService) {
|
||||
this.isMobile = this.deviceService.isMobile();
|
||||
}
|
||||
isMobile: boolean;
|
||||
private vantaEffect: any;
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Reference in new issue
Block a user