Problems with the pop-up card

Hey there, i have a question about the popup-card.
I wrote the following at the end of my configuration.yaml:

title: My awesome lovelace interface
resources:
  - url: /customcards/github/thomasloven/card-tools.js?track=true
    type: js
  - url: /customcards/github/thomasloven/popup-card.js?track=true
    type: js
views:
  - title: My view
    icon: mdi:home-assistant
    popup_cards:
      light.bed_light:
        title: Bedside lamp settings
        card:
          type: entities
          entities:
            - light.bed_light
            - type: custom:time-input-row
            
    cards:
      - type: entities
        entities:
          - light.bed_light

I am pretty new to ha. And my config is try ans error. In this case i get the followibg error in the log:
I then get an error message:
Setup failed for title: Integration not found.

Setup failed for resources: Integration not found.
Setup failed for title: Integration not found.

Do you guys have a hint for me?

None of that code belongs in your configuration.yaml file. Views are defined in ui-lovelace.yaml. Of course, this assumes your HA instance is running in YAML mode. If you are new to HA, chances are you are not running in YAML mode.