Initial Commit
This commit is contained in:
1 parent
ae0db346a0
commit
06bc03176b
55 files changed
+1442
-346
No files matched your search
@@ -0,0 +1,119 @@
|
||||
#vanta-about-bg {
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw; /* Full viewport width */
|
||||
height: 100vh; /* Full viewport height */
|
||||
z-index: -100; /* Place the background behind content */
|
||||
}
|
||||
|
||||
.about-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding: 120px 20px;
|
||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
|
||||
max-width: 960px;
|
||||
margin: 0px auto 0px auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.about-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.about-header p {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.about-content p {
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.about-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px 340px 8px 340px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.about-header .subtitle {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.about-content {
|
||||
line-height: 1.6;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.category {
|
||||
border-radius: 8px;
|
||||
padding: 5px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.category h4 {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 500;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.4rem;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, #9c27b0, #6200ea);
|
||||
margin: 8px 380px 20px 380px;
|
||||
padding: 10px;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.tech-stack {
|
||||
background: linear-gradient(135deg, #9c27b0, #6200ea);
|
||||
border-radius: 40px;
|
||||
margin: 0px 30px 0px 30px;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.tech-stack ul {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.tech-stack li {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
margin: 12px 0;
|
||||
padding: 10px;
|
||||
border-radius: 25px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tech-stack li:hover {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.about-container {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.about-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
<div id="vanta-about-bg"></div>
|
||||
<div class="about-container">
|
||||
<div class="about-header">
|
||||
<h1>About Me</h1>
|
||||
<p class="subtitle">Hobby developer & designer</p>
|
||||
</div>
|
||||
|
||||
<div class="about-content">
|
||||
<p>
|
||||
Hello, I'm Michael, a developer and designer based in Austria. I specialize in frontend web development,
|
||||
graphic design, and creating neat UIs.
|
||||
</p>
|
||||
<p>
|
||||
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>
|
||||
<div class="tech-stack">
|
||||
<div class="category">
|
||||
<h4>= WEB SERVERS =</h4>
|
||||
<ul>
|
||||
<li>NGiNX</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="category">
|
||||
<h4>= LANGUAGES =</h4>
|
||||
<ul>
|
||||
<li>Node.js</li>
|
||||
<li>JavaScript/TypeScript</li>
|
||||
<li>Go</li>
|
||||
<li>CSS & HTML</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="category">
|
||||
<h4>= DATABASES =</h4>
|
||||
<ul>
|
||||
<li>MySQL/MariaDB</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="category">
|
||||
<h4>= TOOLS =</h4>
|
||||
<ul>
|
||||
<li>Git</li>
|
||||
<li>Docker</li>
|
||||
<li>VSCode</li>
|
||||
<li>WebStorm</li>
|
||||
<li>IntelliJ</li>
|
||||
<li>Angular</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
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();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,65 @@
|
||||
import {Component, OnInit, OnDestroy, AfterViewInit} from '@angular/core';
|
||||
import {Meta, Title} from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-about',
|
||||
templateUrl: './about.component.html',
|
||||
styleUrls: ['./about.component.css']
|
||||
})
|
||||
export class AboutComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
constructor(private titleService: Title, private meta: Meta) {}
|
||||
private vantaEffect: any;
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('itzMiney\'s Home');
|
||||
this.meta.updateTag({ name: 'description', content: 'Welcome to itzMiney\'s Homepage!\bHere you can find my portfolio and other cool stuff.' });
|
||||
this.meta.updateTag({ property: 'og:image', content: 'https://itzminey.dev/assets/ogimg.png' });
|
||||
|
||||
window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness
|
||||
|
||||
const bgElement = document.getElementById('vanta-about-bg');
|
||||
if (bgElement) {
|
||||
bgElement.style.position = 'fixed';
|
||||
}
|
||||
}
|
||||
ngAfterViewInit() {
|
||||
this.initVanta();
|
||||
this.resizeVanta();
|
||||
}
|
||||
ngOnDestroy() {
|
||||
if (this.vantaEffect) {
|
||||
this.vantaEffect.destroy(); // Clean up the effect on destroy
|
||||
}
|
||||
window.removeEventListener('resize', this.onResize); // Remove the listener when the component is destroyed
|
||||
}
|
||||
|
||||
initVanta() {
|
||||
// Initialize the Vanta effect on the element with ID 'vanta-bg'
|
||||
this.vantaEffect = window.VANTA.NET({
|
||||
el: '#vanta-about-bg',
|
||||
mouseControls: true,
|
||||
touchControls: true,
|
||||
gyroControls: false,
|
||||
scale: 1.00,
|
||||
scaleMobile: 1.00,
|
||||
points: 20.00,
|
||||
maxDistance: 25.00,
|
||||
spacing: 18.00,
|
||||
showDots: false,
|
||||
minWidth: window.innerWidth,
|
||||
minHeight: window.innerHeight,
|
||||
});
|
||||
}
|
||||
|
||||
onResize() {
|
||||
// Update the minHeight and minWidth when the window is resized
|
||||
this.resizeVanta();
|
||||
}
|
||||
|
||||
resizeVanta() {
|
||||
if (this.vantaEffect) {
|
||||
// Trigger the resize on the vanta effect
|
||||
this.vantaEffect.resize();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user