avatarKiran Yasmin

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2236

Abstract

was an issue remaining. The document used dark theme and the content in the external page used white background.</p><p id="0afe"><b>Hack 2: </b>Use dark-reader to automatically generate css for your external page</p><p id="f222">You can use <a href="https://darkreader.org/">dark-reader</a> to automatically apply dark style to your page. There are two options. First is to use dark-reader in your project via npm and apply dark theme automatically. For my case, this was a bit overkill and I choose the second option. Second option is to generate and export css file corresponding to dark theme of your external page and then adding that style-sheet to our <code>iframe</code>.</p><p id="df41">First install the <a href="https://darkreader.org/">dark-reader</a> add-on/extension to your browser. I have done it on Firefox. Then open your external page in that browser and enable the dark-mode in dark-reader add-on.</p><figure id="54a0"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*akq4Mmrutw6XTVdZMY9VBQ.png"><figcaption>dark-reader add-on in Mozilla Firefox</figcaption></figure><p id="ded5">When you enable dark-mode, the dark-reader has generated and applied appropriate styling to make your page dark-themed. It works great. You can also tweak around and set brightness, and contrast as well as use developer tools to further customize the design. Once you are happy with the design, click on the dark-reader browser-action button to open the popup menu and click on settings.</p><figure id="af34"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*B_-rTeDGalYJ-Ci6nyyapg.png"><figcaption></figcaption></figure><p id="0ea2">This will open up the settings view as displayed below.</p><figure id="bac9"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*dqdeQaWkTj38obrpRLEoVg.png"><figcaption></figcaption></figure><p id="1b63">Click on Manage settings and then on <b>Export Dynamic Theme</b>.</p><figure id="504a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*eoK7sNZcYxZF-xWQ3NjEIg.png"><figcaption></figcaption></figure><p id="2bb4">Great job! This will download a css file that you can add to your page to apply the styles for dark theme. Hmmm… So far so g

Options

ood. I believe most of you would do the rest of the stuff on your own, but for the sake of completeness let us add a few lines of code to the event-listeners that we created in Hack1.</p><p id="2a64">Save the css file that was downloaded by the dark-reader as <code>dark-theme.css </code>in the <code>/public</code> directory of your Next.js app. Now, add following lines inside the <code>"load"</code> event-listener.</p><div id="d14f"><pre>const link <span class="hljs-operator">=</span> doc.createElement(<span class="hljs-string">"link"</span>)<span class="hljs-comment">;</span></pre></div><div id="e451"><pre><span class="hljs-attr">link.rel</span> = <span class="hljs-string">"stylesheet"</span><span class="hljs-comment">;</span></pre></div><div id="d811"><pre><span class="hljs-attr">link.href</span> = <span class="hljs-string">"/dark-theme.css"</span><span class="hljs-comment">;</span></pre></div><div id="214b"><pre>doc.head.appendChild(link)<span class="hljs-comment">;</span></pre></div><p id="caa5">Next time when you do this, you will be able to add existing HTML files to your project with custom themes in much lesser time than the time you spent reading this document.</p><p id="3a9a">Wish you all the best and happy coding!</p><p id="ad6f">Interested in building career in web development? Checkout E-degree in JS Frameworks</p><div id="2976" class="link-block"> <a href="https://www.eduonix.com/javascript-frameworks-mini-edegree/UHJvZHVjdC00NDExNjgw"> <div> <div> <h2>JavaScript Mini E-Degree: Master JS Frameworks To The Core!</h2> <div><h3>A perfect mini-e-degree suitable for everyone who wants to master JavaScript effectively without wasting any time…</h3></div> <div><p>www.eduonix.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*OBLf0FHe3Jrk8Lbg)"></div> </div> </div> </a> </div><p id="79c1">Or my course on <a href="https://www.udemy.com/course/react-and-next-js-with-typescript/?referralCode=7202184A1E57C3DCA8B2">React + Next.js with TypeScript</a>.</p></article></body>

Photo by nine koepfer on Unsplash

How I Gained 2700+ Followers In Just 3 Months?

You can follow all of these steps to get noticed…

Photo by Spenser Sembrat on Unsplash

It was not an accident; I took several weeks to understand how to work on this site and how to gain followers. Only a few days ago, I started making something from $7 to $8 per day. The number of stories I have published so far is 194, meaning this is my 195th story. I will continue writing up to 25 stories per week to keep my readers engaged.

Here are a couple of lessons for those who have just joined the site.

1. Have A Balance Between Quality And Quantity

Photo by Ethan Hoover on Unsplash

Do you think that quality is more important than quantity? No, it is not true in the case of this platform. Here, you can get success only when you publish something every single day and provide great stuff to your readers.

People who publish a couple of stories per month cannot achieve as much success as those who always have something to tell their readers or followers.

I have already mentioned that I am publishing nearly 100 stories per month, and the number will be increased in the coming months depending on the responses I receive from my lovely readers.

2. Not All Of Your Stories Will Go Viral

Photo by Chris Fuller on Unsplash

The biggest problem with most writers is that they want to make thousands of dollars per post. Please understand that not all of your stories will go viral.

I have seen many big writers writing multiple stories per day, and only a few of them get over 1500 claps. This means you should not keep your expectations high.

You cannot expect every story to go viral even when you have more than 100,000 followers. Give the site some time to make your content visible to a maximum number of people, and then you can plan things.

3. Follow For Followers

Photo by Michael Fousert on Unsplash

I always spare time to follow nearly 50 people per day. This is probably the reason why I am getting 20 to 50 followers daily.

The rule is to follow others if you want to get noticed. This tip is especially for those who have only a handful of followers and want to get maximum exposure.

In the beginning, people will look at your profile. If you provide them with good stuff to read, then there is no reason that you won’t be followed back. Begin following 50 people a day and keep publishing. You will surely be followed back by 10–15 people.

4. Write With Raw Emotions

Photo by Aral Tasher on Unsplash

Put all of your six senses to work. Besides, you should write with raw emotions. People on this site do not like low-quality articles, and the only way to keep them intact is by putting in all of your efforts and emotions.

I have done the same. Sometimes, I write my past stories and share my life’s experiences, and sometimes, I provide my readers with tips on how to make hundreds of dollars per week.

I always try to give accurate details, and this is probably the reason why most of my readers leave positive feedback and send me private notes asking certain questions regarding writing.

5. Set Long-Term Goals

Photo by Michael Fousert on Unsplash

Success is not possible to be achieved in a day or two. So, I have created my rock-solid process for long-term success. Instead of targeting the top publications and worrying about curation, I focus on my work and spare time to help new writers.

I have basically set my unique goals, one of which is that I want to make at least $1,000 per month within a few months.

You can also plan things in advance. Please don’t expect people to find you on this site instantly. You will have to build a following and must write over 150 articles to get fully noticed.

Are you following your writing aspirations?

Writing
Money
Life
Life Lessons
Self Improvement
Recommended from ReadMedium