Fork me on GitHub
#hoplon
<
2015-11-02
>
martinklepsch09:11:22

First slide is killer simple_smile

mynomoto13:11:02

That's so true!

esp115:11:00

last slide is awesome simple_smile

mynomoto16:11:48

We need a :ftw: emoji so we can do 👢 + hoplon :ftw:

esp118:11:45

the prerender boot task is rewriting some of my relative urls as file:// urls, which i don’t want. how can i avoid this?

esp118:11:51

i have the following defelem:

(defelem splash
  [{:keys [image-url]} _]
  (div {:css {:position        "absolute"
              :top             0
              :bottom          0
              :left            0
              :right           0
              :z-index         -1
              :background      (str "url('" image-url "') no-repeat center center fixed")
              :background-size "cover"}}))

esp118:11:31

i use it like (splash {:image-url “/images/something.jpg”}), but when it is prerendered, the background image url in the style parameter becomes style=“…; background-image: url(file:///images/something.jpg); …”

esp118:11:09

this causes an error on initial page load because the browser obviously has no way of resolving the file url