로딩중
{%- comment -%} `tag_name`에서 선행 및 후행 공백을 제거합니다. {%- endcomment -%} {%- tag_name 할당 = tag_name | strip -%} {%- comment -%} `tag_name: ''' 케이스를 처리합니다. {%- endcomment -%} {%- if tag_name and tag_name.size < 1 -%} {%- assign tag_name = false -%} {%- endif -%} {%- if tag_name -%} <{{ tag_name }} {{- 속성 | to_attrs -}} {{- 추가_attrs -}} {%- if self_closing == true -%} {{- ' /' -}} {%- endif -%} > {%- endif -%} {%- self_closing == true -%} {%- ifslot -%} {%- 슬롯 -%} {%- else -%} {{- inner_html -}} {%- endifslot -%} {%- if tag_name -%} {%- endif -%} {%- 무한 -%}{%- comment -%} 이 구성 요소는 `img` 태그 또는 `div style="background-..."`를 생성할 수 있습니다. {%- endcomment -%} {%- 할당 is_global_asset = is_global_asset | 기본값: false -%} {%- if bg -%} {%- comment -%} 배경 이미지 {%- endcomment -%} {%- assign tag_name = tag_name | 기본값: 'div' -%} {%- self_closing 할당 = self_closing | 기본값: false -%} {%- comment -%} 속성을 직접 렌더링하고 `style`을 필터링합니다. {%- endcomment -%} {%- attr_list 할당 = attrs | to_attrs: 목록: true -%} {%- 추가_attrs 캡처 -%} {%- comment -%} 컨텍스트의 속성을 포함합니다. {%- endcomment -%} {%- attr_list의 attr -%} {%- if attr[0] == 'style' -%} {{- ' ' -}} {{- attr[0] -} } {%- if attr[1].size > 0 -%} ="{{- attr[1] -}}" {%- endif -%} {%- 무한 -%} {%- endfor -%} {{- ' ' -}} style=" {%- comment -%} 렌더링 bg 스타일. 이미지가 없으면 src를 사용하세요. {%- endcomment -%} {%- assign has_bg_image = false -%} {%- assign has_bg_size = false -%} {%- assign has_bg_position_x = false -%} {%- assign has_bg_position_y = false -%} {%- assign has_bg_repeat = false -%} {%- bg의 소품용 -%} {%- case prop[0] -%} {%- when 'image' -%} {%- assign has_bg_image = true -%} {%- when 'size' -%} {%- assign has_bg_size = true -% } {%- '위치'일 때 -%} {%- has_bg_position_x = true 할당 -%} {%- has_bg_position_y = true 할당 -%} {%- '위치-x'일 때 -%} {%- has_bg_position_x = true 할당 -%} {%- when 'position-y' -%} {%- assign has_bg_position_y = true -%} {%- when 'repeat' -%} {%- assign has_bg_repeat = true -%} {%- endcase - %} 배경-{{- 소품[0] -}}: {{- p 롭[1] -}}; {%- endfor -%} {%- if has_bg_image -%} background-image: url('{{- src | asset_url: global: is_global_asset -}}'); {%- endunless -%} {%- if has_bg_size -%} background-size: 커버; {%- 무한 -%} {%- 제외 has_bg_position_x -%} background-position-x: 중심; {%- 무한 -%} {%- 제외 - has_bg_position_y -%} background-position-y: 중심; {%- endunless -%} {%- if has_bg_repeat -%} background-repeat: no-repeat; {%- endunless -%} {%- comment -%} 스타일 속성에서 스타일을 추가합니다. {%- endcomment -%} {{- attrs.style -}} " {%- endcapture -%} {%- comment -%} 속성을 제거하여 두 번 렌더링하지 않도록 합니다. {%- endcomment -%} { %- 속성 지정 = nil -%} {%- else -%} {%- comment -%} 일반 img 태그 {%- endcomment -%} {%- assign tag_name = 'img' -%} {%- assign self_closing = true -%} {%- 추가_attrs 캡처 -%} {%- if srcset.size > 0 -%} {{- ' ' -}} srcset="{{ srcset }}" {%- endif -%} { %- if size.size > 0 -%} {{- ' ' -}} sizes="{{ 크기 }}" {%- endif -%} {{- ' ' -}} alt="{{ alt } }" {{- ' ' -}} src="{{ src | asset_url: global: is_global_asset }}" {%- endcapture -%} {%- endif -%} {%- 'atom/element' 포함, tag_name: tag_name, self_closing: self_closing, additional_attrs: additional_attrs -%}{%- 할당 group_attrs = group.attrs | merge_props: 클래스: 'listcard__group' -%} {%- assign tag_name = 'div' -%} {%- 접을 수 있는 경우 -%} {%- assign tag_name = 'details' -%} {%- endif -%} < {{ tag_name }} {{ group_attrs | to_attrs }}> {headline == false 또는 group.headline == nil 또는 group.headline.size == 0 %가 아닌 경우 %} {축소 가능한 경우 %} {% endif %} {{ group.headline }} {접을 수 있는 경우 %} {% endif %} {% 무한 %} {group.cards의 항목에 대한 %} {%- 'cardlist/listcard/item' 포함 -%} {% endfor %} {% group.group_button_link == nil 또는 group.cards.size < 2 %가 아닌 경우} {{ group.group_button_label }} {% 무한 %}{% assign card_count = forloop.index %}
{%- capture curr_class -%}
listcard__card
{%- unless item.id == nil -%}
{{- ' ' -}} listcard__card--{{ item.id }}
{%- endunless -%}
{%- unless card_class == nil or card_class.size == 0 -%}
{{- ' ' -}} listcard__card--{{ card_class }}
{%- endunless -%}
{%- endcapture -%}
{%- assign card_attrs = item.attrs | merge_props: class: curr_class -%}
{% if linkcard %}<a {{ card_attrs | to_attrs }}>{% else %}<div {{ card_attrs | to_attrs }}>{% endif %}
{%- unless headline == false or item.headline == nil or item.headline.size == 0 -%}
<h2 class="listcard__card-headline">{{ item.headline }}</h2>
{%- endunless -%}
{% unless subheadline == false or item.subheadline == nil or item.subheadline.size == 0 %}
<h3 class="listcard__card-subheadline">{{ item.subheadline }}</h3>
{% endunless %}
{% unless images == false or item.images == nil or item.images.size == 0 %}
{% if compare == true %}
<div class="listcard__card-images">
<div class="listcard__comparison comparison comparison--popup">
<figure style="background-image: url('{{ item.compare_img_1 | asset_url }}')">
<a class="listcard__card-image-link listcard__card-image-link--before" href="#view-{{ item.id }}">Before</a>
<div
class="divisor"
style="
background-image: url('{{ item.compare_img_2 | asset_url }}');
clip-path: inset(0 0 0 50%);
">
<a class="listcard__card-image-link listcard__card-image-link--after" href="#view-{{ item.id }}">After</a>
</div>
</figure>
<input type="range" min="0" max="100" value="50" class="slider">
</div>
<div id="view-{{ item.id }}" class="modal-window comparison">
<a href="#" class="modal-close">Close</a>
<div class="modal-window__wrapper">
<figure style="background-image: url('{{ item.compare_img_1 | asset_url }}')">
<span class="listcard__card-image-link listcard__card-image-link--before">Before</span>
<div
class="divisor"
style="
background-image: url('{{ item.compare_img_2 | asset_url }}');
clip-path: inset(0 0 0 50%);
">
<span class="listcard__card-image-link listcard__card-image-link--after">After</span>
</div>
</figure>
<input type="range" min="0" max="100" value="50" class="slider">
</div>
</div>
</div>
{% else %}
{% if legacy %}
<div class="listcard__card-images">
{% for image in item.images %}
{% using image %}
{%- comment -%}
We're adding a class list to the `image` data before `atom/img`.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__card-image listcard__card-image--{{ forloop.index }} {%- endcapture -%} {%- 속성 할당 = 속성 | merge_props: 클래스: 클래스 -%} {% "atom/img" 포함 %} {% endusing %} {% if image.modal_img %} 닫기 {% using image %} {%- comment -%} `atom/img` 이전의 `image` 데이터에 클래스 목록을 추가합니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__modal-image listcard__modal-image--{{ forloop.index }} {%- endcapture -%} {%- 속성 할당 = 속성 | merge_props: 클래스: 클래스 -%} {% 포함 "atom/img" %} {% endusing %} {% endif %} {% endfor %} {% if image.image_text %} {{이미지.이미지_텍스트}} {% endif %} {% else %} {% for image in item.images %} {% using image %} {%- comment -%} `atom/img` 이전의 `image` 데이터에 클래스 목록을 추가합니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
동적 데이터 없이 상수 클래스 목록을 사용하려면 다음과 같이 인라인으로 수행할 수 있습니다. `{%- assign attrs = attrs | merge_props: class: "my-static class-list" -%}` {%- endcomment -%} {%- capture class -%} listcard__card-image listcard__card-image--{{ forloop.index }} {%- endcapture -%} {%- attrs 지정 = attrs | merge_props: class: class -%} {% include "atom/img" %} {% endusing %} {% if image.image_text %} {{이미지.이미지_텍스트}} {% endif %} {% endfor %} 닫기 {% for image in item.images %} {% using image.modal_img %} {%- comment -%} `atom/img` 이전에 `image` 데이터에 클래스 목록을 추가하고 있습니다.
`attrs.class`가 이미 존재하는 경우 클래스 목록이 뒤에 추가됩니다.
우리는 `forloop.index`의 데이터를 사용하고 있기 때문에 `capture`가 필요합니다.
* 개별 결과는 보장되지 않으며 개인마다 다를 수 있습니다. 이미지는 모델을 포함 할 수 있습니다.