Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Tevz-Beskovnik committed Feb 17, 2024
1 parent bfe27a8 commit 9f47f46
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.pio
data
Binary file added data/desk.img
Binary file not shown.
12 changes: 12 additions & 0 deletions data/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home</title>
<link rel="stylesheet" href="main.css">
</head>
<body style="width: 100vw">
<a href="./pfp">pfp</a>
<a href="./desk">desk</a>
</body>
</html>
21 changes: 21 additions & 0 deletions data/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.container {
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
}

.empty-block {
height: 200px;
width: 200px;
margin: 2px;
}

.block {
border-radius: 15px;
border: 1px solid black;
background-color: darkgray;
height: 200px;
width: 200px;
margin: 2px;
}
Binary file added data/plant.img
Binary file not shown.
2 changes: 1 addition & 1 deletion pre_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

def before_upload(source, target, env):
for image in images:
env.Execute("./scripts/bic -i {} -o {} -j".format(image, os.path.join(p, "data/{}.img".fromat(os.path.basename(image).split('.')[0]))))
env.Execute("./scripts/bic -i {} -o {} -j".format(image, os.path.join(p, "data/{}.img".format(os.path.basename(image).split('.')[0]))))

env.AddPreAction("buildprog", before_upload)
2 changes: 1 addition & 1 deletion src/core/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void handle_not_found();
void init_server() {
// actions
GET_PATH_WITH_ACTION("/", handle_default());
GET_PATH_WITH_ACTION("/pfp", load_image("/pfp.img"); handle_default());
GET_PATH_WITH_ACTION("/pfp", load_image("/plant.img"); handle_default());
GET_PATH_WITH_ACTION("/desk", load_image("/desk.img"); handle_default());

// public files
Expand Down

0 comments on commit 9f47f46

Please sign in to comment.