avatarDon Sabado

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>

Think of The School Year as Time Intervals

When is The Next Day Off

Image by Gino Crescoli from Pixabay

I work in time intervals. I used to count down the days of school left early in my teaching career. I used to say things like, “There are ten weeks of school left.”

I kept a calendar for that specific purpose, but a friend reminded me that I was only making things worse by counting down the days.

Eventually, I stopped counting the days in the school year. Many years went by where I didn’t think of work as “days left to the school year.”

However, I started the practice again during the past several years. I could not put my finger on what caused the added anxiety that caused me to start counting the days left again.

It dawned on me one day, “we have a new principal at work.” The new term he likes to use is ‘deliverables.’ There would always be something due; lesson plans and unit plans were always due because of directives.

During the height of the pandemic year of the 2020–2021 school year, we still had ‘deliverables’ to be turned in.

“I don’t want you to feel any pressure; it is just an exercise I would like you to try with your class,” said the instructional coach. There is always one more thing to try.

I couldn’t start counting down the days of the school year because it would be too stressful to think about; instead, I decided to think of work in time intervals.

When Is The Next Day Off

Presidents day was on February 21, 2022, Monday. If I thought of teaching in time intervals, it made it more manageable.

Looking at work in this way makes it more bearable.

1st Time Interval: February 22, 2022 — March 11, 2022

The first time interval is three weeks; the only thing I need to worry about during this span is a Project-Based Learning (PBL) lesson plan to turn in to the principal. I already turned in my PBL unit.

I used a PBL I had already done several years ago and turned it in; there are still other ‘deliverables’ I need to turn in to the principal, but I’ll have it done before March 11, 2022.

The week of March 14, 2022, is the start of spring break. I’ll be writing on Medium and my short stories that week to build my writing portfolio.

2nd Time Interval: March 21, 2022 — March 24, 2022

The week after spring break is a short week because it’s a state holiday; there is no school on Friday. I am looking forward to a three-day holiday.

It is a short 4-day time interval before the next day off.

3rd Time Interval: March 28, 2022 — April 14, 2022

There are another three weeks before April 15, Good Friday; there is no school on Friday.

4th Time Interval: April 18, 2022 — May 27, 2022

The last stretch of work time is the longest; the last six weeks will be without any holiday or break. May 27, 2022, is the last school day for teachers.

Takeaway

The last time I did this type of countdown was during my first several years of teaching because I was stressed trying to get used to the teaching profession.

I realized I was anxious and stressed again at work; maybe some of it had to do with the pandemic.

But, I had to think of work in time intervals; my principal just sucked the living fun of teaching with all the deliverables and directives.

He is the only principal to use the term ‘deliverables.’ Now, I dislike that word; it does not exist in my vocabulary.

Every teacher does their own thing to help them through teaching; teachers are ten-month employees and get paid for ten months stretched out over twelve months.

Final Thoughts

The last hurdle teachers at my school need to overcome is not to be the teacher who has to teach summer school; it feels like almost a ‘voluntold’ type of deal; the unlucky teacher will have to stay on campus and teach summer school.

“But, you will get paid extra to teach during the summer,” said the vice-principal; the unlucky teacher was my next-door neighbor at work for summer school 2021.

I’ll do what I always do when they ask me if I want to teach during the summer; I say, “No!”

The pressure to get a certified teacher to teach summer school has forced the principals to take drastic measures they don’t like to do; they have never given a directive to teach summer school because they were always able to find a teacher.

It’s different now; the district wants certified licensed teachers to teach summer school instead of a person with no experience directly out of college to teach during the summer.

I’m not sure who will be the unlucky teacher to teach summer school, but I know I will be on an airplane flying to my vacation destination with my cell phone off the day after the last day of the school year.

Thinking of teaching in time intervals instead of the entire year has helped me get through the past several years with my current administration.

Don Sabado

Teacher | Author | Writer

Follow me on:

Amazon

Twitter

Don’s Math Blog

Directives
Teaching
Education
Age Of Awareness
New Writers Welcome
Recommended from ReadMedium