From aff0c2b96eb6b95659a82604fbd94c34b011e775 Mon Sep 17 00:00:00 2001 From: miu-cz <0151300@gmail.com> Date: Thu, 27 Jun 2024 19:58:05 +0200 Subject: [PATCH] feat: add players objects --- Yandex/index.html | 4 +- .../src/autor-resourse/autor-footer-script.js | 116 +++++++++--------- Yandex/src/css/main.css | 5 + Yandex/src/css/main.css.map | 2 +- Yandex/src/css/main.scss | 20 +++ Yandex/src/js/players.js | 42 ++++++- 6 files changed, 128 insertions(+), 61 deletions(-) diff --git a/Yandex/index.html b/Yandex/index.html index cbf75b2..faed07a 100644 --- a/Yandex/index.html +++ b/Yandex/index.html @@ -742,7 +742,9 @@

Участники турнира

-
+
+ player foto +
diff --git a/Yandex/src/autor-resourse/autor-footer-script.js b/Yandex/src/autor-resourse/autor-footer-script.js index 042deff..54462ea 100644 --- a/Yandex/src/autor-resourse/autor-footer-script.js +++ b/Yandex/src/autor-resourse/autor-footer-script.js @@ -1,10 +1,10 @@ // ### my CSS -const head = document.getElementsByTagName('head')[0]; -const linkAutor = document.createElement('link'); -const linkNormaliz = document.createElement('link'); +const head = document.getElementsByTagName("head")[0]; +const linkAutor = document.createElement("link"); +const linkNormaliz = document.createElement("link"); -linkAutor.rel = 'stylesheet'; -linkAutor.href = 'src/autor-resourse/autor-footer-style.css'; +linkAutor.rel = "stylesheet"; +linkAutor.href = "src/autor-resourse/autor-footer-style.css"; // linkNormaliz.rel = 'stylesheet'; // linkNormaliz.href = 'src/autor-resourse/my-normaliz-style-min.css'; @@ -15,80 +15,80 @@ head.appendChild(linkAutor); // ### my FOOTER const footerContent = { authorDescription: { - text: "Coded by MIU :: ", - links: [ + text: "Coded by MIU :: ", + links: [ + { + url: "https://mehal.my.canva.site", + text: "business card", + }, + { + url: "https://sites.google.com/view/zivotopis-miu/kdo-jsem", + text: "CV", + }, + ], + }, + + socialLinks: [ { - url: "https://mehal.my.canva.site", - text: "business card", + platform: "Canva", + url: "https://mehal.my.canva.site", + icon: `smm-ico`, + title: "Business card", }, { - url: "https://sites.google.com/view/zivotopis-miu/kdo-jsem", - text: "CV", - }, - ], - }, - - socialLinks: [ - { - platform: "Canva", - url: "https://mehal.my.canva.site", - icon: `smm-ico`, - title: "Business card", - }, - { - platform: "Facebook", - url: "https://www.facebook.com/mehaligor.cz", - icon: ` + platform: "Facebook", + url: "https://www.facebook.com/mehaligor.cz", + icon: ` `, - title: "Facebook", - }, - { - platform: "Github", - url: "https://github.com/MIU-cz", - icon: ` + title: "Facebook", + }, + { + platform: "Github", + url: "https://github.com/MIU-cz", + icon: ` `, - title: "Github", - }, - { - platform: "LinkedIn", - url: "https://www.linkedin.com/in/miu-cz", - icon: ` + title: "Github", + }, + { + platform: "LinkedIn", + url: "https://www.linkedin.com/in/miu-cz", + icon: ` `, - title: "Linked In", - }, - { - platform: "Discord", - url: "https://discord.gg/QBChbqsK", - icon: ` + title: "Linked In", + }, + { + platform: "Discord", + url: "https://discord.gg/QBChbqsK", + icon: ` `, - title: "Discord", - }, + title: "Discord", + }, ], target: "_blank", - }; - - const addFooter = () => { - let footerBlock = document.getElementById('autor'); - +}; + +const addFooter = () => { + let footerBlock = document.getElementById("autor"); + let footerHTML = `
${footerContent.authorDescription.text} `; for (const link of footerContent.authorDescription.links) { - footerHTML += ` + footerHTML += ` ${link.text} `; } @@ -98,7 +98,7 @@ const footerContent = {
`; - - footerBlock.classList.add('autor'); + + footerBlock.classList.add("autor"); footerBlock.innerHTML = footerHTML; - }; - - addFooter(); +}; + +addFooter(); diff --git a/Yandex/src/css/main.css b/Yandex/src/css/main.css index c135cb8..1c85f85 100644 --- a/Yandex/src/css/main.css +++ b/Yandex/src/css/main.css @@ -874,6 +874,11 @@ position: relative; } +.card_img { + width: -moz-max-content; + width: max-content; +} + .player_btns .slider_btn, .player_btns .pug_btn_item { background: #313131; color: #ffffff; diff --git a/Yandex/src/css/main.css.map b/Yandex/src/css/main.css.map index e11157e..e953b5f 100644 --- a/Yandex/src/css/main.css.map +++ b/Yandex/src/css/main.css.map @@ -1 +1 @@ -{"version":3,"sources":["_Fonts.scss","main.css","_Theme.scss","_Animation.scss","main.scss"],"names":[],"mappings":"AAAA;EACI,wBAAA;EACA,oEAAA;EACA,mEAAA;EACA,wEAAA;EACA,qEAAA;EACA,sEAAA;EACA,uEAAA;EACA,gFAAA;ACCJ;ADEA;EACI,2BAAA;EACA,yEAAA;EACA,+EAAA;EACA,wEAAA;EACA,8EAAA;EACA,0EAAA;EACA,yEAAA;EACA,+EAAA;EACA,2EAAA;ACAJ;ACVA;EFyBI,wBAZI;EAaJ,kBEzBmC;EF0BnC,gBE1BiD;EF2BjD,kBARM;EASN,sBARK;EASL,iBE7B2D;EF8B3D,cExCW;EAWd,yBAAA;ADkBD;;ACfA;EFoBI,2BAXI;EAYJ,eEpBsB;EFqBtB,gBARK;EASL,kBARM;EASN,sBARK;EASL,iBExBiC;EFyBjC,cExCW;EAgBd,yBAAA;ADwBD;ACtBC;EAJD;IAKE,eAAA;EDyBA;AACF;;ACtBA;EFWI,wBAZI;EAaJ,eEXmC;EFYnC,gBARK;EASL,kBARM;EASN,sBARK;EASL,iBEf8C;EFgB9C,cExCW;EAyBd,gBAAA;AD+BD;AC7BC;EAJD;IAKE,kBAAA;EDgCA;AACF;;AC7BA;EFEI,wBAZI;EAaJ,eEFmC;EFGnC,gBEH8C;EFI9C,kBARM;EASN,sBARK;EASL,iBENwD;EFOxD,cExCW;EAkCd,kBAAA;ADsCD;;ACnCA;EFHI,2BAXI;EAYJ,eEGsB;EFFtB,gBARK;EASL,kBARM;EASN,sBARK;EASL,iBEDiC;EFEjC,cEzCW;EAwCd,yBAAA;AD4CD;AC1CC;EAJD;IAKE,eAAA;ED6CA;AACF;;AC1CA;EFZI,2BAXI;EAYJ,eEYsB;EFXtB,gBARK;EASL,kBARM;EASN,sBARK;EASL,iBEQiC;EFPjC,cExCW;EAgDd,yBAAA;ADmDD;ACjDC;EAJD;IAKE,eAAA;EDoDA;AACF;AClDC;EACC,gBAAA;EACA,cAtDU;EA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ACA,mBAAA;EACA,uBAAA;AH2PJ;AGxPG;EAGC,gBAAA;AHwPJ;AGrPG;EACC,uBAAA;AHuPJ;AGhPG;EArCD;IAsCE,wBAAA;IACA,mBAAA;IACA,gBAAA;EHmPF;EGjPE;IACC,gBAAA;EHmPH;EGhPE;IACC,gBAAA;EHkPH;EG/OE;IACC,mBAAA;IACA,gBAAA;EHiPH;EG/OG;IACC,UAAA;EHiPJ;AACF;;AGzOA;EACC,gBAAA;EACA,aAAA;EACA,mBAAA;EACA,iBAAA;EACA,uBAAA;EACA,SAAA;AH4OD;AG1OC;EARD;IASE,aAAA;EH6OA;AACF;;AG1OA;EACC,aAAA;EACA,WAAA;EACA,YAAA;EAEA,uBAAA;EACA,mBAAA;EACA,kBAAA;EACA,gBAAA;EACA,iCAAA;EACA,cFplBc;ADg0Bf;AG1OC;EACC,mBFtlBa;ADk0Bf;;AGxOA;EACC,aAAA;EACA,WAAA;EACA,mBAAA;EACA,mBAAA;EACA,QAAA;AH2OD;;AGxOA;EAEC,WAAA;EACA,YAAA;EAEA,iCAAA;AHyOD;AGvOC;EACC,mBF1mBa;ADm1Bf;;AGrOA;EACC,mBF/mBc;ADu1Bf;;AGpOA;EACC,kBAAA;AHuOD;AGrOC;EAHD;IAIE,kBAAA;EHwOA;AACF;AGtOC;EACC,kBAAA;AHwOF;;AGnOC;EACC,mBFjoBa;EEkoBb,cFnoBa;ADy2Bf;AGpOE;EACC,iCAAA;AHsOH;;AG9NA;EACC,kBAAA;AHiOD;AG/NC;EAHD;IAIE,kBAAA;EHkOA;AACF;;AG/NA;EACC,WAAA;EACA,kBAAA;EACA,yBFjpBa;ADm3Bd","file":"main.css"} \ No newline at end of file +{"version":3,"sources":["_Fonts.scss","main.css","_Theme.scss","_Animation.scss","main.scss"],"names":[],"mappings":"AAAA;EACI,wBAAA;EACA,oEAAA;EACA,mEAAA;EACA,wEAAA;EACA,qEAAA;EACA,sEAAA;EACA,uEAAA;EACA,gFAAA;ACCJ;ADEA;EACI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/OE;IACC,mBAAA;IACA,gBAAA;EHiPH;EG/OG;IACC,UAAA;EHiPJ;AACF;;AGzOA;EACC,gBAAA;EACA,aAAA;EACA,mBAAA;EACA,iBAAA;EACA,uBAAA;EACA,SAAA;AH4OD;AG1OC;EARD;IASE,aAAA;EH6OA;AACF;;AG1OA;EACC,aAAA;EACA,WAAA;EACA,YAAA;EAEA,uBAAA;EACA,mBAAA;EACA,kBAAA;EACA,gBAAA;EACA,iCAAA;EACA,cFplBc;ADg0Bf;AG1OC;EACC,mBFtlBa;ADk0Bf;;AGxOA;EACC,aAAA;EACA,WAAA;EACA,mBAAA;EACA,mBAAA;EACA,QAAA;AH2OD;;AGxOA;EAEC,WAAA;EACA,YAAA;EAEA,iCAAA;AHyOD;AGvOC;EACC,mBF1mBa;ADm1Bf;;AGrOA;EACC,mBF/mBc;ADu1Bf;;AGpOA;EACC,kBAAA;AHuOD;AGrOC;EAHD;IAIE,kBAAA;EHwOA;AACF;AGtOC;EACC,kBAAA;AHwOF;;AG9NA;EACC,uBAAA;EAAA,kBAAA;AHiOD;;AGnNC;EACC,mBFrpBa;EEspBb,cFvpBa;AD62Bf;AGpNE;EACC,iCAAA;AHsNH;;AG9MA;EACC,kBAAA;AHiND;AG/MC;EAHD;IAIE,kBAAA;EHkNA;AACF;;AG/MA;EACC,WAAA;EACA,kBAAA;EACA,yBFrqBa;ADu3Bd","file":"main.css"} \ No newline at end of file diff --git a/Yandex/src/css/main.scss b/Yandex/src/css/main.scss index bedcfb4..5c593f3 100644 --- a/Yandex/src/css/main.scss +++ b/Yandex/src/css/main.scss @@ -638,6 +638,26 @@ } } +.players_cards_wraper { +} + +.player_card { +} + +.card_img { + width: max-content; + +} + +.card_name { +} + +.card_dsc { +} + +.card_btn { +} + .player_btns { .slider_btn { background: $c-main-black; diff --git a/Yandex/src/js/players.js b/Yandex/src/js/players.js index 3006a7d..b98080c 100644 --- a/Yandex/src/js/players.js +++ b/Yandex/src/js/players.js @@ -1 +1,41 @@ -const playerCards = document.querySelector(".players_cards_wraper"); +const playersCards = document.querySelector(".players_cards_wraper"); +const playerCard = { + mainFoto: "src/img/main/img-player.png", + mainDescription: "Чемпион мира по шахматам", + specDescription: "Гроссмейстер", + player: [ + {id: "hoze", name: "Хозе-Рауль Капабланка"}, + {id: "emmanuil", name: "Эммануил Ласкер"}, + {id: "alex", name: "Александр Алехин"}, + {id: "aron", name: "Арон Нимцович"}, + {id: "rihard", name: "Рихард Рети"}, + {id: "ostap", name: "Остап Бендер"} + ] +}; + +const addPlayers = () => { + let cardsHTML = "", + dsc = playerCard.mainDescription; + + for (let player of playerCard.player) { + if (player.id == "ostap") { + dsc = playerCard.specDescription; + } + cardsHTML += ` + + `; + } + + playersCards.innerHTML = cardsHTML; +}; + +window.addEventListener("load", addPlayers); \ No newline at end of file