Jump to content

website-building 4


Recommended Posts

  • Moderators

In the past I've produced some commercial websites using SMS and the full rtl

 

But just now published the first multi-page fully responsive SMS generated website using the ribbon philosophy (see previous post)

 

For demo see partial copy here (anonymised, home page and first product page only)

 

The funny thing is that looking at the code, it's all very parametrised

Typical ribbon-code looks like


  var rev01  := TElement.Create('div', rev00, 'div',  props['review-title']);
      rev01.setProperty('color', '#8c7500');
      rev01.setProperty('font', 'italic 43px "Old Standard TT", sans-serif');
      rev01.setProperty('margin-bottom', '35px');
      rev01.setProperty('text-align', 'center');
etc...

with invocation code like

  props['review-title'] := 'Reviews';
  TReview.Create(nil, props);

and no other logic.

All of these parameters could easily be stored in a (cloud based) sql database

The database design would be very simple indeed : a table for the elements (type, parent, class, content and position) and a linked table for attributes and properties

 

To display an informational webpage, only the simplest of smart programs would be needed : read database, create elements, set attributes

without even the need for local unit code like the above snippet - the data has become the logic

and of course no pascal layout coding necessary, this has been farmed out to the browser

 

.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...