Tlolela ho diteng tse ka sehloohong

Moqapi wa Letsatsi

Kenya Moqapi wa Letsatsi Websaeteng ya Hao

Moqapi wa Letsatsi e phatlalatsa ntho e ntjha letsatsi le leng le le leng. Aterese ya setshwantsho ha e fetohe, empa setshwantsho se ka morao ho yona sea fetoha, kahoo o kenya khoutu hang feela mme baeti ba hao ba bona ntho ya kajeno ka bo eona.

E sebetsa jwang

Letsatsi le leng le le leng setshwantsho se setjha se phatlalatswa atereseng e le nngwe e sa fetoheng. Leqephe la hao le laela aterese eo, kahoo le dula le bontsha ntho ya hajwale, mme ha motho a tobetsa baeti ba hao ba iswa ho Moqapi wa Letsatsi moo pale e felletseng e phatlalatsitsweng teng.

O batla script? Kenya setshelo se le seng le script e le nngwe: widget e taka setaele seo o se kgethang ka data-dotd-variant (image, cta kapa card), ka puo ya aterese ya script ha puo eo e fumaneha. Haeba o ke ke wa sebedisa di-script, sebedisa mofuta wa HTML wa variant e tshwanang.

Mofuta wa A: setshwantsho feela

Setshwantsho sa kajeno, se hokahantsweng le Moqapi wa Letsatsi. Kgetho e bobebe ka ho fetisisa.

Ponelopele e phelang

<a href="https://designeroftheday.com/st/" target="_blank" rel="noopener">
  <img src="https://competition.adesignaward.com/designer-of-the-day/today.png" alt="Setshwantsho sa Moqapi wa Letsatsi se hlahisang ramoralo ya ketekwang kajeno" loading="lazy" style="max-width:100%;height:auto">
</a>
<div data-dotd="designeroftheday.com" data-dotd-variant="image"></div>
<script async src="https://designeroftheday.com/feature.js?lang=st"></script>

Mofuta wa B: setshwantsho le mohoo wa ketso

Setshwantsho sa kajeno se nang le mohoo wa ketso ka tlase.

Ponelopele e phelang

<a href="https://designeroftheday.com/st/" target="_blank" rel="noopener" style="display:block;max-width:100%;color:inherit;text-decoration:none;text-align:center">
  <img src="https://competition.adesignaward.com/designer-of-the-day/today.png" alt="Setshwantsho sa Moqapi wa Letsatsi se hlahisang ramoralo ya ketekwang kajeno" loading="lazy" style="display:block;max-width:100%;height:auto;margin:0 auto">
  <span style="display:block;margin-top:.5em;font:600 15px/1.3 system-ui,sans-serif">Fumana Moqapi wa Letsatsi</span>
</a>
<div data-dotd="designeroftheday.com" data-dotd-variant="cta"></div>
<script async src="https://designeroftheday.com/feature.js?lang=st"></script>

Mofuta wa C: karete ya Bootstrap

Karete ya Bootstrap e nang le setshwantsho, sehlooho sa ntho e hlahiswang, serapa se sekgutshwane le konopo ya mohoo wa ketso. Leqephe la hao le hloka Bootstrap.

Ponelopele e phelang

<div class="card" style="max-width:24rem">
  <a href="https://designeroftheday.com/st/" target="_blank" rel="noopener"><img src="https://competition.adesignaward.com/designer-of-the-day/today.png" class="card-img-top" alt="Setshwantsho sa Moqapi wa Letsatsi se hlahisang ramoralo ya ketekwang kajeno" loading="lazy"></a>
  <div class="card-body">
    <h5 class="card-title">Moqapi wa Letsatsi</h5>
    <p class="card-text">A' Design Award e hlahisa moqapi ya talentehileng haholo kapa moahi wa maemo a hodimo letsatsi le leng le le leng, e le Moqapi wa Letsatsi, e hlahisa batho ba ka mora mosebetsi o kgethehileng wa boiqapelo, filosofi ya bona ya moralo, diprojeke tse hlokomehang le dikatlego.</p>
    <a href="https://designeroftheday.com/st/" class="btn btn-danger" target="_blank" rel="noopener">Fumana Moqapi wa Letsatsi</a>
  </div>
</div>
<div data-dotd="designeroftheday.com" data-dotd-variant="card"></div>
<script async src="https://designeroftheday.com/feature.js?lang=st"></script>

Kgetho ya 3: JSON

Bakeng sa bahlahisi ba software, di-app le tshebetso e iketsang. JSON e na le lebitso, tlhaloso, aterese ya setshwantsho, dilinke le letsatsi. Dikopo tsa cross-origin di a dumelleha.

fetch("https://designeroftheday.com/feature.json?lang=st")
  .then(function (r) { return r.json(); })
  .then(function (d) {
    // d.name, d.feature, d.paragraph, d.image, d.url, d.date ...
  });

Mohlala wa karabo

{
    "domain": "designeroftheday.com",
    "name": "Moqapi wa Letsatsi",
    "feature": "Moqapi wa Letsatsi",
    "paragraph": "A' Design Award e hlahisa moqapi ya talentehileng haholo kapa moahi wa maemo a hodimo letsatsi le leng le le leng, e le Moqapi wa Letsatsi, e hlahisa batho ba ka mora mosebetsi o kgethehileng wa boiqapelo, filosofi ya bona ya moralo, diprojeke tse hlokomehang le dikatlego.",
    "description": "Moqapi wa Letsatsi o hlahisa moqapi ya talentehileng haholo kapa moahi wa maemo a hodimo letsatsi le leng le le leng, o hlahisa batho ba kgabane ba ka mora mosebetsi o kgethehileng wa boiqapelo, maemo a bona a profeshenale, filosofi ya moralo, diprojeke tse hlokomehang le dikatlego tse amohetsweng ke A' Design Award and Competition e hlomphehang haholo.",
    "call_to_action": "Fumana Moqapi wa Letsatsi",
    "date": "2026-11-08",
    "language": "st",
    "image": "https://competition.adesignaward.com/designer-of-the-day/today.png",
    "image_alt": "Setshwantsho sa Moqapi wa Letsatsi se hlahisang ramoralo ya ketekwang kajeno",
    "url": "https://designeroftheday.com/st/",
    "feature_url": "https://competition.adesignaward.com/designer-of-the-day.html",
    "registry_url": "https://competition.adesignaward.com/designers-of-the-days.php",
    "embed_url": "https://designeroftheday.com/st/setshwantsho/"
}

Tse molemo ho di tseba

  • Boloka linke e potapotileng setshwantsho, e le hore baeti ba hao ba ka fumana pale e felletseng.
  • Sebedisa kamehla aterese ya setshwantsho e bontshitsweng ka hodimo mme o se ke wa boloka khopi, e le hore leqephe la hao le dule le ntjhafetse.
  • Setshwantsho se a ikamahanya: ha se ke se eba se seholo ho feta setshelo sa sona.
  • O hloka thuso kapa formate e ikgethang? Ka kopo ikopanye le rona.

Polelo ya Theho ya Letsatsi

Polelo ya Theho ya Letsatsi

DesignAdage