Skip to content

Callout #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions src/_includes/components/callout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<div class="callout panel">
<div class="panel__inner">
<div class="flex">
<div class="flex__column flex__column--12 flex__column--9@xlarge">
<h4>{{ include.title }}</h4>

<div class="callout__content">
{{ include.content }}
</div>
</div>
</div>

<div class="callout__form-wrapper flex flex--wrap flex--middle gutter gutter--none gutter--xlarge@xlarge">
<div class="flex__column flex__column--12 flex__column--9@xlarge">
<form class="callout__form gutter gutter--none gutter--medium@medium flex flex--wrap">
<div class="flex__column">
<input class="callout__input input input--expand" type="email" placeholder="Your work e-mail">
</div>

<div class="flex__column flex__column--12 flex__column--shrink@medium">
<button class="button button--large button--expand button-fill">Request demo</button>
</div>
</form>
</div>

<div class="callout__separator flex__column flex__column--12">
<span>or</span>
</div>

<a href="#" class="callout__link-button flex__column flex__column--12 flex__column--shrink@xlarge">
Create free account
</a>
</div>

<div class="panel__pattern">
{% include icons/patterns/dots.svg %}
</div>
</div>
</div>
78 changes: 78 additions & 0 deletions src/_includes/icons/patterns/dots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions src/_sass/components/_callout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
.callout {
position: relative;
background-color: color(gray-lighter);
border-radius: 8px;
overflow: hidden;

&__content {
margin-top: 10px;
line-height: 1.57;
}

&__input {
padding: 12px 20px;
width: 100%;
border: 1px solid color(border-gray);

&::placeholder {
color: color(gray)
}
}

&__separator {
position: relative;
display: block;
text-align: center;
color: color(gray);
font-size: 14px;

@include breakpoint(xlarge up) {
display: none;
}

&::before {
position: absolute;
top: 50%;
left: 0;
background-color: rgba(color(secondary), 0.16);
width: 100%;
height: 1px;
transform: translateY(-50%);
z-index: -1;
content: "";
}

span {
background-color: color(gray-lighter);
padding: 0 15px;
}
}

&__form-wrapper {
margin-top: 20px;

& > * + * {
margin-top: 8px;

@include breakpoint(medium up) {
margin-top: 0;
}
}
}

&__form {
margin-bottom: 0;

& > * + * {
margin-top: 8px;

@include breakpoint(medium up) {
margin-top: 0;
}
}
}

&__link-button {
text-align: center;
line-height: 1.6;
font-weight: 500;
width: 100%;
border-radius: 4px;
border: solid 1px color(primary);
padding: 14px 20px;

@include breakpoint(xlarge up) {
text-decoration: underline;
width: auto;
border: none;
padding: 0;
}
}
}
1 change: 1 addition & 0 deletions src/_sass/segment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
@import "components/field";
@import "components/breadcrumbs";
@import "components/highlight";
@import "components/callout";
@import "components/panel";
@import "components/nav";
@import "components/nav-list";
Expand Down
4 changes: 2 additions & 2 deletions src/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ analytics.identify('025pikachu025', {

---

## Panel
## Callout

{% include components/panel.html title="Get started with Segment" content="Segment is the easiest way to integrate your websites & mobile apps data to 250+ analytics and growth tools." %}
{% include components/callout.html title="Get started with Segment" content="Segment is the easiest way to integrate your websites & mobile apps data to 250+ analytics and growth tools." %}