Swiftpack.co - dmonagle/plot-zurb-foundation-6 as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dmonagle.
dmonagle/plot-zurb-foundation-6 0.2.1
This is a library for John Sundells [Plot](https://github.com/johnsundell/plot) for the Zurb Foundation 6 framework.
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/dmonagle/plot-zurb-foundation-6.git", from: "0.2.1")

Plot Zurb Foundation 6

Note: This project is under development. While the version is below 1.0.0 changes to the minor version may introduce issues with backward compatibility.

This is a library for John Sundells Plot for the Zurb Foundation 6 framework.

Examples

Menu

.div(
    .id("responsive-menu"),
    .attribute(named: "data-animate", value: "hinge-in-from-top hinge-out-from-top"),
    .class("top-bar"),
    .div(
        .class("top-bar-left"),
        .ZF6_menu(type: .dropdown,
            .li(
                .a(
                    .class("hide-for-small-only"),
                    .href("/"),
                    .retinaPicture(path: "/images/top-bar-logo.png")
                )
            )
        )
    ),
    .div(
        .class("top-bar-right"),
        .ZF6_menu(type: .dropdown,
            .li(
                .a(
                    .class("show-for-small-only"),
                    .href("/"),
                    .text("Home")
                )
            ),
            .forEach(sectionIDs) { section in
                .li(
                    .if(section == selectedSection, .class("active")),
                    .a(
                        .href(context.sections[section].path),
                        .text(context.sections[section].title)
                    )
                )
            }
        )
    )
)

Orbit

.div(
    .class("hide-for-small-only"),
    .ZF6_orbit(captionClass: "orbit-caption h4 hero-caption", slides: [
        OrbitSlide(image: "/images/hero/obi-wan.png", caption: "Carried a blue lightsaber"),
        OrbitSlide(image: "/images/hero/anakin.png", caption: "Carried blue and red lightsabers"),
        OrbitSlide(image: "/images/hero/luke.png", caption: "Carried blue and green lightsabers"),
    ])
)

Installation

Use the Swift Package Manager. To install it into a project, simply add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/dmonagle/plot-zurb-foundation-6.git", from: "0.1.0")
    ],
    ...
)

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics