Skip to content

Homepage #97

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 7, 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
51 changes: 51 additions & 0 deletions src/_includes/components/feedback.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<div class="flex flex--wrap flex--justify waffle">
<div class="flex__column flex__column--5">
<div class="flex flex--stack flex--justify waffle container container--stretch">
<div class="flex__column">
<h4>Need support?</h4>

<p>If you need any help visit our Support page and get in touch with us.</p>
</div>

<div class="flex__column flex__column--shrink">
{% include components/button-link.html text="Go to support" href="https://segment.com" %}
</div>
</div>
</div>

<div class="flex__column flex__column--5">
<div class="flex flex--stack flex--justify waffle container container--stretch">
<div class="flex__column">
<h4>Was this page helpful?</h4>
</div>

<div class="flex__column">
<div class="flex">
<div class="flex__column flex__column--shrink">
<button class="button button--small button-fill button-fill--white" data-ref="feedback[helpful]">
<span class="button__icon">
{% include icons/symbols/thumb-up.svg %}
</span>

<span>Yes</span>
</button>
</div>

<div class="flex__column flex__column--shrink">
<button class="button button--small button-fill button-fill--white" data-ref="feedback[unhelpful]">
<span class="button__icon">
{% include icons/symbols/thumb-down.svg %}
</span>

<span>No</span>
</button>
</div>
</div>
</div>

<div class="flex__column flex__column--shrink">
{% include components/button-link.html text="Send us feedback" href="https://segment.com" %}
</div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions src/_includes/components/list-steps.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<span class="list-steps__number">{{ include.number }}</span>
{% if include.heading == %}
<div class="list-steps__content list-steps__content--align">
{{ include.content }}
{{ include.content | markdownify }}
</div>
{% else %}
<h5 class="list-steps__title">{{ include.heading }}</h5>
<div class="list-steps__content">
{{ include.content }}
{{ include.content | markdownify }}
</div>
{% endif %}
</div>
2 changes: 1 addition & 1 deletion src/_includes/components/media-icon.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="media-icon media-icon--{{ include.variant }}">
<a class="media-icon__inner" href="{{ include.href }}">
<span class="media-icon__icon">
{% include icons/{{ include.icon }}.svg %}
{% include icons/media/{{ include.icon }} %}
</span>
<h5 class="media-icon__heading">{{ include.title }}</h5>
<div class="media-icon__content">
Expand Down
15 changes: 5 additions & 10 deletions src/_includes/landing.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<div class="l-block-grid-collection">
<div class="flex flex--wrap waffle waffle--large">
{% for category in site.data.landing %}
{% assign url = category.name | downcase %}

{% if url contains "app" %}
{% assign url = url | replace: "app", "segment-app" %}
{% assign category_href = url | relative_path %}
{% endif %}

<a class="block-grid-item" href="{{url | relative_path }}/">
<div class="logo">
<img src="{{site.baseurl}}/icons/home/{{ category.icon }}" />
</div>
<div class="content">
<p class="title">{{ category.name }}</p>
<p class="description">{{ category.description }}</p>
</div>
</a>
<div class="flex__column flex__column--6">
{% include components/media-icon.html variant="small" href=category_href icon=category.icon title=category.name content=category.description %}
</div>
{% endfor %}
</div>
29 changes: 29 additions & 0 deletions src/_layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: default
---

<article class="home page">
<div class="home__body">
<div>
{%- if page.title -%}
<h1 id="{{ page.title | downcase }}" class="page__heading">
{{ page.title }} {% unless page.landing %}{{ page.integration_type | capitalize }}{% endunless %}
</h1>
{%- endif -%}

{%- if page.beta -%}
{% include content/beta.md %}
{%- endif -%}

<div class="home__markdown markdown" data-headings-anchors>
{{ content }}
</div>
</div>

<hr>

{% include components/feedback.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." %}
</div>
</article>
2 changes: 1 addition & 1 deletion src/_sass/components/_button-link.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.button-link {
text-decoration: underline;
font-weight: 700;
font-weight: 500;
}
11 changes: 7 additions & 4 deletions src/_sass/components/_media-icon.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
.media-icon {
$this: &;

height: 100%;
border: 1px solid color(border-gray);
background-color: color(white);
transition: 0.3s box-shadow;
border-radius: 8px;

&__inner {
position: relative;
padding: 15px;
padding: 10px;
width: 100%;
height: 100%;
color: color(secondary-dark);
display: grid;
column-gap: 15px;
Expand Down Expand Up @@ -70,7 +72,7 @@
}

&__content {
font-size: 14px;
font-size: 12px;
color: color(secondary-dark);
margin-top: 15px;
grid-area: content;
Expand All @@ -79,6 +81,7 @@
@include breakpoint(large up) {
margin-top: 0;
grid-area: content;
font-size: 14px;
}
}

Expand Down Expand Up @@ -132,7 +135,7 @@
text-align: center;
line-height: 1.57;
margin-top: 10px;

@include breakpoint(large up) {
text-align: left;
margin-top: 0;
Expand All @@ -142,7 +145,7 @@
#{$this}__heading {
line-height: 1.33;
padding-top: 15px;

@include breakpoint(large up) {
text-align: left;
padding-top: 0;
Expand Down
1 change: 1 addition & 0 deletions src/_sass/elements/_h.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ h6,
color: $heading-color;
font-weight: $heading-font-weight;
font-family: $heading-font-family;
letter-spacing: -1px;
}

h1, .h1 {
Expand Down
7 changes: 7 additions & 0 deletions src/_sass/objects/_container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.container {
width: 100%;

&--stretch {
height: 100%;
}
}
1 change: 1 addition & 0 deletions src/_sass/pages/_docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

@include breakpoint(large up) {
padding-top: 15px;
padding-bottom: 70px;
}

& > * + * {
Expand Down
17 changes: 17 additions & 0 deletions src/_sass/pages/_home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.home {
&__body {
& > * + * {
margin-top: 30px;
}
}

&__markdown {
& > p {
margin-top: 5px;
}

& > div {
margin-top: 25px;
}
}
}
2 changes: 2 additions & 0 deletions src/_sass/segment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
@import "objects/gutter";
@import "objects/waffle";
@import "objects/image";
@import "objects/container";

// Elements
// =================================================
Expand Down Expand Up @@ -79,6 +80,7 @@
// =================================================
@import "pages/docs";
@import "pages/page";
@import "pages/home";

// Vendors
// =================================================
Expand Down
26 changes: 15 additions & 11 deletions src/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Segment Documentation
layout: home
landing: true
hide_toc: true
redirect_from:
- '/api/'
- '/big-picture/'
Expand All @@ -15,23 +15,27 @@ redirect_from:
- '/troubleshooting/data'
---

**Welcome to the Segment Documentation!**
Welcome to the Segment!
Get familiar with our products, features, and integrations!

{% include landing.html %}

---

## Getting Started

- **Totally new here**? Not sure what to track or why? Check out Segment's [Analytics Academy](https://segment.com/academy/) to learn more about the wide world of analytics, including the what and why and some stories about beautiful stacks.
- **Digging in on technical details**? Check out [Segment University](https://university.segment.com/) for some step-by-step instruction on implementing Segment, and some of our advanced features.
- **Ready to get started implementing**? Check out the [Connections](/docsv2/connections/) documentation to learn about our [Sources](/docsv2/connections/sources/) (what you can use to collect your data), [the Segment Spec](/docsv2/connections/spec/) (the formats you can build on to collect data), and our [Destinations](/docsv2/connections/destinations/) (the tools you can then send data to).
{% capture step1 %}
Not sure what to track or why? Check out Segment's [Analytics Academy](https://segment.com/academy/) to learn more about the wide world of analytics, including the what and why and some stories about beautiful stacks.
{% endcapture %}

Be sure to check out the [Guides](/docsv2/guides/) for FAQs and Best Practices, and dig in to the [App](/docsv2/segment-app/) section to get to know the Segment web app.
{% capture step2 %}
Check out [Segment University](https://university.segment.com/) for some step-by-step instruction on implementing Segment, and some of our advanced features.
{% endcapture %}

### Intro
{% capture step3 %}
Check out the [Connections](/docsv2/connections/) documentation to learn about our [Sources](/docsv2/connections/sources/) (what you can use to collect your data), [the Segment Spec](/docsv2/connections/spec/) (the formats you can build on to collect data), and our [Destinations](/docsv2/connections/destinations/) (the tools you can then send data to).
{% endcapture %}

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut in ipsum aliquam purus ullamcorper suscipit a et urna. Donec at enim non velit mollis feugiat. Sed arcu purus, condimentum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut in ipsum aliquam purus ullamcorper suscipit a et urna. Donec at enim non velit mollis feugiat. Sed arcu purus, condimentum.
{% include components/list-steps.html number="1" heading="Totally new here?" content=step1 %}
{% include components/list-steps.html number="2" heading="Digging in on technical details?" content=step2 %}
{% include components/list-steps.html number="3" heading="Ready to get started implementing?" content=step3 %}

---
Be sure to check out the [Guides](/docsv2/guides/) for FAQs and Best Practices, and dig in to the [App](/docsv2/segment-app/) section to get to know the Segment web app.
4 changes: 2 additions & 2 deletions src/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ analytics.identify('025pikachu025', {

## Media Icons

{% include components/media-icon.html variant="small" href="#" icon="media/academy" title="Title" content="Lorem ipsum dolor sit amet consectetur, adipisicing elit. Iusto ratione ipsum fugiat nostrum velit iure, molestiae accusamus tempora quos laborum, ex modi illum delectus. Suscipit nesciunt labore nulla numquam excepturi?" excerpt="Read more" %}
{% include components/media-icon.html variant="large" href="#" icon="media/academy" title="Title" content="Lorem ipsum dolor sit amet consectetur, adipisicing elit. Iusto ratione ipsum fugiat nostrum velit iure, molestiae accusamus tempora quos laborum, ex modi illum delectus. Suscipit nesciunt labore nulla numquam excepturi?" excerpt="Read more" %}
{% include components/media-icon.html variant="small" href="#" icon="icon-academy.svg" title="Title" content="Lorem ipsum dolor sit amet consectetur, adipisicing elit. Iusto ratione ipsum fugiat nostrum velit iure, molestiae accusamus tempora quos laborum, ex modi illum delectus. Suscipit nesciunt labore nulla numquam excepturi?" excerpt="Read more" %}
{% include components/media-icon.html variant="large" href="#" icon="icon-academy.svg" title="Title" content="Lorem ipsum dolor sit amet consectetur, adipisicing elit. Iusto ratione ipsum fugiat nostrum velit iure, molestiae accusamus tempora quos laborum, ex modi illum delectus. Suscipit nesciunt labore nulla numquam excepturi?" excerpt="Read more" %}
{% include components/button-link.html text="Find out more" href="https://segment.com" %}

---
Expand Down