Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Esteban Choque
Portal Bolivia Digital
Commits
af69f1a7
Commit
af69f1a7
authored
May 24, 2019
by
Esteban Choque
Browse files
Los fondos no cambian dinámicamente
parent
1105b3cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/assets/images/backgroundpro.jpg
0 → 100644
View file @
af69f1a7
853 KB
src/assets/images/logo-agetic-blanco.png
0 → 100644
View file @
af69f1a7
4.5 KB
src/components/layout/AppLogo.vue
View file @
af69f1a7
...
...
@@ -8,12 +8,13 @@
alt=
"Bolivia"
>
-->
<img
class=
"app-logo-img"
src=
"~assets/images/agetic-
logo-
blanco.png"
src=
"~assets/images/
logo-
agetic-blanco.png"
alt=
"Bolivia"
>
<div
class=
"app-logo"
>
<div
class=
"app-logo-title"
>
Agetic
</div>
<div
class=
"app-logo-title"
>
Estado Plurinacional de Bolivia
</div>
<div
class=
"app-logo-description"
>
{{
$entidad
.
nombre
}}
</div>
<div
class=
"app-logo-title"
>
Agetic
</div>
<!--
<div
class=
"app-logo-description"
>
Digital
</div>
-->
<div
class=
"app-logo-title"
>
Estado Plurinacional de Bolivia
</div>
</div>
<!-- Para ver proyectos en la home page -->
...
...
@@ -125,4 +126,8 @@
}
}
}
.app-logo-img
{
width
:
100px
!
important
;
}
</
style
>
src/layouts/home.vue
View file @
af69f1a7
...
...
@@ -39,7 +39,7 @@ export default {
.portal-home
{
//background: transparent url(~assets/images/home.jpg) no-repeat;
background
:
transparent
url(~assets/images/
home-bolivia-digital-2
.jpg)
no-repeat
;
background
:
transparent
url(~assets/images/
backgroundpro
.jpg)
no-repeat
;
background-size
:
cover
;
background-position
:
center
center
;
height
:
100%
;
...
...
src/pages/_page/index.vue
View file @
af69f1a7
...
...
@@ -39,7 +39,7 @@
</el-card>
</el-col>
</el-row>
<p-box></p-box>
<!--
<p-box></p-box>
-->
</section>
</
template
>
...
...
@@ -85,7 +85,59 @@ export default {
},
mounted
()
{
this
.
$store
.
commit
(
'
CLOSE_MENU
'
);
this
.
$util
.
setBackgroundImage
();
//this.$util.setBackgroundImage();
//console.log('id '+ this.$route.path+ ' page ' + this.$route.params.page);
if
(
this
.
$route
.
params
.
page
==
'
ciudadania
'
)
{
this
.
$util
.
fondoRojo
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
eventos
'
)
{
this
.
$util
.
fondoRojo
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
proyectos
'
)
{
this
.
$util
.
fondoRojo
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
gobierno
'
)
{
this
.
$util
.
fondoAzul
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
herramientas
'
)
{
this
.
$util
.
fondoAzul
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
normativa
'
)
{
this
.
$util
.
fondoAzul
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
planes
'
)
{
this
.
$util
.
fondoAzul
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
prensa
'
)
{
this
.
$util
.
fondoVerde
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
fotos
'
)
{
this
.
$util
.
fondoVerde
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
videos
'
)
{
this
.
$util
.
fondoVerde
();
}
else
if
(
this
.
$route
.
params
.
page
==
'
noticias
'
)
{
this
.
$util
.
fondoVerde
();
}
else
{
this
.
$util
.
fondoVerde
();
}
this
.
getPage
();
},
methods
:
{
...
...
src/plugins/util.js
View file @
af69f1a7
...
...
@@ -27,6 +27,18 @@ export default ({ app, store }) => {
this
.
colorpro
=
colorescat
[
aleatorio
];
this
.
coloradorno
=
coloresadorno
[
aleatorio
];
document
.
body
.
classList
.
add
(
`portal-bg-
${
colors
[
aleatorio
]}
`
);
},
fondoRojo
()
{
document
.
body
.
className
=
''
;
document
.
body
.
classList
.
add
(
`portal-bg-red`
);
},
fondoAzul
()
{
document
.
body
.
className
=
''
;
document
.
body
.
classList
.
add
(
`portal-bg-blue`
);
},
fondoVerde
()
{
document
.
body
.
className
=
''
;
document
.
body
.
classList
.
add
(
`portal-bg-green`
);
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment