From 1e99f400ff906230603b39a339136012abf987f3 Mon Sep 17 00:00:00 2001
From: sltan29
Date: Mon, 17 Nov 2025 00:51:42 +0200
Subject: [PATCH 1/7] created a page for desktop
---
.../index.html | 90 ++++++++++++++-----
.../style.css | 87 ++++++++++++++++++
2 files changed, 153 insertions(+), 24 deletions(-)
create mode 100644 newsletter-sign-up-with-success-message-main/style.css
diff --git a/newsletter-sign-up-with-success-message-main/index.html b/newsletter-sign-up-with-success-message-main/index.html
index 8e7329b..2ad233f 100644
--- a/newsletter-sign-up-with-success-message-main/index.html
+++ b/newsletter-sign-up-with-success-message-main/index.html
@@ -1,52 +1,94 @@
+
-
+
+
-
- Frontend Mentor | Newsletter sign-up form with success message
+ Frontend Mentor | Newsletter sign-up form with success message
+
+
+
+
+
+
+
+
+
+
+
+
- Thanks for subscribing!
+
-
-
- Challenge by
Frontend Mentor .
+
+
+
\ No newline at end of file
diff --git a/newsletter-sign-up-with-success-message-main/style.css b/newsletter-sign-up-with-success-message-main/style.css
new file mode 100644
index 0000000..ed754c8
--- /dev/null
+++ b/newsletter-sign-up-with-success-message-main/style.css
@@ -0,0 +1,87 @@
+:root{
+ font-family: "Roboto";
+}
+
+body{
+ background-color: hsl(235, 18%, 26%);
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ height: 100vh;
+}
+
+.main-rect{
+ height: 55vh;
+ width: 50vw;
+ display: flex;
+ background-color: hsl(0, 0%, 100%);
+ border-radius: 25px;
+ padding: 60px;
+ box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.574);
+}
+.left-form{
+ justify-content: start;
+ display: flex;
+ align-items: start;
+ width: 60%;
+ color: hsl(234, 29%, 20%);
+ flex-direction: column;
+ gap: 0px;
+}
+.title{
+ font-size: 55px;
+ margin: 0px;
+}
+
+.desc{
+ font-size: medium;
+}
+
+.checklistItem{
+ display: flex;
+ flex-direction: row;
+ gap: 20px;
+}
+.tickImg{
+ max-width: 25px;
+}
+.lab{
+ font-weight: bold;
+ color: hsl(234, 29%, 20%);
+}
+.main-form{
+ display: flex;
+ flex-direction: column;
+ margin-top: 20px;
+ gap: 20px;
+ width: 80%;
+}
+input[type=email]{
+ padding: 15px;
+ width: 100%;
+ border-radius: 5px;
+ border: solid 1px rgb(197, 197, 197);
+}
+
+button[type=submit]{
+ width: 110%;
+ padding: 15px;
+ border-radius: 5px;
+ border: 0px;
+ background-color: hsl(234, 29%, 20%);
+ color: hsl(0, 0%, 100%);
+ font-size: small;
+
+}
+
+.right-img{
+ width: 40%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+.desk-img{
+ width: 22vw;
+}
\ No newline at end of file
From 90b7e634b809903893f47860b89ed1a3ca15ea06 Mon Sep 17 00:00:00 2001
From: sltan29
Date: Tue, 18 Nov 2025 00:02:56 +0200
Subject: [PATCH 2/7] added mobile and tablet adjustments and resposive design
---
.../index.html | 77 ++++++++-
.../style.css | 154 ++++++++++++++++--
.../success.css | 7 +
.../success.html | 17 ++
4 files changed, 237 insertions(+), 18 deletions(-)
create mode 100644 newsletter-sign-up-with-success-message-main/success.css
create mode 100644 newsletter-sign-up-with-success-message-main/success.html
diff --git a/newsletter-sign-up-with-success-message-main/index.html b/newsletter-sign-up-with-success-message-main/index.html
index 2ad233f..aed2c92 100644
--- a/newsletter-sign-up-with-success-message-main/index.html
+++ b/newsletter-sign-up-with-success-message-main/index.html
@@ -30,7 +30,6 @@
-
@@ -61,9 +60,9 @@
And much more!
-
@@ -72,6 +71,78 @@
+
+
+
+
+ Stay updated!
+
+
+ Join 60,000+ product managers receiving monthly updates on:
+
+
+
+
+ Product discovery and building what matters
+
+
+
+
+
+ Measuring to ensure updates are a success
+
+
+
+
+
+ And much more!
+
+
+
+
+
+
+
+
+
+
+
+ Stay updated!
+
+
+ Join 60,000+ product managers receiving monthly updates on:
+
+
+
+
+ Product discovery and building what matters
+
+
+
+
+
+ Measuring to ensure updates are a success
+
+
+
+
+
+ And much more!
+
+
+
+
+
+
+
diff --git a/newsletter-sign-up-with-success-message-main/style.css b/newsletter-sign-up-with-success-message-main/style.css
index ed754c8..61023e8 100644
--- a/newsletter-sign-up-with-success-message-main/style.css
+++ b/newsletter-sign-up-with-success-message-main/style.css
@@ -1,8 +1,8 @@
-:root{
+:root {
font-family: "Roboto";
}
-body{
+body {
background-color: hsl(235, 18%, 26%);
display: flex;
justify-content: center;
@@ -11,7 +11,7 @@ body{
height: 100vh;
}
-.main-rect{
+.main-rect {
height: 55vh;
width: 50vw;
display: flex;
@@ -20,7 +20,8 @@ body{
padding: 60px;
box-shadow: 0px 0px 25px 5px rgba(0, 0, 0, 0.574);
}
-.left-form{
+
+.left-form {
justify-content: start;
display: flex;
align-items: start;
@@ -29,42 +30,47 @@ body{
flex-direction: column;
gap: 0px;
}
-.title{
+
+.title {
font-size: 55px;
margin: 0px;
}
-.desc{
+.desc {
font-size: medium;
}
-.checklistItem{
+.checklistItem {
display: flex;
flex-direction: row;
gap: 20px;
}
-.tickImg{
+
+.tickImg {
max-width: 25px;
}
-.lab{
+
+.lab {
font-weight: bold;
color: hsl(234, 29%, 20%);
}
-.main-form{
+
+.main-form {
display: flex;
flex-direction: column;
margin-top: 20px;
gap: 20px;
width: 80%;
}
-input[type=email]{
+
+input[type=email] {
padding: 15px;
width: 100%;
border-radius: 5px;
border: solid 1px rgb(197, 197, 197);
}
-button[type=submit]{
+button[type=submit] {
width: 110%;
padding: 15px;
border-radius: 5px;
@@ -72,16 +78,134 @@ button[type=submit]{
background-color: hsl(234, 29%, 20%);
color: hsl(0, 0%, 100%);
font-size: small;
+ cursor: not-allowed;
+}
+
+.main-form:valid button[type=submit] {
+ width: 110%;
+ padding: 15px;
+ border-radius: 5px;
+ border: 0px;
+ background-image: hsl(234, 29%, 20%);
+ color: hsl(0, 0%, 100%);
+ font-size: small;
+ cursor: pointer;
+}
+.main-form:valid:hover button[type=submit] {
+ width: 110%;
+ padding: 15px;
+ border-radius: 5px;
+ border: 0px;
+ background-image: linear-gradient(to right, hsl(4, 100%, 67%), hsl(23, 100%, 67%));
+ color: hsl(0, 0%, 100%);
+ font-size: small;
+ cursor: pointer;
+ box-shadow: 0px 0px 20px 2px hsla(4, 58%, 54%, 0.525);
}
-.right-img{
+.right-img {
width: 40%;
display: flex;
justify-content: center;
align-items: center;
}
-.desk-img{
+.desk-img {
width: 22vw;
-}
\ No newline at end of file
+}
+
+.mobile-main {
+ display: none;
+}
+
+.tablet-main {
+ display: none;
+}
+
+@media (max-width: 600px) {
+ body {
+ height: 93vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: hsl(0, 0%, 100%);
+ flex-direction: column;
+ width: 96vw;
+ }
+
+ .tablet-main {
+ display: none;
+ }
+
+ .main-rect {
+ display: none;
+ }
+
+ .mobile-main {
+ display: flex;
+ width: 100vw;
+ height: 100vh;
+ flex-direction: column;
+ }
+
+ .title {
+ font-size: 45px;
+ }
+
+ .lower-part {
+ display: flex;
+ justify-content: start;
+ align-items: start;
+ flex-direction: column;
+ margin-top: 20px;
+ color: hsl(234, 29%, 20%);
+ margin-left: 30px;
+ gap : 0px;
+ }
+
+ .pic{
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ }
+
+}
+
+@media (min-width: 601px) and (max-width: 1024px) {
+ .main-rect {
+ display: none;
+ }
+ body{
+ background-color: hsl(0, 0%, 100%);
+ padding: 0px;
+ }
+ .mobile-main {
+ display: none
+ }
+ .tablet-main{
+ display: flex;
+ width: 100vw;
+ height: 100vh;
+ flex-direction: column;
+ margin: 0px;
+ }
+ .pic{
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100%;
+ margin-top: -325px;
+ }
+ .lower-part {
+ display: flex;
+ justify-content: start;
+ align-items: start;
+ flex-direction: column;
+ color: hsl(234, 29%, 20%);
+ margin-left: 50px;
+ gap : 0px;
+ }
+}
diff --git a/newsletter-sign-up-with-success-message-main/success.css b/newsletter-sign-up-with-success-message-main/success.css
new file mode 100644
index 0000000..a9f65c0
--- /dev/null
+++ b/newsletter-sign-up-with-success-message-main/success.css
@@ -0,0 +1,7 @@
+body{
+ height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background-color: hsl(235, 18%, 26%);
+}
diff --git a/newsletter-sign-up-with-success-message-main/success.html b/newsletter-sign-up-with-success-message-main/success.html
new file mode 100644
index 0000000..642e10a
--- /dev/null
+++ b/newsletter-sign-up-with-success-message-main/success.html
@@ -0,0 +1,17 @@
+
+
+
+
+
+ Success Page
+
+
+
+
+
+
+ Thanks for subscribing!
+
+
+
+
\ No newline at end of file
From c7e83830127c98322683ed71eeac50285e739126 Mon Sep 17 00:00:00 2001
From: sltan29
Date: Thu, 20 Nov 2025 16:01:34 +0200
Subject: [PATCH 3/7] designed the success screen and made it available for
mobile
---
.../index.html | 2 +-
.../success.css | 68 ++++++++++++++++++-
.../success.html | 21 +++++-
3 files changed, 87 insertions(+), 4 deletions(-)
diff --git a/newsletter-sign-up-with-success-message-main/index.html b/newsletter-sign-up-with-success-message-main/index.html
index aed2c92..12407eb 100644
--- a/newsletter-sign-up-with-success-message-main/index.html
+++ b/newsletter-sign-up-with-success-message-main/index.html
@@ -60,7 +60,7 @@
And much more!
-