Spaces:
Runtime error
Runtime error
Anooj
commited on
Commit
•
1b9aeb3
1
Parent(s):
1c6a4dd
added landing page
Browse files
app.jl
CHANGED
@@ -46,8 +46,49 @@ function handlers(model)
|
|
46 |
model
|
47 |
end
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
function ui(model)
|
50 |
-
page(model, class="container", [
|
51 |
h1("Building Dark Chess Engines for SOTA Performance")
|
52 |
h3("By Anooj Patel")
|
53 |
|
@@ -99,6 +140,11 @@ function ui(model)
|
|
99 |
end
|
100 |
|
101 |
route("/") do
|
|
|
|
|
|
|
|
|
|
|
102 |
model = Model |> init |> handlers
|
103 |
html(ui(model), context = @__MODULE__)
|
104 |
end
|
|
|
46 |
model
|
47 |
end
|
48 |
|
49 |
+
function landingpage_ui(model)
|
50 |
+
page(model, class="container", style="text-align: center;", [
|
51 |
+
#img(src="/wizard_chess.webp", style="padding-top: 25px;")
|
52 |
+
h1("Learn the Dark arts of Dark Chess Bots")
|
53 |
+
h3("Interactive paper and implementation walk through to building a state of the dark chess bot")
|
54 |
+
h4("with Deep RL concepts")
|
55 |
+
p([
|
56 |
+
a([
|
57 |
+
input("Explore the paper",type="button", value="Explore the paper", class="button8", style="""
|
58 |
+
a.button8{
|
59 |
+
display:inline-block;
|
60 |
+
padding:0.2em 1.45em;
|
61 |
+
margin:0.1em;
|
62 |
+
border:0.15em solid #CCCCCC;
|
63 |
+
box-sizing: border-box;
|
64 |
+
text-decoration:none;
|
65 |
+
font-family:'Segoe UI','Roboto',sans-serif;
|
66 |
+
font-weight:400;
|
67 |
+
color:#000000;
|
68 |
+
background-color:#CCCCCC;
|
69 |
+
text-align:center;
|
70 |
+
position:relative;
|
71 |
+
}
|
72 |
+
a.button8:hover{
|
73 |
+
border-color:#7a7a7a;
|
74 |
+
}
|
75 |
+
a.button8:active{
|
76 |
+
background-color:#999999;
|
77 |
+
}
|
78 |
+
@media all and (max-width:30em){
|
79 |
+
a.button8{
|
80 |
+
display:block;
|
81 |
+
margin:0.2em auto;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
""")
|
85 |
+
],href="$(linkto(:get_interactive_paper))")
|
86 |
+
])
|
87 |
+
])
|
88 |
+
end
|
89 |
+
|
90 |
function ui(model)
|
91 |
+
page(model, class="container", style ="margin-left:10px;", [
|
92 |
h1("Building Dark Chess Engines for SOTA Performance")
|
93 |
h3("By Anooj Patel")
|
94 |
|
|
|
140 |
end
|
141 |
|
142 |
route("/") do
|
143 |
+
model = Model |> init |> handlers
|
144 |
+
html(landingpage_ui(model), context = @__MODULE__)
|
145 |
+
end
|
146 |
+
|
147 |
+
route("/interactive_paper") do
|
148 |
model = Model |> init |> handlers
|
149 |
html(ui(model), context = @__MODULE__)
|
150 |
end
|