File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ const handleNavigate = (url) => {
228228 </Flex>
229229 </Flex> -->
230230
231- <AdvBanner :style = " { width: '100%' } " />
231+ <AdvBanner />
232232 </Flex >
233233
234234 <Flex direction =" column" gap =" 16" style =" margin-right : 20px " >
Original file line number Diff line number Diff line change @@ -64,16 +64,17 @@ onMounted(() => {
6464 :class =" $style.ad_horizontal"
6565 >
6666 <Flex align =" center" gap =" 12" >
67- <Flex align =" center" gap =" 6 " >
67+ <Flex align =" center" gap =" 8 " >
6868 <Icon v-if =" adv.icon" :name =" adv.icon" size =" 14" color =" brand" />
69- <Text size =" 13" weight =" 600" color =" primary" > {{ adv.header }} </Text >
69+
70+ <Text size =" 13" weight =" 600" color =" primary" :class =" $style.text" > {{ adv.header }} </Text >
7071 </Flex >
7172
72- <Text size =" 13" weight =" 600" color =" tertiary" height =" 140" > {{ adv.body }} </Text >
73+ <Text size =" 13" weight =" 600" color =" tertiary" height =" 140" :class = " $style.text " > {{ adv.body }} </Text >
7374 </Flex >
7475
7576 <Flex align =" center" gap =" 8" >
76- <Text size =" 13" weight =" 600" color =" brand" > {{ adv.footer }} </Text >
77+ <Text size =" 13" weight =" 600" color =" brand" :class = " $style.text " > {{ adv.footer }} </Text >
7778
7879 <Icon @click.prevent.stop =" isDisplayed = false" name =" close" size =" 16" color =" secondary" :class =" $style.close_icon" />
7980 </Flex >
@@ -165,6 +166,10 @@ onMounted(() => {
165166 transform : scale (1.1 );
166167 }
167168 }
169+
170+ & .text {
171+ line-height : 1.5 ;
172+ }
168173}
169174
170175@media (max-width : 500px ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import AdvBanner from "@/components/shared/AdvBanner.vue"
1111
1212 <Flex direction =" column" align =" center" :class =" $style.content" >
1313 <Feed />
14- <AdvBanner orientation =" horizontal" />
14+ <AdvBanner advName = " celenium_survey " orientation =" horizontal" />
1515 <ActionBar />
1616
1717 <Flex direction =" column" align =" center" wide :class =" $style.container" >
Original file line number Diff line number Diff line change @@ -6,33 +6,33 @@ const advertisements = [
66 header : 'Try out Celenium API' ,
77 body : 'The power of Celestia: Scalable, Secure and Modular Blockchain.' ,
88 footer : 'Get started' ,
9- weight : 0.2 ,
9+ weight : 0.5 ,
1010 } ,
1111 {
1212 name : 'celenium_survey' ,
1313 link : 'https://t.co/4nBFExP2VR' ,
1414 icon : 'validator' ,
1515 header : 'Celenium survey' ,
16- body : 'Please take 5 minutes and answer a few questions.' ,
16+ body : 'Please take 5 minutes of your time and answer a few questions.' ,
1717 footer : 'Take the survey' ,
18- weight : 0.4 ,
18+ weight : 1.1 ,
1919 } ,
2020 {
2121 name : 'lumina' ,
2222 modal : 'lightNode' ,
2323 icon : 'lumina' ,
2424 header : 'Your Own Node' ,
25- body : 'Launch a node directly in your browser or on your phone.' ,
25+ body : 'Easily launch a node right in your browser or on your phone.' ,
2626 footer : 'Run Light Node' ,
27- weight : 0.4 ,
27+ weight : 0.5 ,
2828 } ,
2929]
3030
3131export function getRandomAdv ( ) {
3232 const randomNum = Math . random ( )
3333
3434 let cumWeight = 0
35- for ( let ad of advertisements ) {
35+ for ( let ad of advertisements . filter ( el => el . weight <= 1 ) ) {
3636 cumWeight += ad . weight
3737 if ( randomNum <= cumWeight ) {
3838 return ad
You can’t perform that action at this time.
0 commit comments