summaryrefslogtreecommitdiffstats
path: root/src/components/ContactForm/ContactForm.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-10 16:51:08 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-10 16:51:08 +0100
commit82e387d33fc296b1e5a08fef17bcd4595e0c7071 (patch)
tree780a3886a5e33804b16a335b37bd14bcaa1f6ed3 /src/components/ContactForm/ContactForm.module.scss
parentf2be002df3b13254a5b549dd1589089545c53f02 (diff)
refactor: extract contact form from contact page
The contact page file was too long. By extracting the contact form the readability is improved.
Diffstat (limited to 'src/components/ContactForm/ContactForm.module.scss')
-rw-r--r--src/components/ContactForm/ContactForm.module.scss21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/components/ContactForm/ContactForm.module.scss b/src/components/ContactForm/ContactForm.module.scss
new file mode 100644
index 0000000..3f0e861
--- /dev/null
+++ b/src/components/ContactForm/ContactForm.module.scss
@@ -0,0 +1,21 @@
+@use "@styles/abstracts/functions" as fun;
+
+.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);
+ }
+}