Basic Website with Tina4

Tina4 uses Twig template engine, so creating a website is one of the easiest things you can do.
Start off by creating an index.twig file in the src/templates folder. If you hit up the default URL http://localhost:7145 then you will see a blank page.

You can then flesh out your index.twig file with valid HTML. The beauty of Twig is you can include other files, for example a header or footer. The example below illustrates this.

<!DOCTYPE html>
<html lang="en">
%include "snippets/header.twig"%}
%include "snippets/body.twig"%}
{%include "snippets/footer.twig"%}

Here's an example of what you would include in your header twig file:

    <title>Your Website Title</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Stylesheet and Bootstrap -->
    <link rel="stylesheet" href="">
    <link rel="stylesheet" href="css/stylesheet.css">

    <script src=""></script>
    <script src=""></script>
    <script src=""></script>

Here's an example of what you would include in your body twig file:

    <div class="container-fluid text-center">
    <div class=row">
    <div class="container">
            <div class="row">
                <div class="col-sm-12 col-lg-6">
                    <h1>I made this with Tina4</h1>
                <div class="col-sm-12 col-lg-6">
                    <h3>Its really easy</h3>
                    <p>Cant believe it!!!</p>
<div class="row">
    <div class="container" >
        <div class="row justify-content-center">
            <div class="col-12 col-lg-7">
                <h2 class="bg-dark text-white">About Us</h2>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate faucibus tortor non sollicitudin. Cras ornare felis at sapien eleifend cursus. Sed ullamcorper placerat ex ullamcorper bibendum. Donec vitae metus non metus pulvinar porttitor id nec lacus. Quisque condimentum tortor nunc, id viverra nisl gravida sed. Praesent laoreet elementum placerat. Praesent elementum nunc quis efficitur porttitor. Cras mollis mattis ligula. Aliquam commodo enim arcu, ut sagittis dui finibus non. Maecenas ut arcu mauris.</p>
            <div class="col-sm-12 col-lg-5">
                    <div class="bg-dark text-white mb-4">
                        <h4>Our products include:</h4>
                    <div class="col-lg-12 col-sm-6 p-0">
                        <ul class="list-group list-group-flush">
                            <li class="list-group-item">Bacon</li>
                            <li class="list-group-item">Eggs</li>
                            <li class="list-group-item">Mushrooms</li>
                            <li class="list-group-item">Toast</li>
                            <li class="list-group-item">Coffee</li>

Here's an example of what you would include in your footer twig file:

  <a href="">Tina4</a>

If everything ran smoothly, this is what your page should look like as an example:

You have just created a landing page for your website using Tina4. Please feel free to reach out to the developers if you have any questions or suggestions.

Powered by ComboStrap