-
Notifications
You must be signed in to change notification settings - Fork 0
/
shipcard.html
166 lines (146 loc) · 3.98 KB
/
shipcard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${ship_name}</title>
<base href="file:///${base_dir}/" />
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #d3cabd;
}
.container {
width: 90%;
margin: 20px auto;
padding: 150px 10px;
/* border: 2px solid #571314; */
/* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
box-sizing: border-box;
}
.header {
display: flex;
align-items: center;
/* justify-content: space-between; */
margin-bottom: 20px;
}
.title {
display: flex;
flex-direction: row;
align-items: center;
align-self: flex-start;
gap: 10px;
.flag {
filter: grayscale(100%);
height: 45px;
}
h1 {
text-align: left;
font-size: 36px;
margin-bottom: 20px;
color: #333;
}
}
.points-container {
font-size: 20px;
font-weight: bold;
padding: 10px;
border: 3px dotted #571314;
/* Dotted border */
border-radius: 50%;
/* Circle shape */
text-align: center;
width: 80px;
/* Width and height for a perfect circle */
height: 80px;
display: flex;
flex-direction: column;
align-self: flex-start;
justify-self: flex-end;
align-items: center;
justify-content: center;
margin-left: auto;
color: #571314;
/* Text color */
.points {
font-size: 32px;
}
}
.ship-image {
height: 250px;
margin-bottom: 20px;
margin-right: 40px;
margin: auto;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th,
td {
border: 2px dotted #571314;
padding: 10px;
text-align: center;
font-size: 24px;
}
th {
font-weight: bold;
}
td {
word-wrap: break-word;
}
</style>
</head>
<body>
<div class="container">
<!-- Ship Header -->
<div class="header">
<div class="title">
${nation_html} <!-- Dynamically insert the nation flag image -->
<h1>${ship_name}</h1>
</div>
${ship_image_html} <!-- Dynamically insert the ship image -->
<div class="points-container">
<span class="points">${points}</span>
<span>points</span>
</div>
</div>
<!-- Ship Details Table -->
<table>
<tr>
<th>Type</th>
<th>Flank Speed</th>
<th>Armour</th>
<th>Hull</th>
<th>Traits</th>
</tr>
<tr>
<td>${ship_type}</td>
<td>${flank_speed}</td>
<td>${armour}</td>
<td>${hull}</td>
<td>${traits}</td>
</tr>
</table>
<!-- Weapon Systems Table -->
<table>
<tr>
<th>Weapon System</th>
<th>Fire Arc</th>
<th>Point Blank</th>
<th>Short</th>
<th>Long</th>
<th>Extreme</th>
<th>AD</th>
<th>AP</th>
<th>DD</th>
<th>Traits</th>
</tr>
${weapon_rows}
</table>
</div>
</body>
</html>