connect us

connect us

html

<div class="container">
    <a href="#"><i class="fa fa-twitter fa-fw"></i></a>
    <a href="#"><i class="fa fa-github fa-fw"></i></a>
    <a href="#"><i class="fa fa-codepen fa-fw"></i></a>
    <a href="#"><i class="fa fa-envelope fa-fw"></i></a>
    <img src="images/logo.jpg" alt="">
</div>

css

* {
    margin: 0;
    padding: 0;
    direction: rtl;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

body{
    font-family: 'Cairo', sans-serif;
    font-weight: 100;
    background-color: #262626; 
    width:100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
}

.container {
    position: relative;
    background-color: #262626;
    border: 4px solid #161616;
    height: 350px;
    width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.container a {
    position: absolute;
    text-align: center;
    width: 80px;
    height: 80px;
    background-color: #161616;
    border-radius: 50%;
    padding:20px;
    color: #fff;
    font-size: 2rem;
}

.container a:first-of-type {
    top: -40px;
    left: -40px;
}

.container a:nth-of-type(2) {
    top: -40px;
    right: -40px;
}

.container a:nth-of-type(3) {
    bottom: -40px;
    right: -40px;
}

.container a:last-of-type {
    bottom: -40px;
    left: -40px;
}

.container img  {
    width: 180px;
    height: 180px;
    border-radius: 50%;
}
مصدر الاكواد