Skip to content

Commit 588368e

Browse files
added icons to both sides
1 parent ebbeb10 commit 588368e

24 files changed

+67
-1
lines changed

angular.json

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
],
9999
"styles": [
100100
"@angular/material/prebuilt-themes/magenta-violet.css",
101+
"node_modules/font-awesome/css/font-awesome.css",
101102
"src/styles.scss"
102103
],
103104
"scripts": []

package-lock.json

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@angular/router": "^19.1.0",
2525
"@angular/ssr": "^19.1.7",
2626
"express": "^4.18.2",
27+
"font-awesome": "^4.7.0",
2728
"rxjs": "~7.8.0",
2829
"tslib": "^2.3.0",
2930
"zone.js": "~0.15.0"
@@ -43,4 +44,4 @@
4344
"karma-jasmine-html-reporter": "~2.1.0",
4445
"typescript": "~5.7.2"
4546
}
46-
}
47+
}

public/assets/enemy_dps.png

1.32 KB
Loading

public/assets/enemy_support.png

1.22 KB
Loading

public/assets/enemy_tank.png

1.2 KB
Loading

public/assets/friendly_dps.png

1.41 KB
Loading

public/assets/friendly_support.png

1.09 KB
Loading

public/assets/friendly_tank.png

1.35 KB
Loading

public/assets/tank_hero/ball.png

164 KB
Loading

public/assets/tank_hero/doom.png

141 KB
Loading

public/assets/tank_hero/dva.png

154 KB
Loading

public/assets/tank_hero/hazard.png

146 KB
Loading

public/assets/tank_hero/hog.png

153 KB
Loading

public/assets/tank_hero/mauga.png

155 KB
Loading

public/assets/tank_hero/orisa.png

171 KB
Loading

public/assets/tank_hero/queen.png

151 KB
Loading

public/assets/tank_hero/ram.png

152 KB
Loading

public/assets/tank_hero/rein.png

195 KB
Loading

public/assets/tank_hero/sig.png

153 KB
Loading

public/assets/tank_hero/winton.png

164 KB
Loading

public/assets/tank_hero/zarya.png

148 KB
Loading

src/app/app.component.html

+18
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
<div class="container">
22
<div class="left">
3+
<div class="icon-list-left">
4+
<img src="assets/friendly_tank.png" alt="Tank 1" />
5+
<img src="assets/friendly_dps.png" alt="dps 1" />
6+
<img src="assets/friendly_dps.png" alt="dps 2" />
7+
<img src="assets/friendly_support.png" alt="sup 1" />
8+
<img src="assets/friendly_support.png" alt="sup 2" />
9+
</div>
310
<h1>Left Half</h1>
411
<p>This is the left side of the screen.</p>
12+
513
</div>
14+
<div class="icon-list-right">
15+
<img src="assets/enemy_tank.png" alt="Tank 1" />
16+
<img src="assets/enemy_dps.png" alt="DPS 1" />
17+
<img src="assets/enemy_dps.png" alt="DPS 2" />
18+
<img src="assets/enemy_support.png" alt="Sup 1" />
19+
<img src="assets/enemy_support.png" alt="Sup 2" />
20+
</div>
621
<div class="right">
722
<h1>Right Half</h1>
823
<p>This is the right side of the screen.</p>
24+
925
</div>
26+
27+
1028
</div>

src/app/app.component.scss

+36
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ $left-bg: #3BA7DA;
33
$right-bg: #BB4D09;
44
$text-align: center;
55

6+
$icon-width: 30px; // Set the size of your icons
7+
$icon-height: 80px;
8+
$icon-color: #333; // Set the icon color (not used for images but for potential future use)
9+
610
.container {
711
display: flex;
812
height: 100vh; // Full viewport height
@@ -14,6 +18,38 @@ $text-align: center;
1418
text-align: $text-align; // Align text using the variable
1519
}
1620

21+
.icon-list-left {
22+
position: absolute;
23+
top: 50%;
24+
left: 20px; // Adjust this to change the horizontal position of icons
25+
transform: translateY(-50%); // Center vertically
26+
display: flex;
27+
flex-direction: column;
28+
gap: 15px; // Space between icons
29+
}
30+
31+
.icon-list-left img {
32+
width: $icon-width; // Set width (and height for square images)
33+
height: $icon-height;
34+
cursor: pointer; // Make the images clickable
35+
}
36+
37+
.icon-list-right {
38+
position: absolute;
39+
top: 50%;
40+
right: 20px; // Adjust this to change the horizontal position of icons
41+
transform: translateY(-50%); // Center vertically
42+
display: flex;
43+
flex-direction: column;
44+
gap: 15px; // Space between icons
45+
}
46+
47+
.icon-list-right img {
48+
width: $icon-width; // Set width (and height for square images)
49+
height: $icon-height;
50+
cursor: pointer; // Make the images clickable
51+
}
52+
1753
.left {
1854
background-color: $left-bg;
1955
}

0 commit comments

Comments
 (0)