mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-07 19:21:30 +00:00
put meta changes in news modal
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
"advertise": "Advertise",
|
"advertise": "Advertise",
|
||||||
"wiki": "Wiki"
|
"wiki": "Wiki"
|
||||||
},
|
},
|
||||||
|
"news": {
|
||||||
|
"title": "Version 23 released!"
|
||||||
|
},
|
||||||
"help_modal": {
|
"help_modal": {
|
||||||
"hotkeys": "Hotkeys",
|
"hotkeys": "Hotkeys",
|
||||||
"table_key": "Key",
|
"table_key": "Key",
|
||||||
|
|||||||
+33
-6
@@ -12,6 +12,10 @@ export class NewsModal extends LitElement {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
|
:host {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.news-container {
|
.news-container {
|
||||||
max-height: 60vh;
|
max-height: 60vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
@@ -24,10 +28,20 @@ export class NewsModal extends LitElement {
|
|||||||
.news-content {
|
.news-content {
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
background: rgba(255, 255, 255, 0.05);
|
background: rgba(0, 0, 0, 0.6);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.news-content a {
|
||||||
|
color: #4a9eff !important;
|
||||||
|
text-decoration: underline !important;
|
||||||
|
transition: color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.news-content a:hover {
|
||||||
|
color: #6fb3ff !important;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@@ -36,7 +50,24 @@ export class NewsModal extends LitElement {
|
|||||||
<div class="options-layout">
|
<div class="options-layout">
|
||||||
<div class="options-section">
|
<div class="options-section">
|
||||||
<div class="news-container">
|
<div class="news-container">
|
||||||
<div class="news-content">INSERT NEWS HERE</div>
|
<div class="news-content">
|
||||||
|
<h3>Main things to note:</h3>
|
||||||
|
<br />
|
||||||
|
<ul>
|
||||||
|
<li>Workers reproduce faster than troops.</li>
|
||||||
|
<li>Defense = troops divided how much land you have.</li>
|
||||||
|
<li>Attacking troops count toward your population limit.</li>
|
||||||
|
</ul>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
See full changelog
|
||||||
|
<a
|
||||||
|
href="https://discord.com/channels/1284581928254701718/1286745902320713780"
|
||||||
|
target="_blank"
|
||||||
|
style="color: #4a9eff; font-weight: bold;"
|
||||||
|
>here</a
|
||||||
|
>.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,8 +89,4 @@ export class NewsModal extends LitElement {
|
|||||||
private close() {
|
private close() {
|
||||||
this.modalEl?.close();
|
this.modalEl?.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
createRenderRoot() {
|
|
||||||
return this; // light DOM
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user