Aller au contenu

« Module:EnteteAccueil » : différence entre les versions

De Wikiquestia
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 4 : Ligne 4 :
     local html = {}
     local html = {}


     table.insert(html, '<div style="position: relative;')
     table.insert(html, '<div style="')
     table.insert(html, 'background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #cde4f2 100%), url(/images/3/3e/RdVW.png);')
     table.insert(html, 'background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #cde4f2 100%), url(/images/3/3e/RdVW.png);')
     table.insert(html, 'background-repeat: no-repeat, no-repeat;')
     table.insert(html, 'background-repeat: no-repeat, no-repeat;')
     table.insert(html, 'background-position: top, bottom right;')
     table.insert(html, 'background-position: center top, bottom right;')
     table.insert(html, 'background-size: 100% 100%, 100px;')
     table.insert(html, 'background-size: 100% 100%, 120px;')
     table.insert(html, 'padding: 2em 1.5em; margin-bottom: 24px;')
     table.insert(html, 'padding: 2em 1.5em;')
    table.insert(html, 'margin-bottom: 24px;')
     table.insert(html, 'font-family: \'Linux Libertine\', Georgia, serif;')
     table.insert(html, 'font-family: \'Linux Libertine\', Georgia, serif;')
     table.insert(html, 'text-align: center;')
     table.insert(html, 'text-align: center;')
     table.insert(html, 'border-bottom: 4px solid #6eacdc;')
     table.insert(html, 'border-bottom: 4px solid #6eacdc;">')
    table.insert(html, 'overflow: hidden;">')


    -- Texte d'accueil
     table.insert(html, '<div style="font-size: 2.2em; font-weight: bold; color: #2c3e50;">Bienvenue sur le Codex d’Alakihel</div>')
     table.insert(html, '<div style="font-size: 2.2em; font-weight: bold; color: #2c3e50;">Bienvenue sur le Codex d’Alakihel</div>')
     table.insert(html, '<div style="font-size: 1.1em; color: #3b4f60; margin-top: 0.5em;">Le portail des royaumes oubliés, des langues anciennes et des légendes vivantes</div>')
     table.insert(html, '<div style="font-size: 1.1em; color: #3b4f60; margin-top: 0.5em;">Le portail des royaumes oubliés, des langues anciennes et des légendes vivantes</div>')

Version du 13 juillet 2025 à 11:40

La documentation pour ce module peut être créée à Module:EnteteAccueil/doc

local p = {}

function p.bandeau(frame)
    local html = {}

    table.insert(html, '<div style="')
    table.insert(html, 'background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #cde4f2 100%), url(/images/3/3e/RdVW.png);')
    table.insert(html, 'background-repeat: no-repeat, no-repeat;')
    table.insert(html, 'background-position: center top, bottom right;')
    table.insert(html, 'background-size: 100% 100%, 120px;')
    table.insert(html, 'padding: 2em 1.5em;')
    table.insert(html, 'margin-bottom: 24px;')
    table.insert(html, 'font-family: \'Linux Libertine\', Georgia, serif;')
    table.insert(html, 'text-align: center;')
    table.insert(html, 'border-bottom: 4px solid #6eacdc;">')

    table.insert(html, '<div style="font-size: 2.2em; font-weight: bold; color: #2c3e50;">Bienvenue sur le Codex d’Alakihel</div>')
    table.insert(html, '<div style="font-size: 1.1em; color: #3b4f60; margin-top: 0.5em;">Le portail des royaumes oubliés, des langues anciennes et des légendes vivantes</div>')

    table.insert(html, '</div>')

    return table.concat(html, "\n")
end

return p