-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1417 from Nexmo/APIDOC-195_new_documentation_page
API-195: New layout/design for landing page in /documentation + bump …
- Loading branch information
Showing
11 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...veloper/app/assets/stylesheets/landing_page_documentation/landing_page_documentation.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.pb-20 { padding-bottom: 20px; } | ||
|
||
.landing_page_documentation .container { | ||
max-width: 1300px; | ||
padding: 24px 20px 0; | ||
margin: 50px auto; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
lib/nexmo_developer/app/views/layouts/landing_page_documentation.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<%= render partial: 'layouts/partials/head' %> | ||
|
||
<body class="Nxd-template landing_page_documentation" data-push-state-root="<%= canonical_path %>"> | ||
<%= render partial: 'layouts/partials/header' %> | ||
|
||
<main class="wrapper wrapper--tint" tabindex="2"> | ||
<%= render partial: 'layouts/partials/notices' %> | ||
<div class="container"> | ||
<%= yield %> | ||
</div> | ||
<%= render partial: 'layouts/partials/improve_this_page' %> | ||
</main> | ||
|
||
<% if @homepage %> | ||
<%= render partial: 'layouts/partials/footer' %> | ||
<% end %> | ||
</body> | ||
</html> |
37 changes: 37 additions & 0 deletions
37
lib/nexmo_developer/app/views/static/landing_page_documentation.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="wrapper wrapper--tint"> | ||
<div class="center spacious content-block"> | ||
<h1><%= @landing_info['title'].html_safe %></h1> | ||
<p><%= raw @landing_info['subtitle'].html_safe %></p> | ||
</div> | ||
|
||
<div> | ||
|
||
<!-- TOP section --> | ||
<% @landing_info['top-section'].each do |product| %> | ||
<hr class="hr--tall Vlt-gradient--blue-to-pink"></hr> | ||
<h2><%= product.keys.first %></h2> | ||
<br> | ||
|
||
<div class="my-4col-grid"> | ||
<% product[product.keys.first].each do |card| %> | ||
<%= render partial: 'static/landing_page_documentation/partials/small_product_card', locals: { product: card } %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
|
||
<!-- BOTTOM section --> | ||
<% @landing_info['bottom-section'].each do |product| %> | ||
<hr class="hr--tall Vlt-gradient--blue-to-pink"></hr> | ||
<h2><%= product.keys.first %></h2> | ||
<br> | ||
|
||
<div class="my-2col-grid"> | ||
<% product[product.keys.first].each do |cards| %> | ||
<%= render partial: 'static/landing_page_documentation/partials/big_product_card', locals: { products: cards } %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
|
||
</div> | ||
|
||
</div> |
23 changes: 23 additions & 0 deletions
23
...developer/app/views/static/landing_page_documentation/partials/_big_product_card.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="Vlt-card" style="padding: 35px;"> | ||
<div class="d-flex-column h-100"> | ||
|
||
<div> | ||
<svg class="Vlt-icon Vlt-icon--larger Vlt-purple"><use xlink:href="/symbol/volta-icons.svg#<%= products['icon'] %>" /></svg> | ||
</div> | ||
|
||
<h3 class="Vlt-purple pb-20"> | ||
<%= products.keys.first %> | ||
</h3> | ||
|
||
<div class="my-2col-grid"> | ||
<% products[products.keys.first].each do |item| %> | ||
<div> | ||
<p><a href=<%= item['product_name_link'] %>><%= item['product_name'] %></a></p> | ||
|
||
<p><%= item['product_description'] %></p> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
</div> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
...veloper/app/views/static/landing_page_documentation/partials/_small_product_card.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="Vlt-card" style="padding: 35px;"> | ||
<div class="d-flex-column h-100"> | ||
|
||
<div> | ||
<svg class="Vlt-icon Vlt-icon--larger Vlt-purple"><use xlink:href="/symbol/volta-icons.svg#<%= product['icon'] %>" /></svg> | ||
</div> | ||
|
||
<h3 class="Vlt-purple"> | ||
<a href=<%= product['product_name_link'] %>><%= product['product_name'] %></a> | ||
</h3> | ||
|
||
<div style="flex-grow: 1; padding: 25px 0;"> | ||
<p><%= raw product['product_description'].html_safe %></p> | ||
</div> | ||
|
||
<div class="Vlt-card__footer flex-between"> | ||
<% if product['getting_started_link'].present? %> | ||
<a href=<%= product['getting_started_link'] %> class="Vlt-btn Vlt-btn--secondary Vlt-btn--app Vlt-btn--small">Getting Started</a> | ||
<% end %> | ||
|
||
<% if product['api_reference_link'].present? %> | ||
<a href=<%= product['api_reference_link'] %> class="Vlt-btn Vlt-btn--white Vlt-btn--app Vlt-btn--small" style="border: 1px solid;">API Reference ></a> | ||
<% end %> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module NexmoDeveloper | ||
VERSION = '0.2.6'.freeze | ||
VERSION = '0.3.0'.freeze | ||
end |