提交 e9e24d9c 编写于 作者: J Jarek Ostrowski

Fix formatting of welcome screen for external users

Add changelog file
Remove example db file
Revert schema back to master
Restructure HTML to reflect changes in blank-state
上级 5939b09f
...@@ -14,13 +14,12 @@ ...@@ -14,13 +14,12 @@
.blank-state-row { .blank-state-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around; justify-content: space-between;
height: 100%;
} }
.blank-state-welcome { .blank-state-welcome {
text-align: center; text-align: center;
padding: 20px 0 40px; padding: $gl-padding 0 ($gl-padding * 2);
.blank-state-welcome-title { .blank-state-welcome-title {
font-size: 24px; font-size: 24px;
...@@ -32,22 +31,13 @@ ...@@ -32,22 +31,13 @@
} }
.blank-state-link { .blank-state-link {
display: block;
color: $gl-text-color; color: $gl-text-color;
flex: 0 0 100%; flex: 0 0 100%;
margin-bottom: 15px; margin-bottom: 15px;
@include media-breakpoint-up(sm) { // @include media-breakpoint-up(sm) {
flex: 0 0 49%; // flex: 0 0 49%;
// }
&:nth-child(odd) {
margin-right: 5px;
}
&:nth-child(even) {
margin-left: 5px;
}
}
&:hover { &:hover {
background-color: $gray-light; background-color: $gray-light;
...@@ -63,15 +53,20 @@ ...@@ -63,15 +53,20 @@
} }
.blank-state { .blank-state {
padding: 20px; display: flex;
align-items: center;
padding: 20px 50px;
border: 1px solid $border-color; border: 1px solid $border-color;
border-radius: $border-radius-default; border-radius: $border-radius-default;
min-height: 240px;
@include media-breakpoint-up(sm) { margin-bottom: $gl-padding * 2;
display: flex; flex: 0 0 calc(50% - #{$gl-padding});
height: 100%;
align-items: center; @include media-breakpoint-down(sm) {
padding: 50px 30px; flex: 0 0 100%;
flex-direction: column;
justify-content: center;
padding: 50px 20px;
} }
} }
...@@ -90,7 +85,7 @@ ...@@ -90,7 +85,7 @@
} }
.blank-state-body { .blank-state-body {
@include media-breakpoint-down(xs) { @include media-breakpoint-down(sm) {
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;
} }
...@@ -121,9 +116,3 @@ ...@@ -121,9 +116,3 @@
} }
} }
} }
@include media-breakpoint-down(xs) {
.blank-state-icon svg {
width: 315px;
}
}
.blank-state-row .blank-state-row
= link_to new_project_path, class: "blank-state-link" do = link_to new_project_path, class: "blank-state blank-state-link" do
.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
Projects are where you store your code, access issues, wiki and other features of GitLab.
- if current_user.can_create_group?
= link_to new_group_path, class: "blank-state blank-state-link" do
.blank-state-icon .blank-state-icon
= custom_icon("add_new_project", size: 50) = custom_icon("add_new_group", size: 50)
.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Create a project Create a group
%p.blank-state-text %p.blank-state-text
Projects are where you store your code, access issues, wiki and other features of GitLab. Groups are a great way to organize projects and people.
- if current_user.can_create_group?
= 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
%p.blank-state-text
Groups are a great way to organize projects and people.
= link_to new_admin_user_path, class: "blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("add_new_user", size: 50)
.blank-state-body
%h3.blank-state-title
Add people
%p.blank-state-text
Add your team members and others to GitLab.
= link_to admin_root_path, class: "blank-state-link" do = link_to new_admin_user_path, class: "blank-state blank-state-link" do
.blank-state
.blank-state-icon .blank-state-icon
= custom_icon("configure_server", size: 50) = custom_icon("add_new_user", size: 50)
.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Configure GitLab Add people
%p.blank-state-text %p.blank-state-text
Make adjustments to how your GitLab instance is set up. Add your team members and others to GitLab.
= link_to admin_root_path, class: "blank-state blank-state-link" do
.blank-state-icon
= custom_icon("configure_server", size: 50)
.blank-state-body
%h3.blank-state-title
Configure GitLab
%p.blank-state-text
Make adjustments to how your GitLab instance is set up.
...@@ -2,15 +2,14 @@ ...@@ -2,15 +2,14 @@
.blank-state-row .blank-state-row
- if current_user.can_create_project? - if current_user.can_create_project?
= link_to new_project_path, class: "blank-state-link" do = link_to new_project_path, class: "blank-state blank-state-link" do
.blank-state .blank-state-icon
.blank-state-icon = custom_icon("add_new_project", size: 50)
= custom_icon("add_new_project", size: 50) .blank-state-body
.blank-state-body %h3.blank-state-title
%h3.blank-state-title Create a project
Create a project %p.blank-state-text
%p.blank-state-text Projects are where you store your code, access issues, wiki and other features of GitLab.
Projects are where you store your code, access issues, wiki and other features of GitLab.
- else - else
.blank-state .blank-state
.blank-state-icon .blank-state-icon
...@@ -22,37 +21,34 @@ ...@@ -22,37 +21,34 @@
If you are added to a project, it will be displayed here. If you are added to a project, it will be displayed here.
- if current_user.can_create_group? - if current_user.can_create_group?
= link_to new_group_path, class: "blank-state-link" do = link_to new_group_path, class: "blank-state blank-state-link" do
.blank-state .blank-state-icon
.blank-state-icon = custom_icon("add_new_group", size: 50)
= custom_icon("add_new_group", size: 50) .blank-state-body
.blank-state-body %h3.blank-state-title
%h3.blank-state-title Create a group
Create a group %p.blank-state-text
%p.blank-state-text Groups are the best way to manage projects and members.
Groups are the best way to manage projects and members.
- if public_project_count > 0 - if public_project_count > 0
= link_to trending_explore_projects_path, class: "blank-state-link" do = link_to trending_explore_projects_path, class: "blank-state blank-state-link" do
.blank-state
.blank-state-icon
= custom_icon("globe", size: 50)
.blank-state-body
%h3.blank-state-title
Explore public projects
%p.blank-state-text
There are
= number_with_delimiter(public_project_count)
public projects on this server.
Public projects are an easy way to allow
everyone to have read-only access.
= link_to "https://docs.gitlab.com/", class: "blank-state-link" do
.blank-state
.blank-state-icon .blank-state-icon
= custom_icon("lightbulb", size: 50) = custom_icon("globe", size: 50)
.blank-state-body .blank-state-body
%h3.blank-state-title %h3.blank-state-title
Learn more about GitLab Explore public projects
%p.blank-state-text %p.blank-state-text
Take a look at the documentation to discover all of GitLab's capabilities. There are
= number_with_delimiter(public_project_count)
public projects on this server.
Public projects are an easy way to allow
everyone to have read-only access.
= link_to "https://docs.gitlab.com/", class: "blank-state blank-state-link" do
.blank-state-icon
= custom_icon("lightbulb", size: 50)
.blank-state-body
%h3.blank-state-title
Learn more about GitLab
%p.blank-state-text
Take a look at the documentation to discover all of GitLab's capabilities.
---
title: Fix formatting welcome screen external users
merge_request: 32227
author:
type: fixed
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册