summaryrefslogtreecommitdiffstats
path: root/demo/components/tiles-generic.html
blob: 3d039093791974732e287d47fe2a02d6bcfa3787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<div class='component'>Tiles Generic</div>
<p>
    Tile do not have size, you can define the size in the wrapping container, or adding them 
    to css in your project.
    <br><b>Note:</b> specific tiles like sdc-tile-catalog has specifc width & height.
    <br>Tiles content has overflow auto, so if the content overflow a scroll will appear.   
</p>

<h3>Basic tile</h3>
<p>Tile without width or height</p>
<div class="sdc-tile" data-code>
    <div class='sdc-tile-content'>
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec volutpat, lorem at vulputate sollicitudin, neque magna hendrerit diam, nec sagittis eros libero ut dolor. Donec tincidunt, elit nec vestibulum tristique, nulla tellus aliquam eros, at rutrum massa purus quis ipsum. In aliquet non augue quis condimentum. Praesent efficitur tellus quis mauris auctor, vel semper erat vulputate. Mauris rhoncus nunc et ante dapibus, id luctus urna sodales. Proin eu augue efficitur ligula tincidunt placerat. Suspendisse potenti.
    </div>
</div>

<h3>Tile with header & footer</h3>
<p>
    <b>Note:</b> The background-color is just for showing header, content & footer sections.
    This is done using inline styles which should not be included in the final component.
    <br>The content will resize automaticly his height.
</p>
<div class="sdc-tile" data-code>
    <div class="sdc-tile-header" style="background-color: #EEEEEE;">top</div>
    <div class='sdc-tile-content' style="background-color: #CCCCCC;">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec volutpat, lorem at vulputate sollicitudin, neque magna hendrerit diam, nec sagittis eros libero ut dolor. Donec tincidunt, elit nec vestibulum tristique, nulla tellus aliquam eros, at rutrum massa purus quis ipsum. In aliquet non augue quis condimentum. Praesent efficitur tellus quis mauris auctor, vel semper erat vulputate. Mauris rhoncus nunc et ante dapibus, id luctus urna sodales. Proin eu augue efficitur ligula tincidunt placerat. Suspendisse potenti.
    </div>
    <div class='sdc-tile-footer' style="background-color: #EEEEEE;">footer</div>
</div>

<h3>Catalog tile (VSP)</h3>
<p>
    Specific tile of SDC.
    <br><b>Note:</b> The differences betweeb the tiles is the color (diffrent class) and the icons.
    The div with class='sdc-tile-content-info-vendor-name' is not needed in the second tile.
</p>

<div class='sdc-tile-showcase-tiles'>

    <div class="sdc-tile-catalog sdc-tile-fix-width" data-code-id='catalog-sample'>
        <div class="sdc-tile-header">
            <div class='sdc-tile-header-type blue'>
                vsp
            </div>
        </div>
        <div class='sdc-tile-content'>
            <div class='sdc-tile-content-icon'>
                <svg class="svg-icon blue">
                    <use href="./gen/assets/icons/vsp.svg#vsp_icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./assets/icons/vsp.svg#vsp_icon"></use>
                </svg>
            </div>
            <div class='sdc-tile-content-info'>
                <div class="sdc-tile-content-info-vendor-name">vlm</div>
                <div class="sdc-tile-content-info-item-name">lilach vsp</div>
                <div class="sdc-tile-content-info-version-info">
                    <div class="sdc-tile-content-info-version-info-text" data-test-id="sdc-catalog-item-version">V 0.1</div>
                </div>
            </div>
        </div>
        <div class='sdc-tile-footer'>
            <div class='sdc-tile-footer-text'>
                Footer text
            </div>
            <div class='sdc-tile-footer-icon'>
                <svg class="svg-icon unlocked black">
                    <use href="./gen/assets/icons/unlocked.svg#unlocked_icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./assets/icons/unlocked.svg#unlocked_icon"></use>
                </svg>
            </div>
        </div>
    </div>

    <div class="sdc-tile-catalog sdc-tile-fix-width sdc-code">
        <div class="sdc-tile-header">
            <div class='sdc-tile-header-type purple'>
                vlm
            </div>
        </div>
        <div class='sdc-tile-content'>
            <div class='sdc-tile-content-icon'>
                <svg class="svg-icon purple">
                    <use href="./gen/assets/icons/vsp.svg#vsp_icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./assets/icons/vsp.svg#vsp_icon"></use>
                </svg>
            </div>
            <div class='sdc-tile-content-info'>
                <div class="sdc-tile-content-info-item-name">vlm</div>
                <div class="sdc-tile-content-info-version-info">
                    <div class="sdc-tile-content-info-version-info-text" data-test-id="sdc-catalog-item-version">V 0.1</div>
                </div>
            </div>
        </div>
        <div class='sdc-tile-footer'>
            <div class='sdc-tile-footer-text'>
                Footer text
            </div>
            <div class='sdc-tile-footer-icon'>
                <svg class="svg-icon unlocked black">
                    <use href="./gen/assets/icons/locked.svg#locked_icon" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="./assets/icons/locked.svg#locked_icon"></use>
                </svg>
            </div>
        </div>
    </div>

</div>

<div data-code-ref='catalog-sample'></div>