These are chat archives for FreeCodeCamp/Help

1st
Feb 2019
Kranti Nebhwani
@darkphotonKN
Feb 01 03:28
are there any good ideas to change font size for the entire page for a react app but have the change persist on every page?
Kranti Nebhwani
@darkphotonKN
Feb 01 07:06
Theres also a massive html file I found in old folders, over 100mb, but it seems relative normally what could be the reason?? no viruses either (i scanned)
psyperl
@psyperl
Feb 01 09:07
const pleaseDontUseThisfunctionBecauseItIsDangerousButIGuessThisNameDoesntMeanAnythingToYou = dangerouslySetInnerHtml
kinopotato
@kinopotato
Feb 01 09:38
Hello people, if you are going to make a webapp - employee management system with features such as salary calculator that accepts over time, half day, full day, double pay (such and such) along with employee profile/record, company calendar among others, where would you begin?
psyperl
@psyperl
Feb 01 10:23
I would begin with the secure login
db schema
kinopotato
@kinopotato
Feb 01 10:24
so you will prioritize how the data will be grouped, hmm
psyperl
@psyperl
Feb 01 10:34
one can also start with mockup views of the application, the flow of the application etc which data will appear and thaat can be a guideline for what the db contained, maybe more folks prefer this way
not necessarily design , but the wireframe of the application
filthywebdeveloper
@filthywebdeveloper
Feb 01 14:42
Hi
zootechdrum
@zootechdrum
Feb 01 14:57
I really need some help
with my pomo clock
I am trying to clear interval
but it wont work
That is what I have so far.
Christopher McCormack
@cmccormack
Feb 01 15:39
@zootechdrum your timer doesn't start when clicking start, so I don't see how you have an issue clearing the timer.
You also use shortened variable names but inconsitently from what I see, I would recommend not shortening them for convenience, it will only cause confusion later
yj
@atangyj
Feb 01 16:21
Hi, can someone help me understand how to add external fontFamily in React? I have a variable fontFamily, and I want to assign a external fontFamily such as ‘Robot’ to it.
alpox
@alpox
Feb 01 16:31
@atangyj For roboto (if its that one) there is a simple include from google fonts
@import url('https://fonts.googleapis.com/css?family=Roboto');
Christopher McCormack
@cmccormack
Feb 01 16:43
@atangyj do you want to install it locally and have it included in your bundle?
I would agree with @alpox regarding using something like Google fonts, you have the potential to save users some download time as they probably already have the font cached from other sites using the same resource
yj
@atangyj
Feb 01 16:45
@alpox @cmccormack can I use @import and also save it into a variable?
Christopher McCormack
@cmccormack
Feb 01 16:48
you can put the name of the font in a variable I believe
after it's imported you can reference it using the name, like font-family: Roboto;
yj
@atangyj
Feb 01 16:51
sorry, I don’t understand how to implement it in React
Christopher McCormack
@cmccormack
Feb 01 16:53
It depends on how you're trying to implement it
@alpox strategy would have you do it in the css file
which isn't React specific
yj
@atangyj
Feb 01 16:53
oh, I see
Thanks!
Ali Bulut
@ali27001
Feb 01 19:47
I also want to add local font to sass. How can I do it
Kaz Baig
@kbaig
Feb 01 20:10
@ali27001 using the same import syntax as regular css
zootechdrum
@zootechdrum
Feb 01 22:00
hey everyone
there is this delay between when i press start and the clock actually running
how can i make sure it runs just a bit faster
on my pomo clock