Skip to content

Commit ba9bfa0

Browse files
committed
topcoder connect ui responsive updates
1 parent 8b6cc79 commit ba9bfa0

File tree

10 files changed

+216
-38
lines changed

10 files changed

+216
-38
lines changed

src/assets/icons/coder-welcome.svg

Lines changed: 1 addition & 1 deletion
Loading

src/components/CoderBot/CoderBot.scss

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,24 @@
1313
position: relative;
1414
padding-top: 55px;
1515
text-align: center;
16-
min-height: 606px;
17-
min-width: 768px;
18-
width: 970px;
16+
min-height: 706px;
17+
@media screen and (max-width: $screen-sm - 1px) {
18+
min-height: 780px;
19+
}
1920
margin: 20px auto 0;
2021
background: #ffffff;
2122
.icon-coder-broken {
2223
margin: 6% 20%;
2324
float: left;
25+
@media screen and (max-width: $screen-md - 1px) {
26+
margin: 6% 10%;
27+
}
28+
@media screen and (max-width: $screen-sm - 1px) {
29+
margin: 6% 5%;
30+
}
31+
@media screen and (max-width: 321px) {
32+
margin: 6% 1%;
33+
}
2434
}
2535
background-size: 307px 300px;
2636
a{
@@ -36,24 +46,52 @@
3646
letter-spacing: 0px;
3747
padding: 0 168px 25px 168px;
3848
line-height: inherit;
49+
@media screen and (max-width: 1000px - 1px) {
50+
padding: 0 100px 25px 100px;
51+
}
52+
@media screen and (max-width: $screen-md - 1px) {
53+
padding: 0 28px 25px 28px;
54+
}
55+
@media screen and (max-width: $screen-sm - 1px) {
56+
font-size: 30px;
57+
}
3958
}
4059
p{
4160
text-align: left;
61+
min-height: 120px;
4262
padding: 0 168px;
4363
@include roboto;
4464
font-size: $tc-label-lg;
4565
color: $tc-gray-70;
4666
letter-spacing: 0px;
4767
line-height: 23px;
68+
@media screen and (max-width: 1000px - 1px) {
69+
padding: 0 100px;
70+
}
71+
@media screen and (max-width: $screen-md - 1px) {
72+
padding: 0 28px;
73+
}
4874
}
4975
span{
5076
position: absolute;
5177
left: 49%;
52-
top: 45%;
78+
bottom: 25%;
5379
@include roboto-medium;
5480
font-size: 190px;
5581
color: $tc-orange-30;
5682
letter-spacing: 0px;
83+
@media screen and (max-width: $screen-md - 1px) {
84+
font-size: 150px;
85+
bottom: 30%;
86+
}
87+
@media screen and (max-width: $screen-sm - 1px) {
88+
font-size: 100px;
89+
bottom: 45%;
90+
}
91+
@media screen and (max-width: 400px) {
92+
font-size: 65px;
93+
left: 63%;
94+
}
5795
}
5896
}
5997
}

src/components/Maintenance/Maintenance.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Maintenance = () => {
55
return (
66
<section className="content content-error">
77
<div className="container">
8-
<div className="page-error">
8+
<div className="page-error-maintenance">
99
<h3>Welcome to Topcoder Connect</h3>
1010
<p>We are temporarily down for maintenance. We will be back shortly, after Coder is done with all the amazing optimizations.</p>
1111
</div>

src/components/Maintenance/Maintenance.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
}
99
}
1010

11-
.page-error {
11+
.page-error-maintenance {
1212
border-radius:4px;
1313
position: relative;
1414
padding-top: 55px;
1515
text-align: center;
1616
min-height: 606px;
17-
min-width: 768px;
18-
width: 970px;
1917
margin: 20px auto 0;
18+
background: #ffffff;
2019
/* background: $tc-white url('../../assets/icons/coder-broken.svg') no-repeat 18% 85%; */
2120
background-size: 307px 300px;
2221
a{
@@ -30,17 +29,25 @@
3029
@include roboto-medium;
3130
font-size: 48px;
3231
letter-spacing: 0px;
33-
padding: 0 168px 25px 168px;
32+
padding: 0 28px 25px 28px;
3433
line-height: inherit;
34+
@media screen and (max-width: $screen-sm - 1px) {
35+
font-size: 30px;
36+
}
3537
}
3638
p{
37-
text-align: left;
39+
text-align: center;
3840
padding: 0 168px;
3941
@include roboto;
4042
font-size: $tc-label-lg;
4143
color: $tc-gray-70;
4244
letter-spacing: 0px;
4345
line-height: 23px;
46+
padding: 0 28px 25px 28px;
47+
48+
@media screen and (max-width: $screen-md - 1px) {
49+
text-align: justify;
50+
}
4451
}
4552
span{
4653
position: absolute;

src/components/StatusFilters/StatusFiltersMobile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class StatusFiltersMobile extends React.Component {
4747
return (
4848
<div>
4949
<div styleName={cn('handle', { 'is-open': isOpen })} onClick={this.toggle}>
50-
<span>{currentSatusLabel}</span>
50+
<div>{currentSatusLabel}</div>
5151
<IconCarretDown />
5252
</div>
5353
{isOpen && <ul styleName="list">

src/components/StatusFilters/StatusFiltersMobile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
display: flex;
99
height: 10 * $base-unit;
1010
font-size: 15px;
11-
justify-content: space-between;
1211
padding: 0 4 * $base-unit;
1312

1413
> svg {
1514
width: 12px;
15+
margin-left: 10px;
1616
}
1717

1818
&.is-open > svg {

src/projects/list/components/Projects/ProjectListNavHeader.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ export default class ProjectListNavHeader extends Component {
8787
)
8888
)}
8989
</MediaQuery>
90+
<div className="primary-filter">
91+
<div className="tc-switch clearfix">
92+
<SwitchButton
93+
onChange={ this.handleMyProjectsFilter }
94+
label="My projects"
95+
name="my-projects-only"
96+
checked={this.props.criteria.memberOnly}
97+
/>
98+
</div>
99+
</div>
90100
</div>
91101
<div className="right-wrapper">
92102

src/projects/list/components/Projects/ProjectListNavHeader.scss

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121

2222
.left-wrapper {
2323
flex: 1 1 auto;
24+
.primary-filter {
25+
position: absolute;
26+
top: 60px;
27+
right: 0;
28+
29+
@media screen and (min-width: $screen-sm) {
30+
display: none;
31+
}
32+
}
2433
}
2534

2635
.right-wrapper {
@@ -59,10 +68,6 @@
5968
.primary-filter {
6069
margin-right: 20px;
6170

62-
@media screen and (max-width: $screen-md - 1px) {
63-
display: none;
64-
}
65-
6671
.tc-switch .label {
6772
white-space: nowrap;
6873
}

src/projects/list/components/Walkthrough/Walkthrough.jsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3+
import {Link} from 'react-router-dom'
34
import './Walkthrough.scss'
45
import IconShadow from '../../../../assets/icons/ground-shadow.svg'
56
import IconRobot from '../../../../assets/icons/coder-welcome.svg'
67
import IconTextImg from '../../../../assets/icons/pointer-new-project.svg'
8+
import BoldAdd from '../../../../assets/icons/ui-16px-1_bold-add.svg'
79

810

911

@@ -13,13 +15,22 @@ const Walkthrough = ({currentUser}) => (
1315
<IconTextImg className="text-img"/>
1416

1517
<div className="bubble">
16-
<IconRobot className="robot"/>
17-
<IconShadow className="shadow"/>
18+
<IconRobot className="robot robotleft"/>
1819
<div>
1920
<span className="arrow"/>
2021
<h3>010010010010100101001000100100101 <br/>Bzzt …I mean… Hello, {currentUser.firstName}!</h3>
2122
<p>Welcome to Connect! I’m Coder the Robot. I see you have no projects yet. To get you started, press the “New Project” icon and let’s build something.</p>
23+
<Link to="/new-project">
24+
<div className="new-project-button">
25+
<div className="new-project-icon">
26+
<BoldAdd className="icon-bold-add"/>
27+
</div>
28+
<div className="title">Create a new project</div>
29+
</div>
30+
</Link>
2231
</div>
32+
<IconRobot className="robot"/>
33+
<IconShadow className="shadow"/>
2334
</div>
2435
</div>
2536
)

0 commit comments

Comments
 (0)