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,120 @@
|
||||
#vanta-portfolio-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 */
|
||||
}
|
||||
|
||||
.portfolio-container {
|
||||
position: relative;
|
||||
color: white;
|
||||
padding: 120px 20px;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
}
|
||||
|
||||
.portfolio-header {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.portfolio-header h1 {
|
||||
font-size: 2.5rem;
|
||||
background: transparent;
|
||||
border: 4px solid white;
|
||||
margin: 8px 330px 8px 330px;
|
||||
padding: 10px;
|
||||
border-radius: 45px;
|
||||
}
|
||||
|
||||
.portfolio-header .subtitle {
|
||||
font-size: 1.2rem;
|
||||
font-style: italic;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.portfolio-gallery {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 20px;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
width: 250px;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
padding: 10px;
|
||||
transition: transform 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.gallery-item img {
|
||||
width: 100%;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.gallery-item:hover {
|
||||
transform: scale(1.05);
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
.gallery-item p {
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.portfolio-footer {
|
||||
text-align: center;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.ko-fi-btn {
|
||||
background-color: #FF5C8D;
|
||||
color: white;
|
||||
border: none;
|
||||
padding: 12px 25px;
|
||||
font-size: 1.2rem;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.ko-fi-btn:hover {
|
||||
background-color: #FF3C75;
|
||||
}
|
||||
|
||||
.text-content p {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 400;
|
||||
margin-bottom: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.text-content a {
|
||||
color: cornflowerblue;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.portfolio-container {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.portfolio-header h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.portfolio-gallery {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.gallery-item {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<div id="vanta-portfolio-bg"></div>
|
||||
<div class="portfolio-container">
|
||||
<div class="portfolio-header">
|
||||
<h1>My Portfolio</h1>
|
||||
<p class="subtitle">Projects & Designs</p>
|
||||
</div>
|
||||
<div class="text-content">
|
||||
<p>
|
||||
Welcome to my portfolio!<br><br>
|
||||
I mostly do modern graphic designs since a couple years now,
|
||||
but I'm also getting better at coding and you might soon see a couple little coding projects from my <a href="https://github.com/itzminey">GitHub</a> listed here too!<br>
|
||||
If you like what I do consider following me on my <a href="https://linktr.ee/itzminey">socials</a> and if you feel really generous leave a top on my <a href="https://ko-fi.com/itzminey">Ko-Fi!</a><br>
|
||||
You can also commission me to make designs for you, just click on the button at the end of this page!
|
||||
</p>
|
||||
</div>
|
||||
<div class="portfolio-gallery">
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design1.png" alt="Design 1">
|
||||
<p>Abstract Background</p>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design2.png" alt="Design 2">
|
||||
<p>Profile Picture Design</p>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design3.png" alt="Design 3">
|
||||
<p>Pixelart Canvas</p>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design4.png" alt="Design 4">
|
||||
<p>Profile Picture Design 2</p>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design5.png" alt="Design 5">
|
||||
<p>Social Media Banner</p>
|
||||
</div>
|
||||
<div class="gallery-item">
|
||||
<img src="/assets/design6.png" alt="Design 6">
|
||||
<p>Logo Design</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="portfolio-footer">
|
||||
<a href="https://ko-fi.com/itzminey/commissions" target="_blank">
|
||||
<button class="ko-fi-btn">Commission me on Ko-Fi</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { PortfolioComponent } from './portfolio.component';
|
||||
|
||||
describe('PortfolioComponent', () => {
|
||||
let component: PortfolioComponent;
|
||||
let fixture: ComponentFixture<PortfolioComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [PortfolioComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(PortfolioComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
import {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core';
|
||||
import {Meta, Title } from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-portfolio',
|
||||
imports: [],
|
||||
templateUrl: './portfolio.component.html',
|
||||
styleUrl: './portfolio.component.css'
|
||||
})
|
||||
export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
constructor(private titleService: Title, private meta: Meta) {}
|
||||
private vantaEffect: any;
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Portfolio | itzMiney');
|
||||
this.meta.updateTag({ name: 'description', content: 'This is my portfolio where you can find examples of my designs and other projects!' });
|
||||
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-portfolio-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-portfolio-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,
|
||||
color: 0xac1f4e,
|
||||
backgroundColor: 0x191522
|
||||
});
|
||||
}
|
||||
|
||||
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