[Added] Base of the project

This commit is contained in:
Ninjaws
2024-11-19 22:44:43 +01:00
parent 3905715f6f
commit 87ca17c1ba
49 changed files with 16553 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
<section id="about" class="py-20 bg-white text-center">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-semibold text-gray-800 mb-6">About Me</h2>
<p class="text-xl text-gray-600">I am a passionate software developer with experience in building web applications using modern technologies like Angular, TypeScript, and Tailwind CSS. I love creating clean, maintainable, and efficient code.</p>
</div>
</section>
View File
+23
View File
@@ -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();
});
});
+12
View File
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-about',
standalone: true,
imports: [],
templateUrl: './about.component.html',
styleUrl: './about.component.scss'
})
export class AboutComponent {
}
+12
View File
@@ -0,0 +1,12 @@
<app-header></app-header>
<main class="min-h-screen bg-gray-100">
<app-about></app-about>
<app-skills></app-skills>
<app-projects></app-projects>
<app-contact></app-contact>
</main>
<footer class="bg-gray-800 text-white text-center py-4">
<p>&copy; 2024 Ian Vink. All rights reserved.</p>
</footer>
View File
+29
View File
@@ -0,0 +1,29 @@
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
}).compileComponents();
});
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have the 'portfolio' title`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('portfolio');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, portfolio');
});
});
+17
View File
@@ -0,0 +1,17 @@
import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { HeaderComponent } from './header/header.component';
import { AboutComponent } from './about/about.component';
import { ContactComponent } from './contact/contact.component';
import { ProjectsComponent } from './projects/projects.component';
import { SkillsComponent } from './skills/skills.component';
@Component({
selector: 'app-root',
imports: [HeaderComponent, AboutComponent, ContactComponent, ProjectsComponent, SkillsComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
export class AppComponent {
title = 'portfolio';
}
+8
View File
@@ -0,0 +1,8 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]
};
+3
View File
@@ -0,0 +1,3 @@
import { Routes } from '@angular/router';
export const routes: Routes = [];
+7
View File
@@ -0,0 +1,7 @@
<section id="contact" class="py-20 bg-gray-100">
<div class="container mx-auto text-center">
<h2 class="text-3xl font-semibold text-gray-800 mb-6">Contact</h2>
<p class="text-xl text-gray-600 mb-6">Feel free to reach out to me via email or social media.</p>
<a href="mailto:your-email@example.com" class="text-blue-500">Send me an email</a>
</div>
</section>
+23
View File
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ContactComponent } from './contact.component';
describe('ContactComponent', () => {
let component: ContactComponent;
let fixture: ComponentFixture<ContactComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ContactComponent]
})
.compileComponents();
fixture = TestBed.createComponent(ContactComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+12
View File
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-contact',
standalone: true,
imports: [],
templateUrl: './contact.component.html',
styleUrl: './contact.component.scss'
})
export class ContactComponent {
}
+33
View File
@@ -0,0 +1,33 @@
<header class="bg-gray-800 text-white py-6 relative">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center">
<!-- Logo -->
<div class="text-2xl font-bold">Ian Vink</div>
<!-- Navbar for larger screens -->
<nav class="hidden md:flex space-x-6">
<a href="#about" class="hover:text-gray-400">About</a>
<a href="#skills" class="hover:text-gray-400">Skills</a>
<a href="#projects" class="hover:text-gray-400">Projects</a>
<a href="#contact" class="hover:text-gray-400">Contact</a>
</nav>
<!-- Mobile Menu Button -->
<div class="md:hidden">
<button (click)="toggleMenu()" class="text-white focus:outline-none">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div *ngIf="isMenuOpen" class="absolute top-full left-0 w-full bg-gray-800 text-white space-y-4 p-6 z-50">
<a *ngFor="let menuItem of menuItems" href="{{menuItem.href}}" class="block hover:text-gray-400" (click)="closeMenu()">{{menuItem.name}}</a>
<!-- <a href="#skills" class="block hover:text-gray-400">Skills</a> -->
<!-- <a href="#projects" class="block hover:text-gray-400">Projects</a> -->
<!-- <a href="#contact" class="block hover:text-gray-400">Contact</a> -->
</div>
</div>
</header>
+23
View File
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HeaderComponent } from './header.component';
describe('HeaderComponent', () => {
let component: HeaderComponent;
let fixture: ComponentFixture<HeaderComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [HeaderComponent]
})
.compileComponents();
fixture = TestBed.createComponent(HeaderComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+35
View File
@@ -0,0 +1,35 @@
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
interface MenuItem {
name: string,
href: string
}
@Component({
selector: 'app-header',
standalone: true,
imports: [CommonModule],
templateUrl: './header.component.html',
styleUrl: './header.component.scss'
})
export class HeaderComponent {
menuItems: MenuItem[] = [];
isMenuOpen = false;
constructor() {
this.menuItems.push({name:"About", href: "#about"});
this.menuItems.push({name:"Skills", href: "#skills"});
this.menuItems.push({name:"Projects", href: "#projets"});
this.menuItems.push({name:"Contact", href: "#contact"});
}
toggleMenu() {
this.isMenuOpen = !this.isMenuOpen;
}
closeMenu() {
this.isMenuOpen = false;
}
}
+33
View File
@@ -0,0 +1,33 @@
<header class="bg-gray-800 text-white py-6">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center">
<!-- Logo -->
<div class="text-2xl font-bold">Your Name</div>
<!-- Navbar for larger screens -->
<nav class="hidden md:flex space-x-6">
<a href="#about" class="hover:text-gray-400">About</a>
<a href="#skills" class="hover:text-gray-400">Skills</a>
<a href="#projects" class="hover:text-gray-400">Projects</a>
<a href="#contact" class="hover:text-gray-400">Contact</a>
</nav>
<!-- Mobile Menu Button -->
<div class="md:hidden">
<button (click)="toggleMenu()" class="text-white focus:outline-none">
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div *ngIf="isMenuOpen" class="md:hidden mt-4 space-y-4 text-center">
<a href="#about" class="block hover:text-gray-400">About</a>
<a href="#skills" class="block hover:text-gray-400">Skills</a>
<a href="#projects" class="block hover:text-gray-400">Projects</a>
<a href="#contact" class="block hover:text-gray-400">Contact</a>
</div>
</div>
</header>
+37
View File
@@ -0,0 +1,37 @@
<!-- <section id="projects" class="py-20 bg-white">
<div class="container mx-auto text-center">
<h2 class="text-3xl font-semibold text-gray-800 mb-6">Projects</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="bg-gray-100 p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">Project 1</h3>
<p class="text-gray-600 mt-2">A short description of the project.</p>
<a href="#" class="text-blue-500 mt-4 inline-block">View Project</a>
</div>
</div>
</div>
</section> -->
<!-- bg-gray-900 -->
<section id="projects" class="py-16 bg-gray-800 text-white">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-semibold text-center mb-12 relative">Projects</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8">
<div *ngFor="let project of projects" class="bg-white/10 backdrop-blur-lg rounded-lg shadow-lg overflow-visible group relative">
<!-- class="bg-gray-400 rounded-lg shadow-lg overflow-visible group"> -->
<img src="{{project.image}}" alt="{{project.title}}"
class="w-full h-56 rounded-sm object-cover hover:scale-105 transition-all duration-300">
<div class="p-6">
<h3 class="text-2xl font-semibold text-teal-400 mb-4">{{project.title}}</h3>
<p class="text-gray-300 mb-4">{{project.description}}</p>
<div class="flex flex-wrap gap-2">
<span *ngFor="let technology of project.technologies"
class="bg-teal-500 text-white text-xs px-2 py-1 rounded-md">{{technology}}</span>
</div>
</div>
</div>
</div>
</div>
</section>
+35
View File
@@ -0,0 +1,35 @@
h2:before {
content: "";
width: 4rem;
height: 2px;
background: #ea5f00;
/* Orange color */
position: absolute;
top: 50%;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
/* Center it horizontally */
transform: translateY(-50%);
/* Adjust vertically to ensure it's centered */
left: -14rem;
}
h2:after {
content: "";
width: 4rem;
height: 2px;
background: #ea5f00;
/* Orange color */
position: absolute;
top: 50%;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
/* Center it horizontally */
transform: translateY(-50%);
/* Adjust vertically to ensure it's centered */
left: 14rem;
}
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ProjectsComponent } from './projects.component';
describe('ProjectsComponent', () => {
let component: ProjectsComponent;
let fixture: ComponentFixture<ProjectsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [ProjectsComponent]
})
.compileComponents();
fixture = TestBed.createComponent(ProjectsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+28
View File
@@ -0,0 +1,28 @@
import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
interface Project {
title: string,
year: number,
description: string,
image: string,
technologies: string[]
}
@Component({
selector: 'app-projects',
imports: [CommonModule],
templateUrl: './projects.component.html',
styleUrl: './projects.component.scss'
})
export class ProjectsComponent {
projects: Project[] = [];
constructor() {
this.projects.push({title:"Jelly Rescue", year: 2015, description: "Rescue Jellies", image:"Jelly Game - demo.png", technologies: ["C++", "SFML2.0", "Visual Studio"]});
this.projects.push({title:"Microcontroller Tetris", year: 2019, description: "Tetris on a 7-segment display", image:"Setup 3.png", technologies: ["C", "ATmega32", "Visual Studio"]});
this.projects.push({title:"Goal-based vector field pathfinding algorithm", year: 2018, description: "Particle simulator that can be controlled using the vector-field, and can deal with obstacles", image:"Particle Flow - Demonstration.png", technologies: ["Java", "Swing", "IntelliJ"]});
}
}
+85
View File
@@ -0,0 +1,85 @@
<!-- <section id="skills" class="py-20 bg-gray-100">
<div class="container mx-auto text-center">
<h2 class="text-3xl font-semibold text-gray-800 mb-6">Skills</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">Angular</h3>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">JavaScript</h3>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">Tailwind CSS</h3>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">Node.js</h3>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">Git & GitHub</h3>
</div>
<div class="bg-white p-6 rounded-lg shadow-md">
<h3 class="text-xl font-semibold text-gray-700">TypeScript</h3>
</div>
</div>
</div>
</section> -->
<section id="skills" class="py-16 bg-gray-900 text-white">
<div class="container mx-auto px-6">
<h2 class="text-4xl font-semibold text-center mb-12 relative">Skills</h2>
<!-- Grid container for Frontend, Backend, DevOps -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Frontend -->
<div class="flex flex-col items-center p-8 bg-gray-800 rounded-lg shadow-lg">
<h3 class="text-3xl font-semibold mb-4 text-center text-teal-400">Frontend</h3>
<ul class="list-none space-y-2 text-center">
<li>Angular</li>
<li>Typescript</li>
<li>Javascript</li>
<li>CSS</li>
<li>HTML</li>
<li>Tailwind</li>
<li>SASS (SCSS)</li>
<li>RxJS</li>
<li>Playwright</li>
</ul>
</div>
<!-- Backend -->
<div class="flex flex-col items-center p-8 bg-gray-800 rounded-lg shadow-lg">
<h3 class="text-3xl font-semibold mb-4 text-center text-teal-400">Backend</h3>
<ul class="list-none space-y-2 text-center">
<li>Java</li>
<li>Spring Boot</li>
<li>JUnit</li>
<li>C#</li>
<li>ASP.NET Core</li>
<li>NestJS</li>
<li>SQL</li>
<li>PostgreSQL</li>
<li>MS SQLServer</li>
</ul>
</div>
<!-- DevOps -->
<div class="flex flex-col items-center p-8 bg-gray-800 rounded-lg shadow-lg">
<h3 class="text-3xl font-semibold mb-4 text-center text-teal-400">DevOps</h3>
<ul class="list-none space-y-2 text-center">
<li>Docker</li>
<li>CI/CD</li>
<li>Jenkins</li>
<li>Bash</li>
<li>Git</li>
<li>Linux</li>
<li>GitHub</li>
<li>GitLab</li>
<li>Nginx</li>
</ul>
</div>
</div>
</div>
</section>
+35
View File
@@ -0,0 +1,35 @@
h2:before {
content: "";
width: 4rem;
height: 2px;
background: #ea5f00;
/* Orange color */
position: absolute;
top: 50%;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
/* Center it horizontally */
transform: translateY(-50%);
/* Adjust vertically to ensure it's centered */
left: -11rem;
}
h2:after {
content: "";
width: 4rem;
height: 2px;
background: #ea5f00;
/* Orange color */
position: absolute;
top: 50%;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
/* Center it horizontally */
transform: translateY(-50%);
/* Adjust vertically to ensure it's centered */
left: 11rem;
}
+23
View File
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SkillsComponent } from './skills.component';
describe('SkillsComponent', () => {
let component: SkillsComponent;
let fixture: ComponentFixture<SkillsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [SkillsComponent]
})
.compileComponents();
fixture = TestBed.createComponent(SkillsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+12
View File
@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'app-skills',
standalone: true,
imports: [],
templateUrl: './skills.component.html',
styleUrl: './skills.component.scss'
})
export class SkillsComponent {
}