Code Monkey home page Code Monkey logo

better-moment-card's People

Contributors

ibz0q avatar

Stargazers

 avatar  avatar  avatar

better-moment-card's Issues

Can't replicate clockwork card look/feel

I can't replicate the look of the clockwork card that stopped functioning and gives the incorrect time, which led me to your card. I'm sure it's just my own lack of experience with styling code. Can you assist by recommending changes?

In the screenshot below, you can see the overall card size, padding between side locations, and font size for city name is different than clockwork, which is the look I prefer:

Screenshot_20240218_163434_Home Assistant

  - type: custom:better-moment-card
    parentStyle: |
      line-height:normal;
      padding-bottom:0en;
      display: grid; 
      grid-template-columns: 1fr 1fr 1fr; 
      grid-template-rows: 0fr 0fr; 
      gap: 0px; 
      grid-template-areas: 
        'time time LA'
        'date date Miami'; 
    moment:
      - format: h:mm a
        style: >
          font-size:4em; text-align:left; font-weight:400; grid-area: time;
        timezone: America/Chicago
      - format: dddd, MMMM DD
        style: >
          font-size:1.6em; line-height:1em; text-align:left; grid-area: date; 
      - format: ddd h:mm a
        timezone: America/Los_Angeles
        style: |
          text-align:left; line-height:1.5em; grid: LA;
        template: |
          <strong>Los Angeles</strong>
          <div style="font-size:0.9em;">{{moment}}</div>
      - format: ddd h:mm a
        timezone: America/Puerto_Rico
        style: |
          text-align:left; line-height:1.5em; grid: Miami
        template: |
          <strong>Miami</strong>
          <div style="font-size:0.9em;">{{moment}}</div>

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.