Здесь делается вжух

test skadi

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » test skadi » testing too » соцсеть


соцсеть

Сообщений 1 страница 4 из 4

1

[html]
<style>
.m-socmed {
display: grid;
    grid-template-columns: auto auto;
    gap: 24px;
    justify-content: flex-start;
}
.m-socmed-form {
display: grid;
    gap: 10px;
    align-content: center;
    width: 350px;
}

.mgram {
padding: 14px 24px 44px;
    background: rgb(var(--color-pun2));
    border: var(--bord);
    border-radius: 20px;
    width: 550px;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    box-sizing: border-box;
    flex-direction: column;
}

.mgram-info {
display: grid;
    gap: 5px 15px;
    grid-template-columns: 70px auto 1fr;
    align-items: center;
}

.socmed-input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.socmed-input > label {
font-weight: 600;
    font-size: 11px;
    color: rgb(var(--acc3), .85);
    margin-bottom: 4px;
    text-align: center;
}

.mgram-av {
    grid-row: 1 / 3;
    position: relative;
    width: 60px;
    height: 60px;
    padding: 2px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid rgb(var(--acc3));
    overflow: hidden;
}

.mgram-av img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mgram-user {
    color: rgb(var(--grey1), .7);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
    align-self: end;
    max-width: 400px;
    overflow: hidden;
    grid-column: 2 / 4;
}

.mgram-user:before {
content: '@';
}

.mgram-loc {
align-self: start;
    font-size: 11px;
    text-transform: lowercase;
    color: rgb(var(--grey3));
    padding: 4px 0;
    grid-column: 2;
    line-height: 1;
}

.mgram-loc:before, .mgram-music:before {
    font-family: var(--fa);
    margin-right: 4px;
    opacity: 0.6;
}

.mgram-loc:before {
    content: "\f3c5";
}

.mgram-music:before {
    content: "\f025";
}

.mgram-music {
align-self: start;
    padding: 4px 14px;
    border-radius: 10px;
    background: rgb(var(--grey3), .4);
    width: fit-content;
    font-size: 10px;
    grid-column: 3;
    grid-row: 2;
    line-height: 1;
}

.mgram-pic img {
border-radius: 24px;
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border: var(--bord);
}

.mgram-comm {
max-width: 400px;
padding: 0 10px;
}

#socmedComm {
width: 100%;
    min-height: 50px;
    resize: none;
    padding: 8px;
}

/* =========================
   EMOJI PANEL
========================= */

.socmed-emojis {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    height: 120px;
    overflow-y: scroll;
    gap: 5px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgb(218, 218, 218);
    border-radius: 12px;
    border: var(--bord);
    box-sizing: border-box;
}

.socmed-emoji {
display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 !important;
    padding: 4px !important;
    border: 0;
    background: transparent !important;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.socmed-emoji:hover {
    background: rgb(var(--grey3), .3);
    transform: scale(1.08);
}

.socmed-emoji:active {
    transform: scale(.94);
}

.socmed-emoji img {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
}
</style>
<div class="m-socmed">
<!-- ПРЕВЬЮ ПОСТА -->
<div class="m-socmed-prev">
<div class="mgram">
<!-- БЛОК ОБ АВТОРЕ-->
<div class="mgram-info">

    <div class="mgram-av">
        <img
            id="socmedPreviewAvatar"
            src="https://placehold.co/100x100">
    </div>

    <div
        class="mgram-user"
        id="socmedPreviewUsername">
        username
    </div>

    <div
        class="mgram-loc"
        id="socmedPreviewLocation">
        location
    </div>

    <div
        class="mgram-music"
        id="socmedPreviewMusic">
        artist — song name
    </div>

</div>

<div class="mgram-pic">
    <img
        id="socmedPreviewPhoto"
        src="https://placehold.co/400x300">
</div>

<div
    class="mgram-comm"
    id="socmedPreviewComm">
    комментарий по желанию
</div>
</div></div>

<!-- БЛОК ЗАПОЛНЕНИЯ-->
<div class="m-socmed-form">

    <!-- АВАТАР -->
    <div class="socmed-input">
        <label>аватар (от 100х100)</label>
        <input
            type="text"
            id="socmedAvatar"
            placeholder="ссылка на аватар">
    </div>

    <!-- USERNAME -->
    <div class="socmed-input">
        <label>@username</label>
        <input
            type="text"
            id="socmedUsername"
            placeholder="username">
    </div>

    <!-- ЛОКАЦИЯ -->
    <div class="socmed-input">
        <label>локация</label>
        <input
            type="text"
            id="socmedLocation"
            placeholder="cradle creek">
    </div>

    <!-- МУЗЫКА -->
    <div class="socmed-input">
        <label>музыка</label>
        <input
            type="text"
            id="socmedMusic"
            placeholder="artist — song name">
    </div>

    <!-- ФОТО -->
    <div class="socmed-input">
        <label>фото (ширина от 500px)</label>
        <input
            type="text"
            id="socmedPhoto"
            placeholder="ссылка на фото">
    </div>

    <!-- КОММЕНТАРИЙ -->
  <div class="socmed-input">

    <label>комментарий</label>

<textarea id="socmedComm" placeholder="комментарий" ></textarea>

    </div>

    <!-- ПАНЕЛЬ СМАЙЛИКОВ -->

    <div class="socmed-emojis" id="socmedEmojis">
    </div>
    <!-- КНОПКА -->
    <button type="button" id="socmedCopy">скопировать код </button>
</div>

</div>
</div>

[/html]

[hideprofile]

0

2

[html]
<div class="mgram">

    <div class="mgram-info">

        <div class="mgram-av">
            <img src="https://64.media.tumblr.com/e237653287d3afdfa334bcdcaa5740b2/bc6ee73d19ae5ddc-10/s400x600/ff2b0b7b6fd4616ba1df32a1a2c79752eb1d7e68.pnj">
        </div>

        <div class="mgram-user">
            hey ranger
        </div>

        <div class="mgram-loc">
           
        </div>

        <div class="mgram-music">
           
        </div>

    </div>

    <div class="mgram-pic">
        <img src="https://i.pinimg.com/736x/bf/02/eb/bf02ebc95a3373fb6a9f6188ab2cfc5d.jpg">
    </div>

    <div class="mgram-comm">
        проверка
    </div>

</div>
[/html]

0

Перевести3

[html]
<div class="mgram">

    <div class="mgram-info">

        <div class="mgram-av">
            <img src="https://64.media.tumblr.com/e237653287d3afdfa334bcdcaa5740b2/bc6ee73d19ae5ddc-10/s400x600/ff2b0b7b6fd4616ba1df32a1a2c79752eb1d7e68.pnj">
        </div>

        <div class="mgram-user">
            hey ranger
        </div>

       

       

    </div>

    <div class="mgram-pic">
        <img src="https://i.pinimg.com/736x/bf/02/eb/bf02ebc95a3373fb6a9f6188ab2cfc5d.jpg">
    </div>
   

</div>
[/html]

0

Перевести4

[html]
<div class="mgram">

    <div class="mgram-info">

        <div class="mgram-av">
            <img src="https://64.media.tumblr.com/e237653287d3afdfa334bcdcaa5740b2/bc6ee73d19ae5ddc-10/s400x600/ff2b0b7b6fd4616ba1df32a1a2c79752eb1d7e68.pnj">
        </div>

        <div class="mgram-user">
            hey ranger
        </div>

       

       

    </div>

    <div class="mgram-pic">
        <img src="https://variety.com/wp-content/uploads/2023/05/023_FUBAR_OS_S1_E1_00_47_42_22R-1.jpg?w=1000&h=667&crop=1">
    </div>
   

</div>
[/html]

0


Вы здесь » test skadi » testing too » соцсеть


Рейтинг форумов | Создать форум бесплатно