Adding background images in Ionic 2 - ionic2

Hi I am very new to Ionic 2.Can someone help with telling how to add a background image in a project in Ionic 2(specifically the below one)?

You can do it in the scss file of the ionic page. Inside the url you can give the relative path where the image resides.
body {
background-image: url(".. /assets/background.jpg");
}

Related

Change color of Header for Distill blog Rmarkdown

Anyone know how to change color of the header in Distill in Rmarkdown? I can change the color in the rendered HTML, but then everytime it re-renders, it overrides. Is there a way to change the header color with Rmarkdown when using the Distill framework?
Cool, glad it worked! I also faced a similar issue. The entire default CSS that can be tweaked can be found in the Theming section here:
https://rstudio.github.io/distill/website.html
And then you can add this with:
output:
distill::distill_article:
css: styles.css
Found my answer, added a .css file in the main index.Rmd, used the rendered html file and web browser to inspect the element to find the distill-site-nav element and changed the css that way. here is my .css file
.distill-site-nav {
color: #000000;
background-color: #FFA500;
}

Is it possible to add particlejs in opencart using text editor or any other way?

Instead of banner, I am trying to add particle js in home banner section using html content editor. But i'm struggling on particle js code.
Any help

WSO2 API Manager - Thumbnail Images

What is the best way to set a default image for every API? I also want to prevent users from uploading their own images.
Well it really depends on exactly what you want to do it and what version of API Manager you are running. For example, if the image is clickable and how big the image is to be. So I would recommend using google chrome and right click on the things you want to change and go down to inspect element. That way you can view the files and code you want to alter.
To change default image
I went to [APIM]/repository/deployment/server/jaggeryapps/store/site/themes/wso2/libs/theme-wso2_1.0/css/ directory and edited the theme-wso2.css file. I edited the element style of line 9681 (right below Thumbnail icon customizations in API Manager 2.1.0) here is the code
.thumbnail.icon {
position: relative;
content: url(link to image); --Added this line
max-width: 100% --Added this line
}
Do the same thing in the publisher directory.
To remove option to upload image
Go to [APIM]/repository/deployment/server/jaggeryapps/publisher/site/themes/wso2/libs/theme-wso2_1.0/css/ and edit the theme-wso2.css. Edit line 1495 like below
.col-sm-offset-3 {
margin-left: 25%;
visibility: hidden; -- added line
}
This could be achieve by using sub-theme rather than modifying theme files directly as suggested above cause and it is better you can mention the version of API Manager that you are using.
Adding a New API Store Theme

Foundation (Button Classes) not working with Rails 4

I'm using Rails 4 with Foundation but I have the impression that Foundation is not working correctly.
The typeface is not Helvetica and then I added some buttonclasses and the button just stays the same...
Here is the code for the button:
<%= button_to 'Neue Provision', new_provision_path, class: 'button success radius large' %><br>
Any ideas what I should check or look for?
Rails 4.0 removed the assets group from Gemfile.
Run:
rails g foundation:install
Which should automatically correctly configure your app.
If not you can manually configure like so:
Add:
/*= require foundation */
to your main css file or add to your main .js file:
//= require foundation
$(document).foundation();
Another issue can be that you're either overriding your foundation.css with custom styles or you simply don't have the foundation.css file. Remember that stylesheets are read top to bottom and the styles appearing later will take precedence.
As per the Foundation Docs.

Very simple slideshow for someone new to html

I'm new to HTML and CSS. I want a simple, responsive slideshow of around five images that automatically rotate and have next and previous controls. Ideally I'd like to have a line of HTML text on top of the images (is this possible?).
Any ideas? I've seen mention of javascript and jQuery but don't have a clue what they are.
Thank you
Lightbox 2 is a good solution for you.
Just download the package and then add the js and css files as the website tells you. Then just put the images like:
image #2
image #3
image #4
It's quite easy and you don't have to manipulate javascript or jquery.