Clicky

Rails – Single Page RapidWeaver Websites With Ease
My Image

All the latest RapidWeaver Stacks reviewed,
plus the most important community news …

Stay up to date with current RapidWeaver developments

Rails – Single Page RapidWeaver Websites With Ease

Thanks to the iPhone, all smart phones now have swipe actions. Swipe actions are especially useful when viewing web pages, so what better way to display a website than as a single page website divided into sections?
Using any standard RapidWeaver theme it's easy to add endless amounts of content, but there is no simple method of navigating that content. Or is there?
Nick Cates has come up with a Stacks solution that lets you easily transform any RapidWeaver themed webpage into a Single Page website. Rails.

There are already a couple of solutions available for creating single page websites. Not all of them will easily adapt to the RW theme that you want to use. Rails changes that. And Rails is dead simple to use.

Rails - single page websites


Drop Rails onto a Stacks page and you will find that you have a content box with three sections. And the new stack has automatically added navigation buttons for the sections. All you now have to do is add your content and name the sections. A Single Page website, built within minutes and without any complicated configuration!

The Rails main settings panel controls the menu configuration and allows you to match the Rails-Section Menu to your theme. The first settings allow you to define the width of the Menu Items, The Item Text Size and the button Radius.
Next, you can add an Items V.Line – a vertical dividing line between the buttons and the main content with Items. Item H. Line adds a horizontal dividing line between the buttons. Extra Bottom (default 100px) adds a space below the Rails Sections to allow easier scrolling. If you add a footer to your page this may be set to 0px.
The Navigation Items will slide down the page as you scroll. The Transition Time may be set between 0 and 2000 ms and you'll find a choice of seven different Easing Types – the slide transition.
Items Alignment may be set to the Left, or Right hand side of your page and Hide Items@ defines the breakpoint at which they will be hidden. The default is set to a viewport of 700px.
Top Offsets has settings for Items and Sections. Each is set to 80px by default. This means that when an Item is clicked, both the Section and the Items jump to a position 80px below the top of the browser window. I find that 80px is fine for the navigation, but set Sections to 0px so that the new section arrives seamlessly at the top of the window. I couldn't take the time to animate the screenshot above, so I added a second instance of the navigation Items – you get the idea.

The Rails Sections padding default to Bottom 5%, Left 10%. In the screenshot above, I removed both and padded the columns stack instead to allow the sections to adjoin seamless and the images to expand to full width.
Item List gives you four Colour settings for the navigation buttons – Static, Hover Lines and Current [Active]. The same settings are also available for Item Text and Item Icons.

Rails Item

Once you've worked your way through all the above settings, your navigation should blend seamlessly with your theme. All that remains is to add the navigation text and, if required, an Icon to each button.

To do so, simply click on the button and a new settings panel will be displayed. Add your Item Name, click Font Awesome Icon (if required), add a Top Separator (or not), and, if you choose to do so, add a link to an external page.
Yes, by clicking the + button in the Rails Item stack, you can add further buttons and link them to external pages!
The final Rail Item settings allow you to format the dividing line and the Font Awesome icons, if you've added them.

When you've added content to your Rails Section, you can format each section individually by clicking it and then returning to the settings panel. The panel contains Section Colours for the Background, Text, Links and [link] Hover. The Background may be set to Transparent and there is a checkbox to let the RW theme override the Section colours.

To add further sections, click the Rails stack + button to add a new child stack. You will also need to add a new child stack to the items stack – the new button is automatically linked to the new Section.

Single Page websites aren't going to go out of fashion any time soon and Rails is currently the simplest method of building them with any RapidWeaver theme you care to choose — and it even looks great.



blog comments powered by Disqus

Links to the developers ® All trademarks cited on this page are the property of their respective owners.

Subscribe to Ninja News
or ask a question

Hi, I’m the Ninja Bot. What’s your name?
image/svg+xml
Nice to meet you, [1-1]. Could you tell me your mail address?
image/svg+xml
[1-1], would you like to subscribe to the monthly Ninja Newsletter?

Yes, I would like to receive your monthly newsletter.

No thanks, I’m good for now. I have a different issue.

image/svg+xml
Thanks for your support, [1-1]. Is there anything else I can do for you?
image/svg+xml

[1-1], thanks for subscribing. If you made a further request, I’ll get back to you – typically within 24 hrs.

image/svg+xml
Name: [1-1] [1-2]
Email; [2]

Contacted you via the Siphon form at Ninja News.

I would like to subscribe to the Ninja Newsletter

Message

[4]
I’m sorry tohear that, [1-1]. How may I help you then today?
image/svg+xml

[1-1], thanks for contacting me. I’ll review your mail, and get back to you – typically within 24 hrs.

image/svg+xml
Name: [1-1] [1-2]
Email; [2]

Contacted you via the Siphon form at Ninja News.

I don’t want to subscribe to the Ninja Newsletter right now.

Message

[6]

Thanks again for contacting us. Your request was successfully submitted.

Contact Information

rjh logo

rjh web design

265 Moo 2
Mae Na Toeng Nai, Pai
Mae Hong Son
Thailand 58130

About Us

We design websites and print-products for small businesses at reasonable prices. We specialise in Responsive Web Design.

Legal

This site uses Cookies to determine the best method of display in combination with your browser.
We do not harvest or sell personal information.
© rjh web design 2010—17

Powered by rjh-design

This website was built with loving care on a Mac using Foundation. For more information, contact me.

Don’t miss a post!

Sign up for our monthly newsletter.

A monthly digest of all the latest updates from our RapidWeaver blog, keeping you up to date with the hottest new stacks and themes.

View previous campaigns.

Subscribe to the Ninja Newsletter

* indicates required