Comments (6)
After several hours of fruastration (lol), I got it to work, by removing the quotes from the url(), i.e. changing url("") to url().
Thanks everyone, might be helpful to someone
from simplefolio.
Also if you're having problem getting your resume to showup when you click the view resume button, this worked for me:
In your template.html: target the resume with the href attribute:
<a target="_blank" class="cta-btn cta-btn--resume" href="./assets/name_of_pdf_file.pdf">
View Resume
</a>
then in your index.js:
(1.) import the resume
import MyResume from './assets/FranksResume2020.pdf';
(2.)Then modify the addResume function like this, using whatever name of your resume as parameter(in my case, I named it MyResume as you can see):
function addResume(MyResume){
const elements = document.getElementsByClassName('.cta-btn--resume');
for(let el of elements){
el.href = url(MyResume);
}
}
also remember to call addResume function at the bottom... or I think it should already be there... well check to see:
...
addResume();
initSr();
initTilt();
from simplefolio.
hey did you manage to change the background to an image?
from simplefolio.
if so can you post the css / scss
from simplefolio.
In your _hero.scss, under hero id: (don't include quotes in your url( ) )
background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.7)), url(../assets/background.jpg) center no-repeat;
background-attachment: fixed;
background-size: cover;
from simplefolio.
After several hours of fruastration (lol), I got it to work, by removing the quotes from the url(), i.e. changing url("") to url().
Thanks everyone, might be helpful to someone
yes thanks
from simplefolio.
Related Issues (20)
- Thanks!
- Upon updating node, an Error occurs. HOT 1
- MY PORTFOLIO
- Query required Using This Template
- The URL not working HOT 1
- Font Color. HOT 1
- CSS not showing while deploying in Netlify HOT 4
- Help HOT 1
- Error building react native project through parcel
- Parcel issue - one of many possible solutions
- yarn run auto reload?
- @parcel/transformer-js: (0 , _native.transform) is not a function
- Expected content key 200e56f57b917197 to exist
- Change favicon HOT 3
- Cannot load the CSS part HOT 3
- Issue with modifying favicon using RealFaviconGenerator HOT 1
- Navigation Bar HOT 1
- /well-known file HOT 3
- scrollRevealConfig.js BUILD FAILED
- Demo not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplefolio.