crakjie / landing-page-hugo

Hugo landing page theme
MIT License
74 stars 59 forks source link

Proposal: Customizable "Pricing" section #24

Closed matgnt closed 7 years ago

matgnt commented 7 years ago

Hi all,

for my landing page I needed a "pricing" section, so I built it into the existing template and made it customizable with a data/pricing.json

Here is how it looks like at the moment:

screen shot 2017-09-04 at 10 12 11

The input example looks like this:

[
    {
        "name": "Free",
        "link": "signup/free",
        "linkText": "Signup",
        "features": [
            {
                "name": "Free-Feature 1",
                "description": "My feature 1 can do..."
            },
            {
                "name": "Free-Feature 2",
                "description": "with feature 2 you can..."
            },
            {
                "name": "",
                "description": ""
            }
        ]
    },

You can easily add new features or more pricing columns. (The description field is not used at the moment).

It's also resizable and should work on mobile (columns will be collapsed and shown under each other.

Does it make sense to integrate it into the template?

crakjie commented 7 years ago

Why not. If not pricing section exist nothing else is impacted?

matgnt commented 7 years ago

Great! No, no change if users don't want to use it. I'll update my code a little and create a pull request after the weekend.

crakjie commented 7 years ago

Could you add a section in the exempleSite ?

matgnt commented 7 years ago

Yes, I'll add example content!