Skip to content

feat(): Introduce mobile panel for Home #101

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 1 commit into from
Oct 8, 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
15 changes: 15 additions & 0 deletions src/_includes/components/callout-mobile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="callout panel panel--primary panel--mobile">
<div class="panel__inner">
<h4>{{ include.heading }}</h4>

<p class="callout__text">{{ include.content }}</p>

<div class="callout__content">
{% include components/button-link.html text=include.buttonText href=include.buttonHref %}
</div>

<div class="panel__pattern">
{% include icons/patterns/dots.svg %}
</div>
</div>
</div>
4 changes: 4 additions & 0 deletions src/_sass/components/_callout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
line-height: 1.57;
}

&__text {
font-weight: 500;
}

&__input {
padding: 12px 20px;
width: 100%;
Expand Down
24 changes: 24 additions & 0 deletions src/_sass/components/_panel.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.panel {
$this: &;

position: relative;
background-color: color(gray-lighter);
border-radius: 8px;
Expand Down Expand Up @@ -26,5 +28,27 @@
}
}

&--primary {
background-color: color(primary);
color: color(white);

h1, h2, h3, h4, h5, h6 {
color: color(white);
}

a {
color: color(white);
font-size: 14px;
}
}

&--mobile {
@include breakpoint(large up) {
display: none;
}

#{$this}__pattern {
display: block;
}
}
}
2 changes: 2 additions & 0 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ redirect_from:
Welcome to the Segment!
Get familiar with our products, features, and integrations!

{% include components/callout-mobile.html heading="Segment Platform" content="Integrate once. Connect your entire stack." buttonText="Learn more about Segment" buttonHref="segment.com" %}

{% include landing.html %}

## Getting Started
Expand Down