Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# test-wingcloud


I'm testing wingcloud
I'm testing wingcloud 2
97 changes: 97 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Demo Project</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
padding: 0;
background-color: #f4f4f4;
color: #333;
}

.container {
max-width: 800px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img {
max-width: 100%;
height: auto;
}

form {
margin-top: 20px;
}

input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}

input[type="submit"] {
background-color: #4caf50;
color: white;
padding: 14px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}

input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to the Demo Project</h1>
<p>
This is a simple HTML page for demonstration purposes. It showcases
basic HTML elements and styling.
</p>

<a href="https://www.example.com">Visit our website</a>

<h2>Image Placeholder</h2>
<img src="https://via.placeholder.com/400" alt="Placeholder Image" />

<h2>Contact Form</h2>
<form action="#" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Your name.." />

<label for="email">Email:</label>
<input
type="email"
id="email"
name="email"
placeholder="Your email.."
/>

<label for="message">Message:</label>
<textarea
id="message"
name="message"
placeholder="Write something.."
style="height: 200px"
></textarea>

<input type="submit" value="Submit" />
</form>
</div>
</body>
</html>
37 changes: 1 addition & 36 deletions main.w
Original file line number Diff line number Diff line change
@@ -1,41 +1,6 @@
bring cloud;

let bucket = new cloud.Bucket() as "Pol's Bucket";
let queue = new cloud.Queue() as "Pol's Queue";
let topic = new cloud.Topic() as "Pol's Topic";
let counter = new cloud.Counter() as "Pol's Counter";
let api = new cloud.Api() as "Pol's API";
let api2 = new cloud.Api() as "Another Pol's API";
let api3 = new cloud.Api() as "Yet Another Pol's API 3";
let api4 = new cloud.Api() as "Yet Another Pol's API 4";
let api5 = new cloud.Api() as "Yet Another Pol's API 5";
let website = new cloud.Website(path: "") as "Pol's Website";
let website2 = new cloud.Website(path: "") as "Another Pol's Website";
let website3 = new cloud.Website(path: "") as "Yet Another Pol's Website";

api.get("/hello", inflight (request) => {
return {
status: 200,
body: "Hello World"
};
});
let website = new cloud.Website(path: "index.html") as "Pol's Website";

test "Assert true" {
log("Assertion should pass");
assert(true);
}

test "Assert true 2" {
log("Assertion should pass");
assert(true);
}

test "Assert false" {
log("Assertion should fail");
assert(false);
}

test "Another Assert false" {
log("Assertion should fail");
assert(false);
}