-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmembers.html
More file actions
151 lines (151 loc) · 5.08 KB
/
Copy pathmembers.html
File metadata and controls
151 lines (151 loc) · 5.08 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Pass Me If You Can | Members</title>
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css'>
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-solid-rounded/css/uicons-solid-rounded.css'>
<style>
@import url('https://fonts.googleapis.com/css2?family=Mitr&family=Nunito&family=Orbitron&display=swap');
* {
letter-spacing: 2px;
font-family: 'Orbitron', sans-serif;
font-size: 16px;
color: #F7F7F7;
}
body{
background:linear-gradient(rgba(0, 0, 0, 0.4),rgba(0, 0, 0, 0.4)), url("./asset/bg.png") round fixed;
background-size: contain;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
overflow-y: visible;
}
.title {
text-align: center;
font-size: 35px;
padding: 10px;
}
.container {
display: flex;
flex-wrap: wrap;
gap: 96px;
justify-content: center;
}
.member-card {
display: grid;
grid-template-columns: auto;
width: 300px;
height: 400px;
background-color: #773396;
border: #0F0C0C 2px solid;
border-radius: 20px;
}
.img{
height: 300px;
border-radius: 16px 16px 0px 0px;
border-bottom: #0F0C0C 2px solid;
}
.info {
padding: 5px;
text-align: center;
}
</style>
</head>
<body>
<a href="./index.html"><i class="fi fi-sr-arrow-circle-left" style="position: absolute; font-size: 45px; top: 35px; left: 20px;"></i></a>
<h1 class="title">Members</h1>
<div class="container">
</div>
</body>
<script>
const members = [
{
img: "./asset/member/por.jpg",
name: "PATIPAT KOEDDANG",
id: 64010475
},
{
img: "./asset/member/kong.jpg",
name: "PACHARAPONG SUPHA",
id: 64010546
},
{
img: "./asset/member/queen.png",
name: "PATTAMON PONGSAKORNPISIT",
id: 64010574
},
{
img: "./asset/member/arm.jpg",
name: "PHATCHARAPHON KAEWRIPORN",
id: 64010575
},
{
img: "./asset/member/may.jpg",
name: "PIMPRATHONG ROTPHOTCHANARAT",
id: 64010599
},
{
img: "./asset/member/james.jpg",
name: "PISITPONG PLONGKERD",
id: 64010609
},
{
img: "./asset/member/mew.jpg",
name: "RUNGNAPA PUESPUEK",
id: 64010736
},
{
img: "./asset/member/tan.jpg",
name: "WATTIKORN CHAROENKAN",
id: 64010801
},
{
img: "./asset/member/gig.jpg",
name: "VIPADA VARASAJJA",
id: 64010808
},
{
img: "./asset/member/tf.jpg",
name: "WIROON SOMPHAOTHONG",
id: 64010815
},
{
img: "./asset/member/pell.jpg",
name: "WEERAWAN VONGDAO",
id: 64010824
},
{
img: "./asset/member/ink.jpg",
name: "SARANTHORN PORNCHAIWATTANAKORN",
id: 64010827
},
{
img: "./asset/member/bell.png",
name: "SIRAPHATSON THONGTIM",
id: 64010842
},
{
img: "./asset/member/oat.png",
name: "SUPPAPHOL AREEWATTANAWONG",
id: 64010860
}
]
for (i=0; i < members.length; i++) {
const container = document.querySelector(".container");
const member = members[i];
const memberNode = document.createElement("div");
memberNode.classList.add("member-card");
memberNode.innerHTML = `
<div class="img" style="background: url(${member.img}); background-size: cover; background-position: center;">
</div>
<div class="info">
<p class="id">${member.id}</p>
<p class="name" style="font-size: 13px;">${member.name}</p>
</div>
`;
container.appendChild(memberNode);
}
</script>
</html>