File: s_carousel.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (86 lines) | stat: -rw-r--r-- 5,285 bytes parent folder | download
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
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_carousel" name="Carousel">
    <section class="s_carousel_wrapper p-0" data-vxml="001" data-vcss="001">
        <t t-set="uniq" t-value="datetime.datetime.now().microsecond"/>
        <div t-attf-id="myCarousel{{uniq}}" class="s_carousel s_carousel_default carousel slide" data-bs-ride="true" data-bs-interval="10000">
            <!-- Content -->
            <div class="carousel-inner">
                <!-- #01 -->
                <div class="carousel-item active oe_img_bg o_bg_img_center o_cc o_cc5 pt152 pb152" style="background-image: url('/web/image/website.s_carousel_default_image_1');" data-name="Slide">
                    <div class="o_we_bg_filter bg-black-25"/>
                    <div class="container oe_unremovable">
                        <div class="row">
                            <div class="carousel-content col-lg-6">
                                <h2 class="display-3-fs">Slide Title</h2>
                                <p class="lead">Use this snippet to presents your content in a slideshow-like format. Don't write about products or services here, write about solutions.</p>
                                <p>
                                    <a href="/contactus" class="btn btn-primary">Contact us</a>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- #02 -->
                <div class="carousel-item oe_img_bg o_bg_img_center pt96 pb96" style="background-image: url('/web/image/website.s_carousel_default_image_2');" data-name="Slide">
                    <div class="container oe_unremovable">
                        <div class="row">
                            <div class="carousel-content col-lg-8 offset-lg-2 text-center pt48 pb40">
                                <h2 class="display-3-fs">Clever Slogan</h2>
                                <div class="s_hr pt8 pb24" data-snippet="s_hr" data-name="Separator">
                                    <hr class="w-25 mx-auto"/>
                                </div>
                                <p class="lead">Storytelling is powerful.<br/> It draws readers in and engages them.</p>
                                <p><a href="/" class="btn btn-primary">Start your journey</a></p>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- #03 -->
                <div class="carousel-item oe_img_bg o_bg_img_center pt128 pb128 o_cc o_cc5" style="background-image: url('/web/image/website.s_carousel_default_image_3');" data-name="Slide">
                    <div class="container oe_unremovable">
                        <div class="row">
                            <div class="carousel-content col-lg-6 offset-lg-6 pb24 pt24">
                                <h3>Edit this title</h3>
                                <h6>Good writing is simple, but not simplistic.</h6>
                                <p><br/></p>
                                <p class="lead">Good copy starts with understanding how your product or service helps your customers. Simple words communicate better than big words and pompous language.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Controls -->
            <button class="carousel-control-prev o_not_editable" contenteditable="false" t-attf-data-bs-target="#myCarousel{{uniq}}" data-bs-slide="prev" aria-label="Previous" title="Previous">
                <span class="carousel-control-prev-icon" aria-hidden="true"/>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next o_not_editable" contenteditable="false" t-attf-data-bs-target="#myCarousel{{uniq}}" data-bs-slide="next" aria-label="Next" title="Next">
                <span class="carousel-control-next-icon" aria-hidden="true"/>
                <span class="visually-hidden">Next</span>
            </button>
            <!-- Indicators -->
            <div class="carousel-indicators o_not_editable">
                <button type="button" t-attf-data-bs-target="#myCarousel{{uniq}}" data-bs-slide-to="0" class="active" aria-label="Carousel indicator"/>
                <button type="button" t-attf-data-bs-target="#myCarousel{{uniq}}" data-bs-slide-to="1" aria-label="Carousel indicator"/>
                <button type="button" t-attf-data-bs-target="#myCarousel{{uniq}}" data-bs-slide-to="2" aria-label="Carousel indicator"/>
            </div>
        </div>
    </section>
</template>

<record id="website.s_carousel_000_scss" model="ir.asset">
    <field name="name">Carousel 000 SCSS</field>
    <field name="bundle">web.assets_frontend</field>
    <field name="path">website/static/src/snippets/s_carousel/000.scss</field>
    <field name="active" eval="False"/>
</record>

<record id="website.s_carousel_001_scss" model="ir.asset">
    <field name="name">Carousel 001 SCSS</field>
    <field name="bundle">web.assets_frontend</field>
    <field name="path">website/static/src/snippets/s_carousel/001.scss</field>
</record>

</odoo>