Skip to content

Commit 363e128

Browse files
authored
Merge pull request #229 from mattfarina/welcome-general
Updating welcome screen
2 parents f655152 + ba680b5 commit 363e128

File tree

6 files changed

+27
-19
lines changed

6 files changed

+27
-19
lines changed

scripts/dev.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class DevRunner extends events.EventEmitter {
5252
// Wait for the renderer to finish, so that the output from nuxt doesn't
5353
// clobber debugging output.
5454
while (true) {
55-
if ((await fetch('http://localhost:8888/pages/Welcome')).ok) {
55+
if ((await fetch('http://localhost:8888/pages/General')).ok) {
5656
break;
5757
}
5858
await util.promisify(setTimeout)(1000);

src/assets/styles/base/_typography.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,14 @@ H6 {
3535
}
3636

3737
P {
38-
font-size: 1.4em;
39-
line-height: 1.75em;
4038
font-weight: 400;
4139
font-style: normal;
4240
margin: 0;
4341
}
4442

4543
//code
4644
code, samp, kbd, .monospace {
47-
font-family: "Courier New", Courier, monospace, sans-serif;
4845
text-align: left;
49-
// color: var(--secondary);
5046
}
5147

5248
pre {
@@ -58,13 +54,14 @@ pre {
5854
}
5955

6056
code {
61-
background: var(--box-bg);
62-
padding: 2.5px 10px;
57+
background-color: var(--box-bg);
58+
display: inline-block;
59+
padding: 5px;
60+
border: 1px solid var(--border);
6361
border-radius: var(--border-radius);
6462
}
6563

6664
pre code {
6765
background: transparent;
6866
padding: 0;
6967
}
70-

src/components/TelemetryOptIn.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
<style scoped>
3737
p.fineprint {
3838
font-size: small;
39-
margin-right: 50%;
4039
margin-top: 2px;
40+
color: var(--input-label);
4141
}
4242
</style>

src/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
},
1919
2020
data() {
21-
return { routes: ['/Welcome', '/K8s', '/PortForwarding', '/Images', '/Troubleshooting'] };
21+
return { routes: ['/General', '/K8s', '/PortForwarding', '/Images', '/Troubleshooting'] };
2222
},
2323
2424
head() {

src/middleware/indexRedirect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* This middleware redirects / to /Welcome
2+
* This middleware redirects / to /General
33
*/
44
export default ({ route, next, redirect }) => {
55
switch (route.path) {
66
case '/':
7-
redirect(301, '/Welcome');
7+
redirect(301, '/General');
88
break;
99
default:
1010
next();
Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<router lang="yaml">
2-
name: Welcome
2+
name: General
33
</router>
44
<template>
55
<div>
6-
<div class="welcome">
7-
<p>
8-
Welcome...
9-
</p>
6+
<div class="general">
7+
<h1>
8+
Welcome to Rancher Desktop
9+
</h1>
10+
<p>Rancher Desktop provides Kubernetes and image management through the use of a desktop application.</p>
11+
<ul>
12+
<li>Project Status: <i>alpha</i></li>
13+
<li>Project Discussions: #rancher-desktop in <a href="#" onclick="require('electron').shell.openExternal('https://slack.rancher.io/')">Rancher Users</a> Slack</li>
14+
<li>Project Links: <a href="#" onclick="require('electron').shell.openExternal('https://github.com/rancher-sandbox/rd')">Homepage</a> <a href="#" onclick="require('electron').shell.openExternal('https://github.com/rancher-sandbox/rd/issues')">Issues</a></li>
15+
</ul>
1016
</div>
1117
<hr>
1218
<telemetry-opt-in
@@ -21,8 +27,8 @@ import TelemetryOptIn from '@/components/TelemetryOptIn.vue';
2127
const { ipcRenderer } = require('electron');
2228
2329
export default {
24-
name: 'Welcome',
25-
title: 'Welcome',
30+
name: 'General',
31+
title: 'General',
2632
components: { TelemetryOptIn },
2733
data() {
2834
return {
@@ -50,4 +56,9 @@ export default {
5056

5157
<!-- Add "scoped" attribute to limit CSS to this component only -->
5258
<style scoped>
59+
60+
.general li {
61+
margin-bottom: .5em;
62+
}
63+
5364
</style>

0 commit comments

Comments
 (0)