Skip to content

Commit 93b7ad0

Browse files
committed
web - add proper callback landing page
1 parent 1ad37cf commit 93b7ad0

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

build/gulpfile.vscode.web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const vscodeWebResources = [
3535

3636
// Workbench
3737
'out-build/vs/{base,platform,editor,workbench}/**/*.{svg,png}',
38-
'out-build/vs/code/browser/workbench/workbench.html',
38+
'out-build/vs/code/browser/workbench/*.html',
3939
'out-build/vs/base/browser/ui/octiconLabel/octicons/**',
4040
'out-build/vs/**/markdown.css',
4141

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
2+
<!DOCTYPE html>
3+
<html>
4+
<head>
5+
<meta charset="utf-8" />
6+
7+
<!-- Disable pinch zooming -->
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
9+
10+
<!-- Content Security Policy -->
11+
<meta
12+
http-equiv="Content-Security-Policy"
13+
content="
14+
default-src 'self';
15+
img-src 'self' https: data: blob:;
16+
media-src 'none';
17+
script-src 'self';
18+
style-src 'self' 'unsafe-inline';
19+
font-src 'self' blob:;
20+
">
21+
22+
<title>Visual Studio Code</title>
23+
24+
<!-- Styling -->
25+
<style type="text/css">
26+
html {
27+
height: 100%;
28+
}
29+
30+
body {
31+
box-sizing: border-box;
32+
min-height: 100%;
33+
margin: 0;
34+
padding: 15px 30px;
35+
display: flex;
36+
flex-direction: column;
37+
color: white;
38+
font-family: "Segoe UI", "Helvetica Neue", "Helvetica", Arial, sans-serif;
39+
background-color: #373277;
40+
}
41+
42+
.branding {
43+
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGRlZnM+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtmaWxsOiNmNmY2ZjY7b3BhY2l0eTowO30uaWNvbi13aGl0ZXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5CcmFuZFZpc3VhbFN0dWRpb0NvZGUyMDE3UlRXXzI0eF93aGl0ZV8yNHg8L3RpdGxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTI0LDBWMjRIMFYwWiIvPjxwYXRoIGNsYXNzPSJpY29uLXdoaXRlIiBkPSJNMjQsMi41VjIxLjVMMTgsMjQsMCwxOC41di0uNTYxbDE4LDEuNTQ1VjBaTTEsMTMuMTExLDQuMzg1LDEwLDEsNi44ODlsMS40MTgtLjgyN0w1Ljg1Myw4LjY1LDEyLDNsMywxLjQ1NlYxNS41NDRMMTIsMTcsNS44NTMsMTEuMzUsMi40MTksMTMuOTM5Wk03LjY0NCwxMCwxMiwxMy4yODNWNi43MTdaIi8+PC9zdmc+");
44+
background-size: 24px;
45+
background-repeat: no-repeat;
46+
background-position: left 50%;
47+
padding-left: 36px;
48+
font-size: 20px;
49+
letter-spacing: -0.04rem;
50+
font-weight: 400;
51+
color: white;
52+
text-decoration: none;
53+
}
54+
55+
.message-container {
56+
flex-grow: 1;
57+
display: flex;
58+
align-items: center;
59+
justify-content: center;
60+
margin: 0 30px;
61+
}
62+
63+
.message {
64+
font-weight: 300;
65+
font-size: 1.3rem;
66+
}
67+
</style>
68+
</head>
69+
<body>
70+
<span class="branding">
71+
Visual Studio Code
72+
</span>
73+
<div class="message-container">
74+
<div class="message">
75+
You can close this page now.
76+
</div>
77+
</div>
78+
</body>
79+
</html>

0 commit comments

Comments
 (0)