Skip to content

Commit c353121

Browse files
committed
Added RoboCon News Banner
1 parent 93c591c commit c353121

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/components/NewsBanner.vue

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
<template>
22
<div
3-
class="container type-center pl-small pr-small"
3+
class="newsbanner container type-center pl-small pr-small"
44
v-html="$t('newsBanner')" />
55
</template>
6+
7+
<style>
8+
.newsbanner {
9+
margin-top: 0 !important;
10+
border-top: 0.2rem solid #3F7BCF;
11+
border-bottom: 0.2rem solid #3F7BCF;
12+
background-color: #0d0f14;
13+
color: #3F7BCF !important;
14+
max-width: None !important;
15+
}
16+
.newsbanner * {
17+
color: #3F7BCF !important;
18+
text-decoration: none !important;
19+
}
20+
</style>

src/content/english/main.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ export default () => ({
77
...rpa(),
88
...testautomation(),
99
langName: 'English',
10-
newsBanner: '<a href="https://medium.com/{at}{\'@\'}{at}RobotFramework/robot-framework-foundation-a37a8bcec74f">New blog post: Robot Framework Foundation</a>',
10+
newsBanner: `
11+
<div onclick="window.open('https://robocon.io/germany');" style="cursor: pointer;" class="banner"><h2>ROBOCON <span class="color-white">2022</span> GERMANY</h2>
12+
<h3>📣 <span class="color-theme">This October 5th</span> 📣</h3>
13+
Ticket sale is open!<br>
14+
First RoboCon outside of Finland will be held in Frankfurt am Main!
15+
16+
</div>`,
1117
navbar: {
1218
items: [
1319
{

0 commit comments

Comments
 (0)