#100DaysOfCode

Copying and pasting my tweets on the matter as I slowly make my way through nonconsecutively the 100 days.

Posted on 19 May 2022

Profile picture of my twitter account

Profile picture of my twitter account

Want to see more? I post other stuff too! Head on over to @sarajwallen :)

Day 54/#100DaysOfCode

Me: Stop fannying about with the blog and get on with #bootcampdev!

Also me: Writing blog posts on accessibility, breaking and fixing blog site…

Note to self: Add blog title-picture captions to markdown frontmatter and use them as index image ALT tags

Day 53/#100DaysOfCode

Had what appeared to be a catastrophic failure in my SvelteKit blog.

I’m still sort of unclear as to what happened, but what I’ve come away with is this:

Don’t ignore warnings in the terminal, they might actually fix things for you 😅

Day 52/#100DaysOfCode

#bootcampdev - using @prisma and @PostgreSQL to build an API

Day 51/#100DaysOfCode

Learning more about APIs, specifically REST for the moment but I need to get @GraphQL on my radar too.

#bootcampdev will start beefing up the project work in the coming weeks - looking forward to build build building, 🧱 by 🧱 :)

Day 50/#100DaysOfCode

I just had a great video chat/screenshare with @grahamashton and @angstlotse to discuss elements of our bootcamp :)

Honestly I’m honoured to be able to chat with and receive (and hopefully one day I’ll also give!) support from these two 🥰

Day 49/#100DaysOfCode

I’m revising SQL - I did once build a huge project with a whole load of updates and adds and inner joins and outer joins and all sorts of things in between with PHP - but that was many years ago now!

#bootcampdev

Day 48/#100DaysOfCode

I’m using centering.netlify.app just to experiment really - the content is definitely incomplete!

Particularly playing with CSS colour-scheme at the moment, trying make light and dark mode (only switchable based on OS setting) as automated as possible.

Day 47/#100DaysOfCode

Besides bootcamping I can never resist some messing with CSS - saw the cute animated underlines on the ProtonMail site menu and made my own (code in replies):

Click to see the video on twitter: Animated underlines video thumbnail

Day 47 continued:

.hovertest::after {
    content: "";
    display: block;
    width: 16ch;
    border-top: 2px solid silver;
    transform: rotateY(90deg);
    transition: ease 0.5s;
}
.hovertest:hover::after {
    transform: rotateY(0deg);
    transition: ease 0.5s;
}

Day 47 continued-continued:

What I haven’t figured out is whether there’s an easy way to make the ::after pseudoelement width automatically the same as the element it’s attached to…

It might be that ::after isn’t the best solution but some kind of nesting of DIVs, but still :)

Reader, she did figure it out later :)

Day 46/#100DaysOfCode

Same as before, I’m busy with the #bootcampdev course - now we’re getting into React, via @nextjs.

I did start with Next at the beginning of my 100 days, then got distracted by @sveltejs - so I’ve finally come full circle!

Bring it on 💪

Day 45/#100DaysOfCode

It’s really a few days mashed into one but I’ve only been able to work a little here and there:

Turning the handle on the #bootcampdev course - learning more new stuff now :)

Working on my centering page, I keep getting stuck playing with CSS as usual!

Day 44/#100DaysOfCode

My little site about centering is coming along, but whyever did I choose to look at Flex first! I’ll go back for the simpler bits like text-align and margin: 0 auto…

The structure is still working itself out, and I’m not convinced it’ll remain 1-page…

Regretful git commit message

Day 43/#100DaysOfCode

Yes I’ve skipped a few days!

I’ve just now started working on a “Centering in CSS” guide. I want it to be super easy to understand and use! So far I’ve only set up the barest skeleton.

You can watch along as it grows, if you like: centering.netlify.app

Day 43 continued:

I have turned off my PC because bedtime, but I now have so many ideas of how to make this all display properly on mobile and desktop browser, oooh…

Getting stuff centered properly in CSS can be bewildering. I hope to help by displaying how to do it in many layout situations 🙂

Day 42/#100DaysOfCode

Finished the section of #bootcampdev that introduced @tailwindcss and used @astrodotbuild as the build tool.

Will definitely explore the latter in more depth, there’s a lot of power we didn’t use this time!

Silly but did the trick: dashing-marshmallow-fc25c7.netlify.app

Day 41/#100DaysOfCode

So I was about to get all upset at @tailwindcss and how I was getting caught up in a bunch of breakpoints, until my CSS brain came back and said CALC! CLAMP!

Turns out you can use them inside tailwind too, for example:

text-[calc(1.5rem + 3vw)]

Day 40/#100DaysOfCode

Ahahaha. I suck at sticking to naming conventions: github.com/sarajw?tab=repositories

Also, I really need a product idea - my design feels just have nothing to riff on… #bootcampdev

My first page built using Astro

Day 39/#100DaysOfCode

Week 2 of @flaviocopes’ #bootcampdev and now we’re going to start building out a site for an imaginary product using @astrodotbuild

  • I’m excited!

But… I need an idea for said product 🤔

Day 38/#100DaysOfCode

My first play with TailwindCSS, via @flaviocopes’ 2022 bootcamp: resonant-cajeta-3049be.netlify.app

Not gonna lie, I’m suspicious because I like vanilla CSS so much, but I can see that it has its place. Just a bunch more syntax to learn 😮‍💨

Day 37/#100DaysOfCode

Well, I’ve been working on a minisite that I can’t make public - but still, I made a minisite! And whipped it up pretty fast too! No frameworks this time, as I do like a bit of doing-it-by-hand.

If it eventually bears fruit I will certainly post it up…

Day 36/#100DaysOfCode

It’s not big and clever, but it’s mine! Eventually this will do more than just output strings, but I figure sorting out the maths is the first part…

P.S. The AEC Routemaster is the classic London Bus :)

Vanilla JavaScript doing some maths

Day 35/#100DaysOfCode

So my little web app idea is nothing new, just a measurements converter - but - I want to make it generate pretty images of silly units like the ubiquitous London bus, blue whales, cups of coffee, whatever else of a standard size that I can draw :)

Day 35 continued:

I just want to make something cute that can show off some (even if quite simple) coding, while also allowing for humour and creativity/art (I like drawing and don’t do enough of it).

Drawing up fractions of those units could be fun esp if I make them some level of 3D! 🐳

Day 34/#100DaysOfCode

  • signed up to @flaviocopes’ 2022 bootcamp
  • made some minor fixes on blog.sarawallen.com
  • set up sarawallen.com to auto-deploy from git
  • wrote down some notes for little web-app idea

Nothing big and clever but still chugging along… :)

Day 33/#100DaysOfCode

Well I just went to simply add my dev.to post to my own blog, both written in markdown so it should be easy, right?

Wrong!

A fair bit of work to escape the <tags> outside of code blocks properly, & style code blocks to be responsive…

Day 33 continued:

So new blog post here - I’ve just had a bit of fun colouring the code: blog.sarawallen.com/posts/details

Day 32/#100DaysOfCode

Apparently if you transform:translate() an element, Firefox still gives it the space it would have taken up before it was moved. A bit like position: relative I suppose?

So now I know… but only after a good period spent scratching my head over it 😅

Day 31/#100DaysOfCode

I was fiddling with the HTML <details> tag to try and trick it into becoming an elegant non-js navigation clicky menu.

Well, it worked, but I also wanted it to close when clicking outside, so I had to add JS anyway 😅

Have a look: details-nav.netlify.app

Day 30/#100DaysOfCode

I am stuck in ever-decreasing circles of fiddling with stuff on my landing page and blog, I really need to get on with more learning!

Considering joining @flaviocopes’ bootcamp this year, and in the meantime I’m looking back into @wesbos’ JavaScript notes.

Day 29/#100DaysOfCode

  • lose ugly drop shadows ✅
  • social icons white in dark mode ✅
  • line up h3 headings ✅
  • CSS art interactivity ✅
  • social icons to line up based on portrait/landscape ✅

Plus a bunch of other twiddly things, I got lost in the mire of minor CSS tweaks!

Day 29 continued:

I’m pleased with the interaction (on hover, or tap on mobile) on the CSS art at sarawallen.com

First I was like boo, you can see how the shapes are constructed, and then I was like oh, cool, you can see how the shapes are constructed!

Day 28/#100DaysOfCode

Things to fix on landing page:

  • ugly drop shadows
  • social icons should be white for dark mode
  • get all h3 headings to line up

Improvements:

  • CSS art interactivity
  • add privacy policy / ‘Impressum’
  • social icons to line up based on portrait/landscape

Day 27/#100DaysOfCode

The last couple of days, I

  • watched @traversymedia’s 2022 guide which was really insightful
  • played with new svh/lvh/dvh etc CSS units on my newly updated old iPhone 7, hope it comes to more (particularly mobile) browsers soon!
  • messed with webflow a bit

Day 26/#100DaysOfCode

Using PowerShell at work again, creating image lists for ffmpeg to turn into automated time-lapse videos.

Question for video types - is there a known good codec and compression level that is playable on almost all systems and isn’t too lossy? libx264?

Day 25/#100DaysOfCode (1/4 done!)

  • Fix index page for dark mode ✅
  • Investigate linear-gradient Safari issue [it was broken CSS] ✅
  • Work out what element is making the whole page have focus style (the dashed green line) & turn off ✅
  • Finish contact form thank you page ✅

Day 24/#100DaysOfCode

Fixed some things on blog.sarawallen.com … broken some other things, always the way 😅

Day 24 continued

Notes to self:

  • Fix index page for dark mode
  • Investige linear-gradient Safari discrepancy
  • Work out what element is making the whole page have focus style (the dashed green line) and turn it off
  • Finish contact form thank you page
  • Create custom 404 page

Day 23/#100DaysOfCode

  • Sort out contact form* ✅
  • Make my sites function in mobile-landscape-mode 😵 - eeh, mostly ✅

*The contact form was a proper pain, it took me a while to work out what Netlify needed me to do to make it work.

Next up: Custom submission and error pages!

Day 22/#100DaysOfCode

Unsure whether I want to merge blog.sarawallen.com and sarawallen.com just yet.

The former is made with pure HTML & CSS, it would almost be sad to stuff it into the other one!

I’m very pleased with the blog’s navigation now, though.

Day 21/#100DaysOfCode

I have been wrangling the tabs and colours in the navigation of my blog, definitely got some work to do to get tabs to come forward when active, but am slowly finding my way.

Also thank you Svelte for afterUpdate()! Took me a while to find it though…

Day 20/#100DaysOfCode

Well, it’s a start! This was the header from an old Channel 4 Teletext page I used to read avidly as a teen, Mega-zine:

inspiring-chandrasekhar-d972e0.netlify.app
link no longer functional

Not a patch on your site @andrewjnile but fun to do!

Day 20 continued

Can now be found at mega-zine.netlify.app

Day 18/#100DaysOfCode
Day 19/#100DaysOfCode

I dunno now, I did some things earlier but I’ve already forgotten what they were? Ukraine-related news and anxiety (rightly) overwhelms everything else.

Слава Україні!

Day 19 continued

…this should have been Day 19/#100DaysOfCode

Like I say, distracted.

I am planning stuff though, trying to find a niche of things to make - I am considering mocking up old TV idents and teletext pages in HTML & CSS for fun :)

Day 18/#100DaysOfCode

Added a secondary pop colour. Not sure about them… And the light/dark modes also need a manual toggle.

My popups/modals have been made way better with JavaScript event.stopPropagation() and CSS overscroll-behavior: contain 🚀

Day 17/#100DaysOfCode

So the focus highlighting is back. I’ve made the function of the popups a little better. The ascii-art is now somewhat more viewable on mobiles.

I’ve connected it to blog.sarawallen.com! 🎉

And sarawallen.com now has styling to match :)

Day 16/#100DaysOfCode

Added a pop colour to my ‘blogolio’ amongst other little fixes. The front, stuff and contact pages need content.

I also need to work on my main landing page - I want to keep it, but the styling needs an overhaul, and I must locally host the font…

Day 16 continued

Notes to self:

  • Focus highlighting - outline (+offset?) or border? ✅ done
  • Prioritise accessibility.
  • Consider elements expanding in place instead of introducing modals, ooh.
  • Host sarawallen.com font(s) locally.
  • Make the ascii-art text responsive.

Day 15/#100DaysOfCode

Battled windows command line, installing make, but failing to compile a TTF-WOFF2 converter. Never mind, I managed to get hold of the woff2 font file I wanted in the end!

Svelte blog also progressing, using CSS grid a bit more. Separating out components :)

Day 14/#100DaysOfCode

Got confused in svelte when a bit of simple JS wouldn’t work, but then have found the native IF setup to be a much better solution thanks to the help from the discord!

Working on making my own pop-up/modal component for use in my portfolio/stuff section :)

Day 14 continued

Notes to self before bed:

  • Fix padding discrepancy between /blog and /stuff on mobile
  • Reconsider popup position (fixed? absolute?) and how to darken rest of site behind it (huge box shadow? Is that legit CSS?)

Add content:

  • Contact
  • Front page (hero?)

Day 13/#100DaysOfCode

2nd attempt at the svelte static blog looks good, and now I’m trying to build out the portfolio/stuff section.

There are so many cool complex things you can do in webdev frameworks, but I’m taking baby steps - I want to (mostly) understand what I’m doing!

Day 13 continued

Just to add that I’m getting some great support from the @SvelteSociety and @KevinJPowell’s discord servers, not to mention conversations I’ve had here on twitter.

I’m so thankful for the communities around development 🙏♥️

Day 12/#100DaysOfCode

Ooof:

I made a mess out of moving project folders around on my computer, so lost most of the last version of the blog I was making in @sveltejs!

Then I missed out a forward slash which meant the built version of my new one couldn’t see fonts and images 🤦

Day 12 continued

The upshot of this is I’ve just learned how I /should/ be using assets in SvelteKit,
~and~
the new version is now being pushed to GitHub from the start - and therefore also now being auto-built and deployed on Netlify. Winner.

Temporary URL: hardcore-bose-029a18.netlify.app
link no longer functional

Day 11/#100DaysOfCode

Arguing with some aspects of @sveltejs because it seems every which way of making a website involves some fudging, somewhere! Otherwise, I like it very much as a ‘modern’ way of building websites :)

Also still tussling with PowerShell at work…

Day 10/#100DaysOfCode

Already 10% done?

I have a blog! A static one! Built with @sveltejs! Temporary site is here: pensive-murdock-678461.netlify.app
link no longer functional

The design is… hm. Trying to harmonise it with sarawallen.com. Very Under Construction 🏗️👷

With thanks to @jjcollinsworth :)

Day 9/#100DaysOfCode

More PowerShell, more SvelteKit static blog building.

With the latter I really should finish the tutorial before messing with parts of it, because inevitably it gets around to what I want to try anyway, and does whatever it is way more efficiently! ^_^

Day 8/#100DaysOfCode

“Let’s learn SvelteKit by building a static Markdown blog from scratch” - @jjcollinsworth

Wish me luck!

Day 7/#100DaysOfCode

On the day job at @MKtimelapse - playing with PowerShell and using it to create a file list for ffmpeg to turn into an auto-generated time-lapse movie.

I did it a while ago so first I’m trying to understand my old code (🤦) before I adapt it to new uses…

Day 6/#100DaysOfCode

Oops. Opening a Svelte project in VSCode just closed the Next one. I guess now I know that happens, glad it prompted me to save before it went.

Also having a first peek at webflow, even if that’s in opposition to what I’m trying to learn. I’m intrigued.

Day 5/#100DaysOfCode

Managing to eke out an hour before I go to bed. I’m pausing the next.js tutorial because the svelte one is right in front of me and isn’t requiring me to look at a video right now - I much prefer text/interaction based stuff!

Day 4/#100DaysOfCode

Still on @thenetninjauk’s Next.js tutorial - now we’re actually getting into more JavaScript!

I’m still stuck between “Ooo this is clever” and “All this abstraction feels so unnecessary…” - but then I haven’t built huge dynamic sites or apps (…yet!)

Not-a-Day/#100DaysOfCode

Not managing to do one of the #100DaysOfCode today, but thinking about planning…

Currently doing a Next.js tutorial Depending on how I feel at the end of that, I may or may not look at React or Svelte. Next project goal: Make myself a blog site.

Day 3/#100DaysOfCode

Continuing @thenetninjauk’s Next.js tutorial :ninja:

Day 2/#100DaysOfCode

Edited some text in the landing page I made for my friend yasmin-brinkmann.com :)

Kicking myself about the things I don’t know by heart on css-speedrun.netlify.app !

Learning that using Google Fonts without hosting them locally is not GDPR-compliant!

So. #100DaysOfCode - let’s do this.

They won’t be consecutive. But I will account for them.

Day 1/100 - setting myself up to have a play with @nextjs

Smart to skip over React entirely to play here first? Who knows! Don’t know until I try…