Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simbricks-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SimBricks
simbricks-website
Commits
7746cc92
Verified
Commit
7746cc92
authored
7 months ago
by
Jakob Görgen
Browse files
Options
Downloads
Patches
Plain Diff
added more modern styling to newsletter form
parent
b79c8148
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
added more modern styling to newsletter form
Pipeline
#104609
passed
7 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_pages/newsletter.html
+11
-7
11 additions, 7 deletions
_pages/newsletter.html
_sass/newsletter.scss
+42
-26
42 additions, 26 deletions
_sass/newsletter.scss
with
53 additions
and
33 deletions
_pages/newsletter.html
+
11
−
7
View file @
7746cc92
...
...
@@ -11,28 +11,30 @@ permalink: /newsletter/
<form
id=
"newsletter-form"
>
<div
class=
"form-container"
>
<input
type=
"text"
class=
"form-control"
id=
"firstName"
name=
"firstName"
required=
""
maxlength=
"80"
placeholder=
""
>
<label
for=
"firstName"
class=
"form-label"
>
First Name *
</label>
<input
type=
"text"
class=
"form-control"
id=
"firstName"
name=
"firstName"
required=
""
maxlength=
"80"
>
</div>
<div
class=
"form-container"
>
<input
type=
"text"
class=
"form-control"
id=
"lastName"
name=
"lastName"
required=
""
maxlength=
"80"
placeholder=
""
>
<label
for=
"lastName"
class=
"form-label"
>
Last Name *
</label>
<input
type=
"text"
class=
"form-control"
id=
"lastName"
name=
"lastName"
required=
""
maxlength=
"80"
>
</div>
<div
class=
"form-container"
>
<input
type=
"email"
class=
"form-control"
id=
"email"
name=
"email"
required=
""
maxlength=
"80"
placeholder=
""
>
<label
for=
"email"
class=
"form-label"
>
Email Address *
</label>
<input
type=
"email"
class=
"form-control"
id=
"email"
name=
"email"
required=
""
maxlength=
"80"
>
</div>
<div
class=
"form-container"
>
<input
type=
"text"
class=
"form-control"
id=
"company"
name=
"company"
maxlength=
"120"
placeholder=
""
>
<label
for=
"company"
class=
"form-label"
>
Company (optional)
</label>
<input
type=
"text"
class=
"form-control"
id=
"company"
name=
"company"
maxlength=
"120"
>
</div>
<div
class=
"form-container"
>
<input
type=
"text"
class=
"form-control"
id=
"role"
name=
"role"
maxlength=
"120"
placeholder=
""
>
<label
for=
"role"
class=
"form-label"
>
Role (optional)
</label>
<input
type=
"text"
class=
"form-control"
id=
"role"
name=
"role"
maxlength=
"120"
>
</div>
<div
class=
"form-container"
>
...
...
@@ -49,7 +51,9 @@ permalink: /newsletter/
data-callback=
captchaCallback
></div>
</div>
<button
disabled
type=
"submit"
id=
"newsletter-form-submit-button"
>
Submit
</button>
<div
class=
"form-container"
>
<button
disabled
type=
"submit"
id=
"newsletter-form-submit-button"
>
Submit
</button>
</div>
</form>
<div
id=
"subscribe-success-banner"
>
...
...
@@ -146,7 +150,7 @@ permalink: /newsletter/
showBanner
(
"
Error when trying to subscribe newsletter. Please try again later.
"
,
false
);
},
});
friendlyChallenge
.
autoWidget
.
reset
();
}
...
...
This diff is collapsed.
Click to expand it.
_sass/newsletter.scss
+
42
−
26
View file @
7746cc92
...
...
@@ -2,31 +2,63 @@ $info-input-text-size: 18px;
$border-radius
:
0
.3em
;
#newsletter-form
{
.form-container
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
margin
:
1em
0em
1em
0em
;
.form-container
{
min-width
:
300px
;
margin
:
5px
20px
;
position
:
relative
;
.form-label
{
margin
:
0
.5em
;
display
:
inline-block
;
top
:
0
;
left
:
0
;
padding
:
10px
0px
;
color
:
gray
;
font-size
:
$info-input-text-size
;
position
:
absolute
;
transition
:
.5s
;
}
.form-control
{
width
:
100%
;
margin
:
0
.5em
;
border
:
1px
solid
lightgray
;
border-radius
:
$border-radius
;
line-height
:
2
;
padding
:
10px
0
;
font-size
:
16px
;
color
:
black
;
margin-bottom
:
30px
;
border
:
none
;
border-bottom
:
1px
solid
lightgray
;
outline
:
none
;
background
:
transparent
;
}
#newsletter-form-submit-button
{
background-color
:
aqua
;
.form-control
:focus
~
.form-label
,
.form-control
:not
(
:placeholder-shown
)~
.form-label
{
top
:
-20px
;
left
:
0
;
font-size
:
$info-input-text-size
-
4
;
}
.privacy-policy-checkbox
{
margin
:
0em
0em
0em
0
.5em
;
}
#newsletter-form-submit-button
{
margin
:
1em
0em
1em
0
.5em
;
padding
:
0
.5em
;
font-family
:
$font-title
+
4
;
width
:
100px
;
font-size
:
$info-input-text-size
;
border
:
1px
solid
lightgray
;
border-radius
:
$border-radius
;
color
:
white
;
background-color
:
$col-sb-org-l1
;
}
#newsletter-form-submit-button
:hover
{
background-color
:
$col-sb-org
;
}
}
#frc-captcha
{
...
...
@@ -41,22 +73,6 @@ $border-radius: 0.3em;
background-color
:
$col-sb-org-l1
;
}
}
#newsletter-form-submit-button
{
margin
:
1em
0em
1em
0
.5em
;
padding
:
0
.5em
;
font-family
:
$font-title
+
4
;
width
:
100px
;
font-size
:
$info-input-text-size
;
border
:
1px
solid
lightgray
;
border-radius
:
$border-radius
;
color
:
white
;
background-color
:
$col-sb-org-l1
;
}
#newsletter-form-submit-button
:hover
{
background-color
:
$col-sb-org
;
}
}
#subscribe-success-banner
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment