Weeknotes 2020.09.04

Much of the first part of the week was spent testing the K-State Admissions Representatives app (my first Vue app!), which is still not quite ready to go. Hopefully, it will launch early next week.

I spent the rest of the week getting started on the front end for another new Python project. One of the features of this new project is a list of files in various formats. It’s possible to target CSS using link attributes, so I was able to change the file icon and ::after text based on the type of file uploaded. For example:

a[src*=".pdf"] {
    background-image: url(pdf-icon.svg);
}

a[src*=".pdf"]::after {
    content: " (PDF)";
}

Check out some of the other options.

Podcasts

Links