CARD_COLUMN (example is called SUBMARINE )

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

CARD_COLUMN (example is called SUBMARINE )

Postby Otto » Wed Sep 22, 2021 8:18 am

From FB - modharbour.club


dear friends, would you be so kind as to give an example of how to fill the bootstrap 4 -> card-columns from w3 school from database? I would need 4 columns: image, title, text and button. it would be great if you could show me how this is done...kind regards and thanks in advance ruth
Code: Select all  Expand view
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/.../css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/.../jquery/3.5.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/.../1.16.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/.../js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">




<div class="card-columns">
  <div class="card">
    <img class="card-img-top" src="img_avatar1.png" alt="Card image" style="width:100%">
    <div class="card-body">
      <h4 class="card-title">John Doe</h4>
      <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p>
      <a href="#" class="btn btn-primary">See Profile</a>
    </div>
  </div>
    <div class="card">
    <img class="card-img-top" src="img_avatar1.png" alt="Card image" style="width:100%">
    <div class="card-body">
      <h4 class="card-title">John Doe</h4>
      <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p>
      <a href="#" class="btn btn-primary">See Profile</a>
    </div>
  </div>
    <div class="card">
    <img class="card-img-top" src="img_avatar1.png" alt="Card image" style="width:100%">
    <div class="card-body">
      <h4 class="card-title">John Doe</h4>
      <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p>
      <a href="#" class="btn btn-primary">See Profile</a>
    </div>
  </div>
    <div class="card">
    <img class="card-img-top" src="img_avatar1.png" alt="Card image" style="width:100%">
    <div class="card-body">
      <h4 class="card-title">John Doe</h4>
      <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p>
      <a href="#" class="btn btn-primary">See Profile</a>
    </div>
  </div>
    <div class="card">
    <img class="card-img-top" src="img_avatar1.png" alt="Card image" style="width:100%">
    <div class="card-body">
      <h4 class="card-title">John Doe</h4>
      <p class="card-text">Some example text some example text. John Doe is an architect and engineer</p>
      <a href="#" class="btn btn-primary">See Profile</a>
    </div>
  </div>
  </div>
 </div>
</body>
</html>
Last edited by Otto on Wed Sep 22, 2021 9:24 am, edited 1 time in total.
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: CARD_COLUMN

Postby Otto » Wed Sep 22, 2021 8:18 am

********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: CARD_COLUMN

Postby Otto » Wed Sep 22, 2021 9:22 am

********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: CARD_COLUMN (example is called SUBMARINE )

Postby Otto » Wed Sep 22, 2021 6:34 pm

Project name "SUBMARINE"
template for a web page
data comes from a DBF file
bootstrap 4 -> card-columns from w3 school
added a bs4 w3school slider snippet
Live-Demo
https://www.modharbour.club/submarine/index.prg
Download
https://www.modharbour.club/submarine/submarine.zip
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 10 guests