Skip to content

Commit cc49b53

Browse files
committed
redisgning welcome page
Signed-off-by: Vishal-raj-1 <rajputvishal33786@gmail.com>
1 parent 884fc8e commit cc49b53

3 files changed

Lines changed: 63 additions & 24 deletions

File tree

assets/app/css/main.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,41 @@ body {
279279
background: rgba(255, 255, 255, 0.12);
280280
}
281281

282+
/*---------------------------------------
283+
Welcome Page
284+
-----------------------------------------*/
285+
286+
#import-json, #open-file, #save-file{
287+
border: 2px dashed skyblue;
288+
display: inline-block;
289+
width: 25%;
290+
text-align: center;
291+
margin: 6rem 3rem;
292+
padding: 1rem;
293+
cursor: pointer;
294+
}
295+
296+
#welcomepage-view i{
297+
font-size: 10rem;
298+
}
299+
300+
#welcomepage-title , .icons{
301+
text-align: center;
302+
}
303+
304+
.quicklinks h3{
305+
padding-left:7rem;
306+
}
307+
308+
.btn-group-horizontal{
309+
text-align:center;
310+
}
311+
312+
.btn-group-horizontal a{
313+
margin: 1rem;
314+
border:2px solid rgb(74, 176, 199) !important;
315+
}
316+
282317
/*---------------------------------------
283318
DataTables custom
284319
-----------------------------------------*/

assets/app/js/controllers/conclusionDialog.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class ConclusionDialog extends Controller {
207207
tags: true,
208208
language: {
209209
'noResults': function () {
210-
return ("SCWB did not find any license expressions in the scan that applies to the current path");
210+
return ('SCWB did not find any license expressions in the scan that applies to the current path');
211211
}
212212
}
213213
}, true);
@@ -229,7 +229,7 @@ class ConclusionDialog extends Controller {
229229
tags: true,
230230
language: {
231231
'noResults': function () {
232-
return ("SCWB did not find any copyright statements in the scan pertaining to the current path");
232+
return ('SCWB did not find any copyright statements in the scan pertaining to the current path');
233233
}
234234
}
235235
}, true);
@@ -250,7 +250,7 @@ class ConclusionDialog extends Controller {
250250
tags: true,
251251
language: {
252252
'noResults': function () {
253-
return ("SCWB did not find any owners in the scan for the current path");
253+
return ('SCWB did not find any owners in the scan for the current path');
254254
}
255255
}
256256
}, true);
@@ -272,7 +272,7 @@ class ConclusionDialog extends Controller {
272272
tags: true,
273273
language: {
274274
'noResults': function () {
275-
return ("SCWB did not find any primary programming languages in the scan associated with the current path");
275+
return ('SCWB did not find any primary programming languages in the scan associated with the current path');
276276
}
277277
}
278278
}, true);
@@ -306,7 +306,7 @@ class ConclusionDialog extends Controller {
306306
tags: true,
307307
language: {
308308
'noResults': function () {
309-
return ("SCWB did not find any Homepage URL in the scan for the current path");
309+
return ('SCWB did not find any Homepage URL in the scan for the current path');
310310
}
311311
}
312312
}, true);
@@ -331,7 +331,7 @@ class ConclusionDialog extends Controller {
331331
tags: true,
332332
language: {
333333
'noResults': function () {
334-
return ("SCWB did not find any download URL in the scan for obtaining the current path");
334+
return ('SCWB did not find any download URL in the scan for obtaining the current path');
335335
}
336336
}
337337
}, true);
@@ -358,7 +358,7 @@ class ConclusionDialog extends Controller {
358358
tags: true,
359359
language: {
360360
'noResults': function () {
361-
return ("SCWB did not find any License url in the scan for the current path");
361+
return ('SCWB did not find any License url in the scan for the current path');
362362
}
363363
}
364364
}, true);
@@ -379,7 +379,7 @@ class ConclusionDialog extends Controller {
379379
tags: true,
380380
language: {
381381
'noResults': function () {
382-
return ("SCWB did not find any Notice URL in the scan for the current path");
382+
return ('SCWB did not find any Notice URL in the scan for the current path');
383383
}
384384
}
385385
}, true);

index.html

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,26 +118,30 @@
118118
<!-- Welcome Page -->
119119
<div class="tab-pane container" id="tab-welcomepage">
120120
<div id="welcomepage-container">
121-
<div id="wecomepage-title">
121+
<div id="welcomepage-title">
122122
<h1>Welcome to ScanCode Workbench</h1>
123123
</div>
124124
<div id="welcomepage-view">
125-
<div class="row">
126-
<div class="col-sm-4">
127-
<h3>Start:</h3>
128-
<div class="btn-group-vertical" role="group" aria-label="...">
129-
<button id="import-json" class="btn btn-lg btn-default"><i class="fa fa-cogs"></i> Import ScanCode JSON</button>
130-
<button id="open-file" class="btn btn-lg btn-default"><i class="fa fa-folder"></i> Open SQLite File</button>
131-
<button id="save-file" class="btn btn-lg btn-default"><i class="fa fa-floppy-o"></i> Save SQLite File</button>
132-
</div>
125+
<div class="icons">
126+
<div id="import-json">
127+
<i class="fa fa-cogs"></i>
128+
<h4>Import ScanCode JSON</h4>
133129
</div>
134-
<div class="col-sm-8">
135-
<h3>Learn and Contribute:</h3>
136-
<div class="btn-group-vertical" role="group" aria-label="...">
137-
<a href="https://github.com/nexB/scancode-workbench/" class="btn btn-lg btn-default">GitHub Repository</a>
138-
<a href="https://scancode-workbench.readthedocs.io" class="btn btn-lg btn-default">Documentation</a>
139-
<a href="https://github.com/nexB/scancode-workbench/issues" class="btn btn-lg btn-default">Report a Bug or Request a Feature</a>
140-
</div>
130+
<div id="open-file">
131+
<i class="fa fa-folder"></i>
132+
<h4>Open SQLite File</h4>
133+
</div>
134+
<div id="save-file">
135+
<i class="fa fa-floppy-o"></i>
136+
<h4>Save SQLite File</h4>
137+
</div>
138+
</div>
139+
<div class="quicklinks">
140+
<h3>Quick Links: </h3>
141+
<div class="btn-group-horizontal" role="group" aria-label="...">
142+
<a href="https://github.com/nexB/scancode-workbench/" class="btn btn-lg btn-default">GitHub Repository</a>
143+
<a href="https://scancode-workbench.readthedocs.io/" class="btn btn-lg btn-default">Getting Started with Scancode Workbench</a>
144+
<a href="https://github.com/nexB/scancode-workbench/issues" class="btn btn-lg btn-default">Report a Bug or Request a Feature</a>
141145
</div>
142146
</div>
143147
</div>

0 commit comments

Comments
 (0)