Skip to content

Commit a37417b

Browse files
authored
Make favicon and loading style customisable (#1260)
1 parent 768db6c commit a37417b

File tree

6 files changed

+58
-58
lines changed

6 files changed

+58
-58
lines changed

base/src/main/resources/application.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ quarkus.web-bundler.bundle.community-app.key=main
2020
%dev.quarkus.web-bundler.bundle.community-app=true
2121
%playwright.quarkus.web-bundler.bundle.lib=true
2222
%playwright.quarkus.web-bundler.bundle.community-app=true
23+
%dev.quarkus.http.static-resources.caching-enabled=false
2324

2425
# http
2526
quarkus.http.enable-compression=true

base/src/main/resources/web/community-app/theme.scss

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
--background2: black;
1111
--background3: #282A39;
1212

13+
--textColor: white;
14+
1315
--primary: #71aeef;
1416
--secondary: #4695eb;
1517
--tertiary: #be9100;
@@ -27,7 +29,7 @@
2729
--buttonBorderColor: var(--primary);
2830

2931
// Top container
30-
--topContainerTextColor: white;
32+
--topContainerTextColor: var(--textColor);
3133
--topContainerBg: var(--background);
3234
--topContainerBgImage: url("./media/bg-form-1920.jpeg");
3335
--topContainerBgImageWide: url("./media/bg-form-3000.jpeg");
@@ -37,10 +39,10 @@
3739
--fieldTextColor: var(--topContainerTextColor);
3840
--selectOptionsTextColor: black;
3941

40-
--extensionsCartButtonTextColor: white;
42+
--extensionsCartButtonTextColor: var(--textColor);;
4143
--extensionsCartButtonBgColor: var(--background);
4244

43-
--generateButtonTextColor: white;
45+
--generateButtonTextColor: var(--textColor);;
4446
--generateButtonBgColor: var(--secondary);
4547
--generateButtonBorderColorOnHover: white;
4648
--generateButtonDisabledBgAndBorderColor: rgba(90, 149, 235, 0.342);
@@ -51,12 +53,12 @@
5153
--resetToDefaultButtonColor: var(--warningColor);
5254

5355
// Main container
54-
--mainContainerTextColor: white;
56+
--mainContainerTextColor: var(--textColor);;
5557
--mainContainerBg: var(--background);
5658

5759
// Next steps Modal
5860
--modalBg: var(--background);
59-
--modalTextColor: white;
61+
--modalTextColor: var(--textColor);;
6062
--modalBorderColor: var(--secondary);
6163
--modalTitleColor: var(--secondary);
6264
--modalLinkColor: var(--linkTextColor);
@@ -65,14 +67,14 @@
6567
--modalCloseButtonBgHover: rgba(70, 149, 235, 0.548);
6668

6769
--nextStepsModalDownloadButtonBg: var(--secondary);
68-
--nextStepsModalDownloadButtonTextColor: white;
70+
--nextStepsModalDownloadButtonTextColor: var(--textColor);;
6971
--nextStepsModalDownloadButtonBorderColorOnHover: white;
7072

7173
--modalFooterButtonBg: black;
7274
--modalFooterButtonTextColor: var(--secondary);
7375

7476
--codeBg: black;
75-
--codeTextColor: white;
77+
--codeTextColor: var(--textColor);;
7678

7779
// Extensions picker
7880
--switchOriginSelectedTextColor: var(--mainContainerTextColor);
@@ -91,7 +93,7 @@
9193
--extensionsPickerDescriptionTextColorOnTablet: #ccc;
9294

9395
--dropdownMenuBg: #363a50;
94-
--dropdownMenuTextColor: white;
96+
--dropdownMenuTextColor: var(--textColor);;
9597

9698
--extensionsPickerCategoryTextColor: var(--mainContainerTextColor);
9799
--extensionsPickerCategoryUnderlineColor: var(--secondary);
@@ -111,23 +113,23 @@
111113
--headerBackgroundColor: var(--background);
112114
--headerBackgroundImage: url("./media/bg-header-1920.jpeg");
113115
--headerBackgroundImageWide: url("./media/bg-header-3000.jpeg");
114-
--headerTextColor: white;
116+
--headerTextColor: var(--textColor);;
115117

116-
--headerMenuLinkTextColor: white;
118+
--headerMenuLinkTextColor: var(--textColor);;
117119

118-
--headerMenuStartCodingButtonTextColor: white;
120+
--headerMenuStartCodingButtonTextColor: var(--textColor);;
119121
--headerMenuStartCodingButtonBorderColor: var(--secondary);
120122
--headerMenuStartCodingButtonBg: var(--secondary);
121123

122-
--headerSupportButtonTextColor: white;
124+
--headerSupportButtonTextColor: var(--textColor);;
123125
--headerSupportButtonBorderColor: white;
124126
--headerSupportButtonBackgroundColor: transparent;
125127

126128
--headerSupportPanelBackgroundColor: var(--background3);
127-
--headerSupportPanelTextColor: white;
129+
--headerSupportPanelTextColor: var(--textColor);;
128130

129131
// StreamPicker
130-
--streamPickerStreamIdTextColor: white;
132+
--streamPickerStreamIdTextColor: var(--textColor);;
131133
--streamPickerPlatformKeyTextColor: var(--primary);
132134
--streamPickerBorderColor: var(--streamPickerPlatformKeyTextColor);
133135
--streamPickerDropdownStreamIdTextColor: var(--streamPickerStreamIdTextColor);
@@ -137,7 +139,7 @@
137139

138140
// Blurb
139141
--blurbBg: #193E62;
140-
--blurbTextColor: white;
142+
--blurbTextColor: var(--textColor);;
141143
--blurbLinkTextColor: var(--linkTextColor);
142144
--blurbInfoIconColor: var(--primary);
143145
}

base/src/main/resources/web/index.html

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,17 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
88
<meta name="theme-color" content="#000000" />
99
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" name="viewport">
10-
<link rel="shortcut icon" type="image/png" href="https://quarkus.io/favicon.ico">
10+
<link rel="shortcut icon" type="image/png" href="{config:property('io.quarkus.code.favicon') ?: 'https://quarkus.io/favicon.ico'}">
1111
<title>Quarkus - Start coding with {config:property("io.quarkus.code.name")}</title>
12-
13-
<style>
14-
body {
15-
background: black;
16-
}
17-
18-
#loading {
19-
position: absolute;
20-
top: 50%;
21-
left: 50%;
22-
margin-top: -87.5px;
23-
margin-left: -120px;
24-
width: 240px;
25-
height: 175px;
26-
display: flex;
27-
flex-direction: column;
28-
align-items: center;
29-
font-family: monospace;
30-
text-align: center;
31-
justify-content: center;
32-
padding: 20px;
33-
color: #fff;
34-
font-size: 1.5rem;
35-
line-height: 20px;
36-
box-sizing: border-box;
37-
}
38-
39-
#loading span:nth-child(3) {
40-
color: #71aeef;
41-
}
42-
43-
#loading img {
44-
height: 75px;
45-
display: block;
46-
margin: 20px auto;
47-
}
48-
</style>
49-
12+
{#bundle tag="style" /}
5013
<!-- Segment Analytics -->
5114
<script>
5215
window.PUBLIC_URL='{publicUrl}';
5316
!function(){ var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{ analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){ return function(){ var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){ var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){ var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="YOUR_WRITE_KEY";analytics.SNIPPET_VERSION="4.15.2";}}();
5417
</script>
5518
<!-- End Segment Analytics -->
56-
{#bundle /}
19+
20+
{#bundle tag="script" /}
5721
</head>
5822

5923
<body>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
import './loading.scss';
12
export * from './core/types';
23
export * from './core/analytics';
34
export * from './core/components';
45
export * from './components';
6+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
body {
2+
background: var(--background);
3+
}
4+
5+
#loading {
6+
position: absolute;
7+
top: 50%;
8+
left: 50%;
9+
margin-top: -87.5px;
10+
margin-left: -120px;
11+
width: 240px;
12+
height: 175px;
13+
display: flex;
14+
flex-direction: column;
15+
align-items: center;
16+
font-family: monospace;
17+
text-align: center;
18+
justify-content: center;
19+
padding: 20px;
20+
color: var(--textColor);
21+
font-size: 1.5rem;
22+
line-height: 20px;
23+
box-sizing: border-box;
24+
}
25+
26+
#loading span:nth-child(3) {
27+
color: var(--primary);
28+
}
29+
30+
#loading img {
31+
height: 75px;
32+
display: block;
33+
margin: 20px auto;
34+
}

deploy/openshift/code-quarkus.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ objects:
6969
value: ${IO_QUARKUS_CODE_LOG_LEVEL}
7070
- name: IO_QUARKUS_CODE_HOSTNAME
7171
value: ${IO_QUARKUS_CODE_HOSTNAME}
72-
- name: IO_QUARKUS_CODE_FEATURES
73-
value: ${IO_QUARKUS_CODE_FEATURES}
7472
- name: IO_QUARKUS_CODE_QUARKUS_PLATFORMS_RELOAD_CRON_EXPR
7573
value: ${IO_QUARKUS_CODE_QUARKUS_PLATFORMS_RELOAD_CRON_EXPR}
7674
- name: IO_QUARKUS_CODE_SENTRY_FRONTEND_DSN
@@ -130,7 +128,6 @@ objects:
130128
type: ClusterIP
131129
parameters:
132130
- name: IO_QUARKUS_CODE_ENVIRONMENT
133-
- name: IO_QUARKUS_CODE_FEATURES
134131
- name: IO_QUARKUS_CODE_HOSTNAME
135132
- name: IO_QUARKUS_CODE_SEGMENT_FLUSH_QUEUE_SIZE
136133
- name: IO_QUARKUS_CODE_SEGMENT_FLUSH_INTERVAL_SECONDS

0 commit comments

Comments
 (0)