Commit 0a7a9bbd authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Reorganize landing page for new users

parent 0c3877a4
...@@ -7,29 +7,43 @@ ...@@ -7,29 +7,43 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
padding-bottom: 25px; padding-bottom: 25px;
border: 1px solid $border-color;
border-radius: $border-radius-default; border-radius: $border-radius-default;
} }
} }
.blank-state { .blank-state-welcome {
padding-top: 20px;
padding-bottom: 20px;
text-align: center; text-align: center;
padding: 20px 0 40px;
&.blank-state-welcome { .blank-state-welcome-title {
.blank-state-welcome-title { font-size: 24px;
font-size: 24px; }
}
.blank-state-text { .blank-state-text {
margin-bottom: 0; margin-bottom: 0;
}
} }
}
.blank-state-icon { .blank-state-link {
padding-bottom: 20px; display: block;
color: $gl-text-color;
&:hover {
background-color: $gray-light;
text-decoration: none;
color: $gl-text-color;
}
}
.blank-state {
display: flex;
align-items: center;
padding: 50px 30px;
margin-bottom: 30px;
border: 1px solid $border-color;
border-radius: $border-radius-default;
.blank-state-icon {
svg { svg {
display: block; display: block;
margin: auto; margin: auto;
...@@ -38,13 +52,10 @@ ...@@ -38,13 +52,10 @@
.blank-state-title { .blank-state-title {
margin-top: 0; margin-top: 0;
margin-bottom: 10px;
font-size: 18px; font-size: 18px;
} }
.blank-state-text { .blank-state-body {
max-width: $container-text-max-width; padding-left: 20px;
margin: 0 auto $gl-padding;
font-size: 14px;
} }
} }
.blank-state .row
.blank-state-icon .col-md-6
= custom_icon("add_new_user", size: 50) = link_to new_admin_user_path, class: "blank-state-link" do
.blank-state-body .blank-state
%h3.blank-state-title .blank-state-icon
Add user = custom_icon("add_new_user", size: 50)
%p.blank-state-text .blank-state-body
Add your team members and others to GitLab. %h3.blank-state-title
= link_to new_admin_user_path, class: "btn btn-new" do Add user
New user %p.blank-state-text
Add your team members and others to GitLab.
.blank-state - if current_user.can_create_group?
.blank-state-icon .col-md-6
= custom_icon("configure_server", size: 50) = link_to admin_root_path, class: "blank-state-link" do
.blank-state-body .blank-state
%h3.blank-state-title .blank-state-icon
Configure GitLab = custom_icon("add_new_group", size: 50)
%p.blank-state-text .blank-state-body
Make adjustments to how your GitLab instance is set up. %h3.blank-state-title
= link_to admin_root_path, class: "btn btn-new" do Create a group
Configure %p.blank-state-text
Groups are a great way to organize projects and people.
- if current_user.can_create_group? .col-md-6
.blank-state = link_to admin_root_path, class: "blank-state-link" do
.blank-state-icon .blank-state
= custom_icon("add_new_group", size: 50) .blank-state-icon
.blank-state-body = custom_icon("configure_server", size: 50)
%h3.blank-state-title .blank-state-body
Create a group %h3.blank-state-title
%p.blank-state-text Configure GitLab
Groups are a great way to organize projects and people. %p.blank-state-text
= link_to new_group_path, class: "btn btn-new" do Make adjustments to how your GitLab instance is set up.
New group
- public_project_count = ProjectsFinder.new(current_user: current_user).execute.count - public_project_count = ProjectsFinder.new(current_user: current_user).execute.count
- if current_user.can_create_group? .row
.blank-state .col-md-6
.blank-state-icon
= custom_icon("add_new_group", size: 50)
.blank-state-body
%h3.blank-state-title
Create a group for several dependent projects.
%p.blank-state-text
Groups are the best way to manage projects and members.
= link_to new_group_path, class: "btn btn-new" do
New group
.blank-state
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body
%h3.blank-state-title
Create a project
%p.blank-state-text
- if current_user.can_create_project?
You don't have access to any projects right now.
You can create up to
%strong= number_with_delimiter(current_user.projects_limit)
= succeed "." do
= "project".pluralize(current_user.projects_limit)
- else
If you are added to a project, it will be displayed here.
- if current_user.can_create_project? - if current_user.can_create_project?
= link_to new_project_path, class: "btn btn-new" do = link_to new_project_path, class: "blank-state-link" do
New project .blank-state
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body
%h3.blank-state-title
Create a project
%p.blank-state-text
You don't have access to any projects right now.
You can create up to
%strong= number_with_delimiter(current_user.projects_limit)
= succeed "." do
= "project".pluralize(current_user.projects_limit)
- else
.blank-state
.blank-state-icon
= custom_icon("add_new_project", size: 50)
.blank-state-body
%h3.blank-state-title
Create a project
%p.blank-state-text
If you are added to a project, it will be displayed here.
- if current_user.can_create_group?
.col-md-6
= link_to new_group_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("add_new_group", size: 50)
.blank-state-body
%h3.blank-state-title
Create a group for several dependent projects.
%p.blank-state-text
Groups are the best way to manage projects and members.
.clearfix
- if public_project_count > 0 - if public_project_count > 0
.blank-state .col-md-6
.blank-state-icon = link_to trending_explore_projects_path, class: "blank-state-link" do
= custom_icon("globe", size: 50) .blank-state
.blank-state-body .blank-state-icon
%h3.blank-state-title = custom_icon("globe", size: 50)
Explore public projects .blank-state-body
%p.blank-state-text %h3.blank-state-title
There are Explore public projects
= number_with_delimiter(public_project_count) %p.blank-state-text
public projects on this server. There are
Public projects are an easy way to allow = number_with_delimiter(public_project_count)
everyone to have read-only access. public projects on this server.
= link_to trending_explore_projects_path, class: "btn btn-new" do Public projects are an easy way to allow
Browse projects everyone to have read-only access.
.row.blank-state-parent-container .row.blank-state-parent-container
.section-container.section-welcome{ class: "#{ 'section-admin-welcome' if current_user.admin? }" } .section-container.section-welcome{ class: "#{ 'section-admin-welcome' if current_user.admin? }" }
.container.section-body .container.section-body
.blank-state.blank-state-welcome .blank-state-welcome
%h2.blank-state-welcome-title %h2.blank-state-welcome-title
Welcome to GitLab Welcome to GitLab
%p.blank-state-text %p.blank-state-text
......
---
title: Reorganize welcome page for new users
merge_request:
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment