Giter Site home page Giter Site logo

paulinhapenedo / 11ty-garden Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 358 KB

This is my digital garden/playground, my little safe space on the web.

Home Page: https://paulapenedo.dev

License: MIT License

JavaScript 13.34% Nunjucks 40.31% CSS 11.04% SCSS 35.31%
11ty digital-garden indieweb

11ty-garden's People

Contributors

paulinhapenedo avatar

Watchers

 avatar

11ty-garden's Issues

Configure theme colors (light/dark)

/* Retrowave / Synthwave colors */
  /* Sony Dynamicron T-120 VHS */
  /**
      Working color combinations (contrast):
      - With bg as paper:
        - black, red, purple
      - With bg as yellow:
        - black
      - With bg as red:
        - paper
      - With bg as purple:
        - paper
      - With bg as black:
        - paper, yellow
    */
  --paper: #f2eee3;
  --yellow: #fec52e;
  --red: #b81937;
  --purple: #af01cf;
  --black: #10110b;

Add SASS

Motivation

I wasn't gonna use any preprocessor, but the CSS file is getting huge with everything I'm adding from Utopia (spaces and types), color schemes and stuff, so SASS will be used for better DX.

Will be following this tutorial https://11ty.recipes/recipes/add-a-sass-workflow/

Add Prism.css only to posts with code snippets

Motivation

To avoid loading an unnecessary Prism.css file on pages where we are not gonna show code snippets, we should remove it from the base.njk file and only add it to the templates where it's required.

<link rel="stylesheet" href="{{ '/assets/css/prism.css' | url }}">

Handle FOUT with custom fonts

Motivation

Lighthouse audit is signalizing that CSS is a problem because of the flash of unstyled text, or FOUT.
Right now, the approach used is to have a CSS file for the font-face declarations and import this file using native's @import declaration. Because of that, the main CSS file takes longer to load since it needs to wait for all fonts to be loaded before rendering everything else.

Checklist

  • Research approaches to avoid FOUT (font-display: swap is implemented already);
  • Maybe we need to minimize the CSS?
  • How to handle Prism CSS: could we only render it when we know that we are gonna show some code?
  • Remove DankMono from monospaced variable
  • Add DankMono to Prism CSS

Make tables responsive

markdown-it doesn't allow tables to be wrapped in HTML tags like div, making it impossible to use the overflow approach.
The only other option is to collapse the rows, or columns, to better display the information to the user.

I could use HTML inside the markdown file, but that's the last resort.

Add Favicon

Motivation

We need a favicon. Simple as that.
Maybe an owl? A penguin? Something while we wait for May to draw my chibi versions.

Checklist

  • Dark mode
  • Light mode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.