aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/form/index.html2
-rw-r--r--examples/form/signup.css14
2 files changed, 11 insertions, 5 deletions
diff --git a/examples/form/index.html b/examples/form/index.html
index 158ee16..1d55241 100644
--- a/examples/form/index.html
+++ b/examples/form/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <title>Counter example</title>
+ <title>Register to this awesome website</title>
<meta charset="UTF-8">
<link href="./style.css" rel="stylesheet">
</head>
diff --git a/examples/form/signup.css b/examples/form/signup.css
index c5970c7..96b9ac1 100644
--- a/examples/form/signup.css
+++ b/examples/form/signup.css
@@ -5,15 +5,21 @@
max-width: 700px;
margin: 1rem auto;
+ --cssx-disgustingly-set-innerhtml: <h1 class="form-title">Sign-<b>Up</b></h1>;
+
--cssx-children: form#form;
--count: '0';
}
-#signup-page-content::before {
- content: "Sign-Up";
- display: block;
+.form-title {
font-size: 2rem;
+ padding: 0;
border-bottom: 1px solid gray;
+ font-weight: normal;
+ color: gray;
+}
+.form-title b {
+ font-weight: bold; color: black;
}
#form {
@@ -22,7 +28,7 @@
--cssx-on-submit:
prevent-default()
add-class(form, 'submitting')
- request('https://httpbin.org/post', POST)
+ request('/examples/')
remove-class(form, 'submitting')
add-class(form, 'submitted')
;