Skip to content

Current progress with develop #89

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 55 commits into from
Oct 4, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
1a95367
feat(): Introduce styleguide page
jedrzejchalubek Sep 26, 2019
084eaa1
feat(): Introduce base typography and fonts
jedrzejchalubek Sep 26, 2019
6ae2cd9
feat(): Prepare colors palette (#67)
bart-krakowski Sep 26, 2019
e788ffd
feat(): Introduce image object (#70)
bart-krakowski Sep 26, 2019
12e3a75
fix(styleguide): Use page layout directly as styleguide template
jedrzejchalubek Sep 26, 2019
ca47b7b
feat(): Introduce anchor component (#73)
bart-krakowski Sep 26, 2019
00edc14
refactor(): Rename gray colors so we can have more names in a future
jedrzejchalubek Sep 26, 2019
4a55cdb
feat(): Introduce headings (#68)
bart-krakowski Sep 26, 2019
248c532
feat(): Introduce unordered list (#72)
bart-krakowski Sep 26, 2019
44fea79
fix(): Add breakpoints sizes map variable
jedrzejchalubek Sep 26, 2019
4d18270
feat(): Introduce ordered list (#71)
bart-krakowski Sep 26, 2019
019c056
Merge branch 'master' into develop
jedrzejchalubek Sep 27, 2019
178931a
refactor(variables): Use color form colors map for text
jedrzejchalubek Sep 27, 2019
5a5e14e
feat(): Introduce flex, gutter and waffle components
jedrzejchalubek Sep 27, 2019
b816477
fix(): Script tags should be before closing body tag
jedrzejchalubek Sep 27, 2019
7109ae1
refactor(flex): Use 24col based grid
jedrzejchalubek Sep 27, 2019
c14f896
feat(): Introduce button link (#76)
imklau Sep 27, 2019
bfc8a98
Revert "refactor(flex): Use 24col based grid"
jedrzejchalubek Sep 27, 2019
e1b3a9d
wip(): Working on default layout structure
jedrzejchalubek Sep 27, 2019
b0473ec
feat(): Introduce Note component (#77)
imklau Sep 27, 2019
593ef99
feat(): Introduce alert component (#75)
bart-krakowski Sep 30, 2019
44876bf
refactor(): Refactor in stage and docs components
jedrzejchalubek Sep 30, 2019
7439c2d
11 table (#74)
bart-krakowski Sep 30, 2019
1b4aba5
wip(): WOrking on general layouts
jedrzejchalubek Oct 1, 2019
18cca9a
feat(): Introduce media icon (#78)
bart-krakowski Oct 1, 2019
9c34baf
feat(): Introduce list steps (#80)
bart-krakowski Oct 1, 2019
009202c
feat(): Introduce refactored table (#79)
bart-krakowski Oct 1, 2019
eb54c05
refactor(): Remove redundant data attr
jedrzejchalubek Oct 1, 2019
91df25d
feat(): Introduce field and input components
jedrzejchalubek Oct 1, 2019
00a4512
Merge branch '13-input-field' into develop
jedrzejchalubek Oct 1, 2019
023e9f7
fix(): Adjust width of general 3 column layout
jedrzejchalubek Oct 1, 2019
acf77e8
wip(): Navbar spacings
jedrzejchalubek Oct 1, 2019
d37194d
refactor(): Move stylized elements to markdown scope so it wont affec…
jedrzejchalubek Oct 1, 2019
acef5b4
wip(): Working on page content
jedrzejchalubek Oct 1, 2019
c2d07ed
feat(): Buttons (#81)
bart-krakowski Oct 1, 2019
846dc8d
fix(nav): Justify buttons in navbar
jedrzejchalubek Oct 1, 2019
8ca57ef
feat(): Introduce code, pre and its highlighting
jedrzejchalubek Oct 1, 2019
e0443a7
fix(navbar): Enable searching of swiftsearch
jedrzejchalubek Oct 1, 2019
5ea85b0
feat(): breadcrumbs (#82)
bart-krakowski Oct 2, 2019
c06d423
fix(): Move icons to the includes directory (#84)
imklau Oct 2, 2019
581b1ab
feat(): Side menu and sidebar
jedrzejchalubek Oct 2, 2019
c708181
feat(): Introduce Footer (#88)
imklau Oct 2, 2019
eb642c8
feat(): Introduce Thumbnail Integration component; Create Destination…
imklau Oct 2, 2019
9983cbf
feat(): Introduce new styles for search (#86)
bart-krakowski Oct 2, 2019
82647dc
fix(markdown): Limit width of images
jedrzejchalubek Oct 2, 2019
25c4018
feat(): Panel component (#85)
bart-krakowski Oct 2, 2019
8050834
feat(): Callout (#87)
bart-krakowski Oct 3, 2019
e97018b
wip(): Introduce accordion module and menu structure
jedrzejchalubek Oct 3, 2019
3cc107e
fix(config): Remove rendering limiting to specified pages
jedrzejchalubek Oct 3, 2019
d528969
feat(): Introduce new footer for mobile devices (#91)
imklau Oct 4, 2019
ee68aed
Fix list steps styling (#94)
imklau Oct 4, 2019
1fd147d
refactor(): Use flex for creating alert layout (#93)
imklau Oct 4, 2019
52f9902
feat(): Introduce new search navbar for mobile devices (#90)
imklau Oct 4, 2019
ec108d6
feat(): Menu (#95)
jedrzejchalubek Oct 4, 2019
22c64bb
Merge branch 'staging' into develop
jedrzejchalubek Oct 4, 2019
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
Prev Previous commit
Next Next commit
feat(): Introduce alert component (#75)
  • Loading branch information
bart-krakowski authored and jedrzejchalubek committed Sep 30, 2019
commit 593ef99bc6f893c69ea129e23c529e1b51a18602
4 changes: 4 additions & 0 deletions src/_includes/components/alert.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div markdown="div" class="alert alert--{{ include.type }}" role="alert">
{% include_relative assets/icons/alerts/{{ include.type }}.svg %}
{{ include.content }}
</div>
1 change: 1 addition & 0 deletions src/_sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $color-values: (
secondary: #1f477d,
secondary-dark: #435a6f,
gray-light: #f7f9fa,
gray-lighter: #f9fafb,
gray: #a5b0ba,
code-gray: #435a6f,
code-green: #52bd95,
Expand Down
48 changes: 48 additions & 0 deletions src/_sass/components/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
.alert {
background-color: color(gray-lighter);
border-radius: 4px;
font-size: 14px;
line-height: 1.57;
padding: 15px 20px 15px 50px;
position: relative;

&::before {
content: "";
border-radius: 2px;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 3px;
}

svg {
position: absolute;
left: 20px;
top: 22px;
}

&--info {
&::before {
background-color: color(info);
}
}

&--success {
&::before {
background-color: color(success);
}
}

&--warning {
&::before {
background-color: color(warning);
}
}

&--error {
&::before {
background-color: color(error);
}
}
}
1 change: 1 addition & 0 deletions src/_sass/segment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
@import "components/logo";
@import "components/note";
@import "components/button-link";
@import "components/alert";

// Pages
// =================================================
Expand Down
3 changes: 3 additions & 0 deletions src/assets/icons/alerts/error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/alerts/info.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/alerts/success.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/icons/alerts/warning.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/styleguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ layout: page
Server-side data management is when tag sends data into your web server, then your web server passes that data to the destination system/server.
{% endcapture %}
{% include components/note.html title="Server-side tracking" content=server_side_tracking buttonTitle="Find out more" buttonHref="https://segment.com" %}

{% include components/alert.html type="info" content="This is my sample note." %}
{% include components/alert.html type="success" content="This is my sample note." %}
{% include components/alert.html type="warning" content="This is my sample note." %}
{% include components/alert.html type="error" content="This is my sample note." %}