aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-10 16:35:08 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-10 16:35:08 +0100
commitf2be002df3b13254a5b549dd1589089545c53f02 (patch)
tree1d057bb3941769df6af99066cecbd5d563676ea3 /src/styles
parent74df20972a7e9155fadb1d18aad260c0cd9959a9 (diff)
chore: improve contact form behavior
* The status was not visile in top of the form, so I moved it under the submit button. * It was possible to send an empty form. * The input type for email should be email instead of text.
Diffstat (limited to 'src/styles')
-rw-r--r--src/styles/pages/Page.module.scss20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/styles/pages/Page.module.scss b/src/styles/pages/Page.module.scss
index 69a1526..02aecbf 100644
--- a/src/styles/pages/Page.module.scss
+++ b/src/styles/pages/Page.module.scss
@@ -41,3 +41,23 @@ li.item {
grid-column: 2;
}
}
+
+.status {
+ max-width: max-content;
+ margin: var(--spacing-md) 0;
+ padding: var(--spacing-sm);
+ border: fun.convert-px(3) solid var(--color-border-light);
+ border-radius: fun.convert-px(5);
+
+ &--error {
+ border-color: var(--color-token-red);
+ }
+
+ &--success {
+ border-color: var(--color-token-green);
+ }
+
+ &--warning {
+ border-color: var(--color-token-orange);
+ }
+}