data:p

 <?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html>


<html b:version="2" expr:dir="data:blog.languageDirection"

      xmlns="http://www.w3.org/1999/xhtml"

      xmlns:b="http://www.google.com/2005/gml/b"

      xmlns:data="http://www.google.com/2005/gml/data"

      xmlns:expr="http://www.google.com/2005/gml/expr">

<head>

  <meta charset="UTF-8"/>

  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

  <b:include data="blog" name="all-head-content"/>

  <title><data:blog.pageTitle/></title>

  <b:skin>

    <![CDATA[

      /* الأنماط العامة */

      body {

        font-family: Arial, sans-serif;

        margin: 0;

        padding: 0;

        background-color: #f5f5f5;

        color: #333;

      }

      .header {

        background-color: #FF0000;

        color: white;

        padding: 10px;

        text-align: center;

        font-size: 24px;

      }

      .navbar {

        background-color: #FF0000;

        overflow: hidden;

        padding: 10px;

      }

      .navbar a {

        float: left;

        display: block;

        color: white;

        text-align: center;

        padding: 14px 16px;

        text-decoration: none;

        font-size: 16px;

      }

      .navbar a:hover {

        background-color: #ddd;

        color: black;

      }

      /* تصميم صفحة القائمة بنمط الشبكة */

      .grid-content {

        display: grid;

        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

        gap: 20px;

        padding: 20px;

        max-width: 1200px;

        margin: 20px auto;

      }

      .grid-post {

        background-color: #fff;

        border: 1px solid #ddd;

        border-radius: 8px;

        box-shadow: 0 2px 4px rgba(0,0,0,0.1);

        text-align: center;

        transition: transform 0.3s ease;

        overflow: hidden;

      }

      .grid-post:hover {

        transform: scale(1.05);

      }

      .grid-post img {

        max-width: 100%;

        height: auto;

        border-radius: 8px 8px 0 0;

      }

      .grid-post h2 {

        margin: 10px;

        font-size: 16px;

        color: #333;

      }

      .grid-post p {

        margin: 10px;

        color: #555;

      }

      /* تصميم صفحة تفاصيل المنشور */

      .detail-content {

        max-width: 800px;

        margin: 20px auto;

        padding: 20px;

        background-color: #fff;

        border-radius: 8px;

        box-shadow: 0 2px 4px rgba(0,0,0,0.1);

      }

      .detail-content h1 {

        margin-bottom: 20px;

      }

      .detail-content .post-body {

        line-height: 1.6;

      }

      /* ذيل الصفحة */

      .footer {

        background-color: #333;

        color: white;

        text-align: center;

        padding: 10px;

        position: fixed;

        width: 100%;

        bottom: 0;

      }

    ]]>

  </b:skin>

</head>

<body>

  <!-- رأس الصفحة -->

  <div class="header">

    <h1><data:blog.title/></h1>

  </div>

  <!-- شريط التنقل -->

  <div class="navbar">

    <a href="/">الرئيسية</a>

    <a href="/category">الفئة</a>

    <a href="/about">من نحن</a>

    <a href="/contact">اتصل بنا</a>

  </div>

  

  <!-- ويدجت المدونة الذي يتحكم بعرض صفحة القائمة وصفحة تفاصيل المنشور -->

  <b:section id="main" class="main" showaddelement="yes">

    <b:widget id="Blog1" locked="true" title="المنشورات" type="Blog">

      

      <!-- قسم عرض صفحة القائمة -->

      <b:includable id="main">

        <div class="grid-content">

          <b:loop values="data:posts" var="post">

            <div class="grid-post">

              <a expr:href="data:post.url">

                <b:if cond="data:post.thumbnailUrl">

                  <img expr:src="data:post.thumbnailUrl" alt=""/>

                </b:if>

                <h2><data:post.title/></h2>

                <p><data:post.snippet/></p>

              </a>

            </div>

          </b:loop>

        </div>

      </b:includable>

      

      <!-- قسم عرض صفحة تفاصيل المنشور -->

      <b:includable id="item">

        <div class="detail-content">

          <article class="post">

            <header>

              <h1><data:post.title/></h1>

            </header>

            <section class="post-body">

              <data:post.body/>

            </section>

          </article>

        </div>

      </b:includable>

      

    </b:widget>

  </b:section>

  

  <!-- ذيل الصفحة -->

  <div class="footer">

    <p>© <data:blog.pageTitle/> - <data:blog.url/></p>

  </div>

</body>

</html>


تعليقات