Skip to content

Commit 0e4ea75

Browse files
sketch7 link target blank + projects colors hover changes
1 parent 31acb60 commit 0e4ea75

File tree

5 files changed

+57
-15
lines changed

5 files changed

+57
-15
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"build:prod": "ng build --prod",
1111
"test": "ng test",
1212
"lint": "ng lint",
13-
"e2e": "ng e2e",
14-
"serve:prod": "cd ./dist && http-server",
15-
"clean": "rimraf dist",
13+
"e2e": "ng e2e",
14+
"serve:prod": "cd ./dist && http-server",
15+
"clean": "rimraf dist",
1616
"regenerate": "ng new angular-labs --style scss --routing --service-worker"
1717
},
1818
"private": true,

src/app/app.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<i class="fa fa-heart"
1010
aria-hidden="true"></i>️ by
1111
<strong>
12-
<a href="https://github.com/sketch7">sketch7</a>
12+
<a target="_blank"
13+
rel="noopener"
14+
href="https://github.com/sketch7">sketch7</a>
1315
</strong> 2017.</p>
1416
</div>
1517
</footer>

src/app/areas/projects/project.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="project-container">
2-
<span class="project-tag project-tag--{{project.tag}} badge">{{project.tag}}</span>
1+
<div class="project-container project-tag--{{project.tag}}">
2+
<span class="project-tag badge">{{project.tag}}</span>
33
<i class="project-icon fa fa-th-large fa-5x"
44
aria-hidden="true"></i>
55

src/app/areas/projects/project.component.scss

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,33 @@ $project-description-color: $text-semi-diffuse-color !default;
2626
}
2727

2828
&-icon {
29-
transition: 0.2s ease-in-out;
30-
color: $project-icon-hover-color;
29+
transition: 0.3s ease-in-out;
30+
}
31+
32+
&-tag {
33+
&--csharp {
34+
.project-icon {
35+
color: $electric-violet;
36+
}
37+
}
38+
39+
&--angular {
40+
.project-icon {
41+
color: $crimson;
42+
}
43+
}
44+
45+
&--aurelia {
46+
.project-icon {
47+
color: $cerise;
48+
}
49+
}
50+
51+
&--javascript {
52+
.project-icon {
53+
color: $amber;
54+
}
55+
}
3156
}
3257
}
3358
}
@@ -67,20 +92,28 @@ $project-description-color: $text-semi-diffuse-color !default;
6792
top: 0.25em;
6893

6994
&--csharp {
70-
background: $electric-violet;
95+
.project-tag {
96+
background: $electric-violet;
97+
}
7198
}
7299

73100
&--angular {
74-
background: $crimson;
101+
.project-tag {
102+
background: $crimson;
103+
}
75104
}
76105

77106
&--aurelia {
78-
background: $cerise;
107+
.project-tag {
108+
background: $cerise;
109+
}
79110
}
80111

81112
&--javascript {
82-
color: $black;
83-
background: $amber;
113+
.project-tag {
114+
color: $black;
115+
background: $amber;
116+
}
84117
}
85118
}
86119
}

src/app/areas/projects/projects.component.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
<h1>Projects</h1>
2-
<p>Open source projects developed by <a href="https://github.com/sketch7">sketch7</a>.</p>
2+
<p>
3+
Open source projects developed by
4+
<a href="https://github.com/sketch7"
5+
target="_blank"
6+
rel="noopener">
7+
sketch7
8+
</a>
9+
.
10+
</p>
311

412
<ul class="projects-container">
513
<li *ngFor="let project of projects">
614

715
<a target="_blank"
816
rel="noopener"
9-
[title]="project.title"
1017
[href]="project.url">
1118
<app-project [project]="project"></app-project>
1219
</a>

0 commit comments

Comments
 (0)