-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCatan_Board_Generator_Website.html
More file actions
130 lines (81 loc) · 2.11 KB
/
Catan_Board_Generator_Website.html
File metadata and controls
130 lines (81 loc) · 2.11 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
<!DOCTYPE html>
<html>
<head>
<title>Ronit's Catan Board Generator</title>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
<style>
.board {
text-align: center;
padding-top: 60px;
}
.row {
margin-bottom: -22px;
}
.tile {
display: inline-block;
margin: 0 -2px;
width: 60px;
height: 60px;
}
.odd-row .tile {}
.generator-div {
display: grid;
}
.text-overlay {
display: inline-block;
position: absolute;
width: 60px;
height: 60px;
margin-left: -64px;
margin-bottom: -30px;
color: whitesmoke;
font-size: 24px;
/* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}
.text-overlay-text {
margin-top: 10px;
}
.button {
float: middle;
}
.title {
text-align:center;
font-size:90px;
font-family: "Papyrus";
font-weight:bold;
}
.background {
background-color:gray;
}
.title_background {
background: linear-gradient(#002D62, gray);
}
.center_button{
padding-right:10em;
float: right;
}
.board {
padding-right:50em;
}
.button {
font-family:"Copperplate";
font-size:100px;
}
</style>
<py-config>
packages = []
[[fetch]]
files=["./catan1.py"]
</py-config>
</head>
<body class="background">
<py-script src="./catan1.py"></py-script>
<div class="title_background"><h1 class="title">Catan Board Generator</h1></div>
<div class="generator-div"></div>
<div class="grid-item">
<div id="output" class="board"></div>
<div class="center_button"><button py-click="generate()" class="button">Generate</button></div>
</div>
</body>
</html>