Skip to content

Commit 1938580

Browse files
author
tsv2013
committed
Updated application styles
1 parent 0c1309e commit 1938580

File tree

2 files changed

+97
-35
lines changed

2 files changed

+97
-35
lines changed

src/App.css

Lines changed: 78 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,96 @@
1-
.sjs-client-app {
2-
color: #404040;
3-
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
1+
2+
body {
3+
margin: 0;
4+
background: #f7f8fa;
5+
font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
6+
color: #23282c;
47
}
58

6-
.sjs-client-app__logo {
7-
vertical-align: middle;
9+
.sjs-app {
10+
min-height: 100vh;
11+
display: flex;
12+
flex-direction: column;
813
}
914

10-
.sjs-client-app__header {
11-
background-color: var(--primary, #19b394);
12-
padding: 10px;
13-
padding-bottom: 0;
15+
16+
.sjs-app__header {
17+
background: linear-gradient(90deg, #19b394 0%, #50b390 100%);
18+
box-shadow: 0 2px 8px rgba(30,143,255,0.08);
19+
padding: 0;
20+
position: sticky;
21+
top: 0;
22+
z-index: 100;
23+
}
24+
25+
.sjs-app__header-inner {
26+
max-width: 1200px;
27+
margin: 0 auto;
28+
display: flex;
29+
align-items: center;
30+
justify-content: space-between;
31+
height: 64px;
32+
padding: 0 32px;
33+
}
34+
35+
.sjs-app__logo-link {
36+
display: flex;
37+
align-items: center;
38+
text-decoration: none;
39+
}
40+
41+
.sjs-app__logo {
42+
height: 48px;
43+
margin-right: 12px;
1444
}
1545

1646
.sjs-nav-button {
1747
display: inline-block;
1848
margin-left: 24px;
19-
font-weight: bold;
20-
font-size: 22px;
49+
font-weight: 600;
50+
font-size: 18px;
2151
text-decoration: none;
2252
line-height: 40px;
23-
color: white;
53+
color: #fff;
54+
padding: 0 8px;
55+
border-radius: 4px;
56+
transition: background 0.2s, color 0.2s;
2457
}
2558

2659
.sjs-nav-button:hover,
2760
.sjs-nav-button.active {
28-
text-decoration: underline;
61+
background: rgba(255,255,255,0.15);
62+
color: #fff;
63+
text-decoration: none;
2964
}
3065

31-
.sjs-client-app__content {
32-
position: fixed;
33-
top: 64px;
66+
.sjs-app__content {
67+
flex: 1 1 auto;
68+
max-width: 1200px;
69+
margin: 32px auto 0 auto;
3470
width: 100%;
35-
left: 0;
36-
bottom: 0;
37-
overflow: auto;
38-
user-select: none;
71+
background: #fff;
72+
border-radius: 16px;
73+
box-shadow: 0 2px 16px rgba(30,143,255,0.06);
74+
padding: 32px 24px 40px 24px;
75+
min-height: 500px;
76+
}
77+
78+
.sjs-app__footer {
79+
background: #23282c;
80+
color: #fff;
81+
padding: 0;
3982
}
4083

84+
.sjs-app__footer-inner {
85+
max-width: 1200px;
86+
margin: 0 auto;
87+
padding: 20px 32px;
88+
text-align: center;
89+
font-size: 15px;
90+
letter-spacing: 0.2px;
91+
}
92+
93+
4194
h1 {
4295
padding-left: 24px;
4396
}
@@ -53,10 +106,12 @@ h1 {
53106
margin: 0 auto;
54107
}
55108

56-
.sjs-client-app__footer {}
57-
58109
.sjs-editor-container {
59-
height: calc(100% - 2px);
110+
position: fixed;
111+
left: 0;
112+
width: 100%;
113+
top: 70px;
114+
height: calc(100% - 130px);
60115
}
61116

62117
.sjs-results-container {

src/App.tsx

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,26 @@ import logo from './logo.svg';
1111
function App() {
1212
return (
1313
<Provider store={store}>
14-
<Router>
15-
<div className="sjs-client-app">
16-
<header className="sjs-client-app__header">
17-
<img src={logo} className="sjs-client-app__logo" alt="logo" height={'50px'} />
14+
<Router>
15+
<div className="sjs-app">
16+
<header className="sjs-app__header">
17+
<div className="sjs-app__header-inner">
18+
<a href="https://surveyjs.io/" className="sjs-app__logo-link" target="_blank" rel="noopener noreferrer">
19+
<img src={logo} className="sjs-app__logo" alt="SurveyJS Logo" height="48" />
20+
</a>
1821
<NavBar/>
19-
</header>
20-
<main className="sjs-client-app__content">
21-
<Content/>
22-
</main>
23-
<footer className="sjs-client-app__footer">
24-
</footer>
25-
</div>
26-
</Router>
22+
</div>
23+
</header>
24+
<main className="sjs-app__content">
25+
<Content/>
26+
</main>
27+
<footer className="sjs-app__footer">
28+
<div className="sjs-app__footer-inner">
29+
<span>Copyright © {new Date().getFullYear()} Devsoft Baltic OÜ. All rights reserved.</span>
30+
</div>
31+
</footer>
32+
</div>
33+
</Router>
2734
</Provider>
2835
);
2936
}

0 commit comments

Comments
 (0)