Skip to content

Commit 968136f

Browse files
Merge pull request #13 from dilanka-rathnasiri/optimizing
Optimize app
2 parents 4584145 + f2cc3d3 commit 968136f

38 files changed

+292
-470
lines changed

public/dilanka.jpg

-1.36 MB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div id="aboutMeMainBox" class="global-container">
2+
<div id="aboutMeLeftBox">
3+
<h1>Dilanka Rathnasiri</h1>
4+
<h4 class="text-secondary">Software Engineer</h4>
5+
<p>
6+
Passionate software engineer with expertise in cloud technologies,
7+
microservices architecture, and infrastructure as code.
8+
</p>
9+
</div>
10+
11+
<img
12+
id="profilePic"
13+
ngSrc="assets/dilanka.jpg"
14+
class="rounded-circle border border-light shadow-lg border-5 profile-pic-img"
15+
alt="Dilanka Rathnasiri"
16+
width="300"
17+
height="300"
18+
priority
19+
/>
20+
</div>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#aboutMeMainBox {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
gap: 5rem;
6+
flex-wrap: wrap;
7+
}
8+
9+
#aboutMeLeftBox {
10+
display: flex;
11+
flex-direction: column;
12+
justify-content: space-around;
13+
align-items: center;
14+
min-width: 20rem;
15+
max-width: 35rem;
16+
text-align: center;
17+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from '@angular/core';
2+
import { NgOptimizedImage } from '@angular/common';
3+
4+
@Component({
5+
selector: 'app-about-me',
6+
imports: [NgOptimizedImage],
7+
templateUrl: './about-me.component.html',
8+
styleUrl: './about-me.component.scss',
9+
})
10+
export class AboutMeComponent {}

src/app/app.routes.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ import { Routes } from '@angular/router';
22
import { HomeComponent } from './home/home.component';
33
import { ProjectComponent } from './project/project.component';
44
import { BlogComponent } from './blog/blog.component';
5-
import { CertificationsComponent } from './certifications/certifications.component';
6-
import { ExperienceComponent } from './experience/experience.component';
75

86
export const routes: Routes = [
97
{ path: '', component: HomeComponent, pathMatch: 'full' },
10-
{ path: 'experience', component: ExperienceComponent },
118
{ path: 'projects', component: ProjectComponent },
129
{ path: 'blogs', component: BlogComponent },
13-
{ path: 'certifications', component: CertificationsComponent },
1410
{ path: '**', component: HomeComponent },
1511
];

src/app/blog/blog.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<div id="blogsMainBox" class="container">
1+
<div class="global-container global-section-content-box">
22
@for (blog of blogs; track blog.title) {
3-
<div class="card shadow">
3+
<div class="global-item-card">
44
<div class="card-body">
55
<h4>{{ blog.title }}</h4>
6-
<p class="card-text">{{ blog.description }}</p>
6+
<p class="text-secondary">{{ blog.description }}</p>
77
<a [href]="blog.link" target="_blank" class="btn btn-primary">
88
Read Article on <i class="fa-brands fa-dev"></i>
99
</a>

src/app/blog/blog.component.scss

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/app/blog/blog.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { DataService } from '../services/data.service';
66
selector: 'app-blog',
77
imports: [],
88
templateUrl: './blog.component.html',
9-
styleUrl: './blog.component.scss',
109
})
1110
export class BlogComponent implements OnInit {
1211
blogs: BlogItem[] = [];
Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
<div id="certificatesMainBox" class="container">
2-
@for (certificate of certificates; track certificate.title) {
3-
<div class="card shadow">
4-
<div class="card-body">
5-
<h4>{{ certificate.title }}</h4>
6-
<h4>{{ certificate.organization }}</h4>
7-
<h6 class="text-secondary">{{ certificate.time }}</h6>
8-
<a
9-
[href]="certificate.link"
10-
target="_blank"
11-
class="btn btn-primary"
12-
>
13-
View Certificate
14-
</a>
1+
<div class="home-section-box">
2+
<h1>Certifications</h1>
3+
<div class="global-section-content-box">
4+
@for (certificate of certificates; track certificate.title) {
5+
<div class="global-item-card">
6+
<div class="card-body">
7+
<h4>{{ certificate.title }}</h4>
8+
<h4 class="text-secondary">
9+
{{ certificate.organization }}
10+
</h4>
11+
<h6>{{ certificate.time }}</h6>
12+
<a
13+
[href]="certificate.link"
14+
target="_blank"
15+
class="btn btn-primary"
16+
>
17+
View Certificate
18+
</a>
19+
</div>
1520
</div>
16-
</div>
17-
}
21+
}
22+
</div>
1823
</div>

src/app/certifications/certifications.component.scss

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)