Sharing Teknologi – Membuat Logo Google Menggunakan CSS Di WordPress . Apakah Sobat teknologi[dot]visitklaten[dot]com ingin Membuat Logo Google Di WordPress dengan hanya bermodal CSS.

Apabila Sobat ingin mempercantik tampilan website dengan animasi dengan hanya bermodal CSS. Maka salah satu metode ini patut dicoba untuk diterapkan dalam blog ataupun website yang dimiliki terutama CMS WordPress.
Dengan hanya bermodal HTML dan style CSS bisa membuat website lebih menarik. Selain itu untuk membuatnya juga cukup mudah.
CSS adalah singkatan dari Cascading Style Sheets yang terdapat 3 versi yaitu CSS1, CSS2, dan CSS3. CSS adalah suatu aturan untuk mengatur beberapa komponen di dalam sebuah web sehingga membuat lebih terstruktur dan seragam.
CSS3 merupakan versi CSS terbaru yang bisa melakukan banyak hal terkait desain website. CSS3 mampu membuat animasi warna sampai animasi 3D di halaman website.
CSS sangat membantu untuk mempercantik tampilan website seperti dengan memberi warna, box shadow, padding, margin, align, posisi, dan efek pengetikan atau typing effect .
Sebelumnya kami mengucapkan banyak terima kasih kepada para pengunjung teknologi[dot]visitklaten[dot]com yang rela meluangkan waktu untuk mengunjungi ataupun sekedar melihat-lihat web kami yang masih banyak kekurangan ini. Kami menerima segala masukkan dan kritikan agar web dan diri kami menjadi lebih baik lagi..
Di kesempatan kali ini, kami akan berbagi tutorial Membuat Logo Google Dengan Hanya Menggunakan CSS Tanpa Javascript.
NB: kami menggunakan tambahan CSS dari bootstrap.
Panduan Membuat Logo Google
Silakan Copas kode dibawah ini. Rekan-rekan bisa mengubahnya sesuai kebutuhan. Dalam kode dibawah ini kami menggunakan sistem shortcode yang bisa dipasang atau diletakkan di functions.php agar lebih mudah untuk dipasang dimanapun nantinya. Silakan nanti bisa disesuaikan dengan kebutuhan.
function google_logo() {
ob_start(); ?>
<div class="bg-white position-relative px-3 py-5 googlelogo-frame">
<section class="row m-0 align-items-top text-center">
<!-- START YouTube -->
<article class="col-6 col-md-3">
<div id="youtube"></div>
<div class="h5 mt-2">YouTube</div>
</article>
<!-- END YouTube -->
<!-- START Google Docs -->
<article class="col-6 col-md-3">
<div id="docs">
<span class="line" id="line1"></span>
<span class="line" id="line2"></span>
<span class="line" id="line3"></span>
<span class="line" id="line4"></span>
</div>
<div class="h5 mt-2">Google Docs</div>
</article>
<!-- END Google Docs -->
<!-- START Gmail -->
<article class="col-6 col-md-3">
<div id="gmail">
<span id="shadow"></span>
<span id="top"></span>
<span id="left"></span>
<span id="right"></span>
</div>
<div class="h5 mt-2">Gmail</div>
</article>
<!-- END Gmail -->
<!-- START Google Drive -->
<article class="col-6 col-md-3">
<div id="drive">
<span id="yellow"></span>
<span id="blue"></span>
<span id="green"></span>
</div>
<div class="h5 mt-2">Google Drive</div>
</article>
<!-- END Google Drive -->
</section>
</div>
<!--style CSS-->
<style>
/* Layout */
.googlelogo-frame #youtube,
.googlelogo-frame #docs,
.googlelogo-frame #gmail,
.googlelogo-frame #drive {
position: relative;
margin: 0 auto;
}
/* YouTube */
.googlelogo-frame #youtube {
background: #de473c;
border-radius: 14px / 21px;
width: 100px;
height: 70px;
}
.googlelogo-frame #youtube:before {
content: "";
border-top: 17px solid transparent;
border-bottom: 17px solid transparent;
border-left: 28px solid #f3f1e7;
width: 0;
height: 0;
position: absolute;
top: 50%;
left: 50%;
margin: -18px 0 0 -12px;
}
/* Google Docs */
.googlelogo-frame #docs {
background: #2d74ec;
border-radius: 8px 30px 8px 8px;
width: 88px;
height: 108px;
}
.googlelogo-frame #docs:before {
content: "";
border-bottom: 13px solid #a0c3ff;
border-top: 13px solid #fff;
border-left: 13px solid #a0c3ff;
border-right: 13px solid #fff;
position: absolute;
top: 0;
right: 0;
}
.googlelogo-frame #docs:after {
content: "";
border-bottom: 13px solid transparent;
border-top: 13px solid rgba(0, 0, 0, .3);
border-left: 13px solid transparent;
border-right: 13px solid rgba(0, 0, 0, .3);
position: absolute;
top: 26px;
right: 0;
}
.googlelogo-frame #docs .line {
background: #ebf2fe;
display: block;
width: 60px;
height: 6px;
margin: 0 14px;
position: absolute;
left: 0;
}
.googlelogo-frame #docs #line1 {
top: 35px;
}
.googlelogo-frame #docs #line2 {
top: 49px;
}
.googlelogo-frame #docs #line3 {
top: 63px;
}
.googlelogo-frame #docs #line4 {
top: 77px;
width: 34px;
}
/* Gmail */
.googlelogo-frame #gmail {
background: #e24f43;
border-radius: 7px;
height: 78px;
width: 108px;
overflow: hidden;
/* rounded corner fix */
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}
.googlelogo-frame #gmail #top {
border-left: 45px solid transparent;
border-right: 45px solid transparent;
border-top: 33px solid #f1f0e5;
content: "";
position: absolute;
left: 8px;
top: 0;
-webkit-backface-visibility: hidden;
}
.googlelogo-frame #gmail #left {
border-left: 40px solid #f1f0e5;
border-top: 29px solid rgba(255, 255, 255, 0);
border-bottom: 28px solid rgba(255, 255, 255, 0);
content: "";
display: block;
position: absolute;
left: 12px;
bottom: 2px;
z-index: 19;
}
.googlelogo-frame #gmail:after {
border-right: 42px solid rgba(255, 255, 255, 0);
border-left: 42px solid #adaca2;
border-top: 29px solid rgba(255, 255, 255, 0);
border-bottom: 29px solid #adaca2;
content: "";
display: block;
position: absolute;
left: 12px;
bottom: 0;
}
.googlelogo-frame #gmail:before {
border-left: 42px solid rgba(255, 255, 255, 0);
border-right: 42px solid #f1f0e5;
border-top: 29px solid rgba(255, 255, 255, 0);
border-bottom: 29px solid #f1f0e5;
content: "";
display: block;
position: absolute;
left: 12px;
bottom: 0;
z-index: 9;
}
.googlelogo-frame #gmail #shadow {
content: "";
display: block;
border-left: 55px solid transparent;
border-right: 55px solid rgba(0, 0, 0, .25);
border-top: 37px solid transparent;
border-bottom: 37px solid transparent;
position: absolute;
top: 12px;
right: 0;
z-index: 9;
}
/* Google Drive */
.googlelogo-frame #drive {
width: 112px;
height: 96px;
}
.googlelogo-frame #drive #yellow {
background: #fdd04a;
display: block;
width: 39px;
height: 62px;
transform: skew(30deg);
-webkit-transform: skew(30deg);
position: absolute;
top: 0;
right: 19px;
z-index: 9;
}
.googlelogo-frame #drive #blue {
background: #3f83f9;
display: block;
width: 74px;
height: 34px;
transform: skew(-30deg);
-webkit-transform: skew(-30deg);
position: absolute;
bottom: 0;
right: 10px;
z-index: 7;
}
.googlelogo-frame #drive #green {
background: #10a862;
display: block;
width: 38px;
height: 96px;
transform: skew(150deg);
-webkit-transform: skew(150deg);
position: absolute;
top: 0;
left: 9px;
z-index: 8;
}
.googlelogo-frame #drive #green:after {
content: "";
border-bottom: 40px solid #fff;
border-right: 45px solid transparent;
position: absolute;
left: -6px;
bottom: -1px;
}
</style>
<?php return ob_get_clean();
}
add_shortcode('googlelogo', 'google_logo');
Kemudian masukkan shortcode dibawah ini di tempat yang diinginkan. Jika berupa halaman atau post bisa langsung dicopas.
[*googlelogo*] //hilangkan tanda bintang
Namun jika berupa tag HTML atau php maka bisa menggunakan dibawah ini
<?php echo do_shortcode('[*googlelogo*]') ;?> //hilangkan tanda bintang
Tampilannya kurang lebih bisa dilihat dibawah ini.
Terima kasih telah mengunjungi website kami.
Share jika bermanfaat, jika ada kritik, tambahan, pertanyaan atau saran silakan hubungi kami atau silakan isi di kolom komentar.
Komentar