diff --git a/projects/FrontendMentor/newbie/intro-component-with-signup-form/css/style.css b/projects/FrontendMentor/newbie/intro-component-with-signup-form/css/style.css index f8bb00c..47d88ca 100644 --- a/projects/FrontendMentor/newbie/intro-component-with-signup-form/css/style.css +++ b/projects/FrontendMentor/newbie/intro-component-with-signup-form/css/style.css @@ -68,7 +68,9 @@ --box-shadow: 0px 8px 0px rgba(0, 0, 0, 0.14688); + --padding-outer-form: 0 1.5rem; --padding-fields: 1.2188rem; + --margin-top-inputs: 1rem; } body { @@ -138,7 +140,7 @@ form { border-radius: var(--border-radius-form); box-shadow: var(--box-shadow); - padding: 0 1.5rem; + padding: var(--padding-outer-form); } form input:nth-child(1) { @@ -154,7 +156,7 @@ form input { height: 3.5rem; - margin: 1rem 0 0; + margin-top: var(--margin-top-inputs); border-radius: var(--border-radius-input); border: 1px solid var(--col-border); @@ -162,6 +164,12 @@ form input { color: var(--col-neutral-text); } +input:active, +input:focus { + outline: none; + border-color: var(--col-accent); +} + form button { font-size: var(--fs-button); line-height: var(--lh-button); @@ -192,7 +200,8 @@ form p { color: var(--col-neutral-light-text); /* margin: 0 2.4375rem 1.5rem; */ - padding-bottom: 1.5rem; + padding: 0 0.9375rem 1.5rem; + /* padding-bottom: 1.5rem; */ } form p a { @@ -218,5 +227,44 @@ form p a { --text-align: start; --padding-fields: 2rem; + + --padding-outer-form: 0 2.5rem; + + --margin-top-inputs: 1.25rem; + } + + body { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + gap: 45px; + } + + header, + main { + flex: 1; + } + + header { + max-width: 32.8125rem; + + margin-top: 4rem; + } + + h1 { + margin-bottom: 2rem; + } + + main { + max-width: 33.75rem; + } + + form input:nth-child(1) { + margin-top: 2.5rem; + } + + form p { + text-align: center; } } diff --git a/projects/FrontendMentor/newbie/intro-component-with-signup-form/index.html b/projects/FrontendMentor/newbie/intro-component-with-signup-form/index.html index d95c13c..08a265a 100644 --- a/projects/FrontendMentor/newbie/intro-component-with-signup-form/index.html +++ b/projects/FrontendMentor/newbie/intro-component-with-signup-form/index.html @@ -10,7 +10,7 @@ - + Frontend Mentor | Intro component with sign up form @@ -35,14 +35,14 @@
-

Try it free 7 days then $20/mo. thereafter

+

Try it free 7 days then $20/mo. thereafter

-
- + + - +

By clicking the button, you are agreeing to our Terms and Services

diff --git a/projects/FrontendMentor/newbie/intro-component-with-signup-form/js/script.js b/projects/FrontendMentor/newbie/intro-component-with-signup-form/js/script.js new file mode 100644 index 0000000..7b16896 --- /dev/null +++ b/projects/FrontendMentor/newbie/intro-component-with-signup-form/js/script.js @@ -0,0 +1,11 @@ +function verifyData(form) { + console.log(typeof form); + + return false; +} + +function validateForm() { + console.log("Hello"); + + return false; +} diff --git a/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/desktop.png b/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/desktop.png new file mode 100644 index 0000000..b99b7a2 Binary files /dev/null and b/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/desktop.png differ diff --git a/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/mobile.png b/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/mobile.png new file mode 100644 index 0000000..fc61739 Binary files /dev/null and b/projects/FrontendMentor/newbie/intro-component-with-signup-form/screenshots/mobile.png differ