<div class="main-content printed">
  <div class="header"> <span>サンプルのフォームです※送信されません</span><span>サンプルのバッジです</span></div>
  <div class="id__wrapper">
    <div class="deco"></div>
    <label class="your-face" id="image-form" for="image-input">
      <input type="file" id="image-input"/>
      <div class="image-persuader">画像をアップロード</div><img id="imager" src="#" alt="Your Image Here"/>
    </label>
    <div class="name">
      <label>名前</label>
      <textarea class="full"></textarea>
    </div>
    <div class="job">
      <label>職種</label>
      <input class="full"/>
    </div>
    <div class="country">
      <label>住んでる所</label>
      <input class="full"/>
    </div>
    <div class="twitter">
      <label>Twitter</label>
      <input class="full" value="@"/>
    </div>
    <div class="codepen">
      <label>Codepen</label>
      <input class="full" value="@"/>
    </div>
    <div class="blood">
      <label>スキル</label>
      <div class="checkbox__wrapper">
        <div class="checkbox">
          <input id="design" type="checkbox" value="1" checked="checked"/>
          <label class="label-check" for="design">デザイン</label>
        </div>
        <div class="checkbox">
          <input id="front-end" type="checkbox" value="2"/>
          <label class="label-check" for="front-end">フロントエンド開発</label>
        </div>
        <div class="checkbox">
          <input id="product" type="checkbox" value="3"/>
          <label class="label-check" for="product">製品開発</label>
        </div>
        <div class="checkbox">
          <input id="other" type="checkbox" value="4"/>
          <label class="label-check" for="other">その他</label>
        </div>
      </div>
    </div>
  </div>
</div>
<aside class="context">
  <div class="explanation">
    <div class="js-switch">バッジを作成!</div>
  </div>
</aside>
<footer>Powered by<br><a href="https://twitter.com/meowlivia_" target="_blank"><i class="icon-social-twitter icons"></i></a><a href="https://github.com/oliviale" target="_blank"><i class="icon-social-github icons"></i></a><a href="https://dribbble.com/oliviale" target="_blank"><i class="icon-social-dribbble icons"></i></a></footer>
* {
  box-sizing: border-box;
}

body {
  background: #f6f6f6;
  font-family: "Prompt", sans-serif;
  overflow-x: hidden;
}

aside.context {
  text-align: center;
  color: #333;
  line-height: 1.7;
}
aside.context a {
  text-decoration: none;
  color: #333;
  padding: 3px 0;
  border-bottom: 1px dashed;
}
aside.context a:hover {
  border-bottom: 1px solid;
}
aside.context .explanation {
  max-width: 700px;
  margin: 2em auto 0;
}

footer {
  text-align: center;
  margin: 4em auto;
  width: 100%;
}
footer a {
  text-decoration: none;
  display: inline-block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: transparent;
  border: 1px dashed #333;
  color: #333;
  margin: 5px;
}
footer a:hover {
  background: rgba(255, 255, 255, 0.1);
}
footer a .icons {
  margin-top: 12px;
  display: inline-block;
  font-size: 20px;
}

.main-content {
  margin: 4em auto;
  max-width: 900px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  transition: all 0.1s ease-in-out;
}

.id__wrapper {
  display: grid;
  width: 100%;
  transition: width 0.2s ease-in-out;
  margin: auto;
  grid-gap: 15px;
  padding: 15px;
  background: rgba(76, 162, 205, 0.2);
  border: 2px solid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-template-areas: "your-face name name" "your-face job country" "your-face twitter codepen" "your-face blood blood";
}
.id__wrapper > div {
  transition: all 0.1s ease;
}

textarea::-webkit-scrollbar {
  display: none;
}

.header {
  grid-area: header;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 0;
  font: 600 28px "Prompt";
}
.header span:nth-child(2) {
  display: none;
}

.your-face {
  grid-area: your-face;
  background: #fff;
  border: 2px solid;
  cursor: pointer;
  position: relative;
  max-height: 300px;
  overflow: hidden;
}
.your-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
  position: relative;
  visibility: hidden;
}
.your-face .image-persuader {
  position: absolute;
  top: 40%;
  text-align: center;
  width: 70%;
  left: 15%;
}
.your-face input {
  display: none;
}

label {
  font: 600 16px "Prompt";
  margin-bottom: 2px;
  display: block;
  flex: 0 0 auto;
}

input.full, textarea.full {
  font: 400 20px "Prompt";
  border: none;
  padding: 10px;
  height: 40px;
  width: 100%;
  border-bottom: 2px solid;
  resize: none;
  overflow: visible;
  line-height: 1;
}
input.full:focus, textarea.full:focus {
  outline: none;
}

.name {
  grid-area: name;
}

.job {
  grid-area: job;
}

.country {
  grid-area: country;
}

.twitter {
  grid-area: twitter;
}

.codepen {
  grid-area: codepen;
}

.blood {
  grid-area: blood;
}

.checkbox__wrapper {
  display: flex;
  flex-wrap: wrap;
}
.checkbox__wrapper .checkbox {
  flex: 0 0 auto;
  padding-right: 30px;
  display: flex;
  align-items: center;
  margin: 2px 0;
}
.checkbox__wrapper input {
  visibility: hidden;
}
.checkbox__wrapper label {
  position: relative;
  padding-left: 5px;
  cursor: pointer;
}
.checkbox__wrapper label:before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  border: 2px solid;
  left: -20px;
  top: 2px;
}
.checkbox__wrapper input:checked + label:after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  background: #000;
  left: -16px;
  top: 6px;
}

.deco {
  position: absolute;
  background: linear-gradient(to top left, rgba(0, 242, 96, 0.8), rgba(76, 162, 205, 0.8));
  width: 1%;
  height: 170px;
  top: 20px;
  right: -165px;
  transform: rotate(55deg);
  opacity: 0;
}
.deco:before {
  content: "";
  background: linear-gradient(to top right, rgba(0, 242, 96, 0.6), rgba(76, 162, 205, 0.9));
  width: 1%;
  height: 120px;
  position: absolute;
  transform: rotate(140deg);
  bottom: 0px;
  margin-left: -140px;
}

.as-card {
  box-shadow: none;
  background: none;
  pointer-events: none;
}
.as-card .header span:nth-child(1) {
  display: none;
}
.as-card .header span:nth-child(2) {
  display: block;
}
.as-card .deco,
.as-card .deco:before {
  opacity: 1;
  width: 120%;
  animation: .8s deco-piece forwards;
}
.as-card .id__wrapper {
  width: 325px;
  overflow: hidden;
  margin: 2em auto 0;
  border-radius: 10px;
  border: none;
  background: #fff;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 85px 25px 65px;
  grid-gap: 5px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 60px repeat(4, auto);
  grid-template-areas: "your-face your-face" "name name" "job job" "country country" "blood blood" "twitter codepen";
}
.as-card .id__wrapper:before {
  content: "出席者";
  background: linear-gradient(to top right, #4ca2cd, #00f260);
  position: absolute;
  bottom: -0.5px;
  left: 0;
  width: 100%;
  padding: 10px 0;
  letter-spacing: 2px;
  font: 600 20px "Prompt";
  text-align: center;
  color: #fff;
}
.as-card .id__wrapper:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 80px;
  height: 12px;
  margin-left: -40px;
  background: #f8f8f8;
  border-radius: 20px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}
.as-card .id__wrapper input.full, .as-card .id__wrapper textarea.full {
  background: transparent;
  border: none;
  padding: 0;
}
.as-card .id__wrapper textarea.full {
  line-height: 0.9;
  height: 63px;
}
.as-card .id__wrapper .checkbox__wrapper {
  margin: 5px;
}
.as-card .id__wrapper .checkbox__wrapper label {
  padding: 0;
  font-size: 14px;
  color: #4ca2cd;
  margin: 0;
  padding-right: 10px;
}
.as-card .id__wrapper .checkbox__wrapper label:before, .as-card .id__wrapper .checkbox__wrapper label:after {
  content: none;
}
.as-card .id__wrapper .checkbox__wrapper input {
  display: none;
}
.as-card .id__wrapper .checkbox {
  padding-right: 0;
}
.as-card .id__wrapper .checkbox input:not(:checked),
.as-card .id__wrapper .checkbox input:not(:checked) + label {
  display: none;
  padding: 0;
}
.as-card .your-face {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  padding: 2px;
  border: 4px solid #4ca2cd;
}
.as-card .your-face img {
  border-radius: 50%;
}
.as-card .your-face .image-persuader {
  display: none;
}
.as-card .name label:not(.label-check),
.as-card .job label:not(.label-check),
.as-card .country label:not(.label-check),
.as-card .blood label:not(.label-check) {
  display: none;
}
.as-card .name textarea {
  font: 600 32px "Prompt";
  margin: 5px 5px 0;
  color: #374e71;
  position: relative;
}
.as-card .job input {
  color: #4ca2cd;
  font: 600 20px "Prompt";
  margin: 0 5px;
}
.as-card .country input {
  color: #4ca2cd;
  font: 400 18px "Prompt";
  margin: -15px 5px 10px;
}
.as-card .twitter,
.as-card .codepen {
  text-align: center;
  margin: 10px 0;
}
.as-card .twitter label,
.as-card .codepen label {
  font: 600 12px "Prompt";
  color: #999;
  margin: 0 0 -2px;
}
.as-card .twitter input,
.as-card .codepen input {
  font: 400 16px "Prompt";
  color: #374e71;
  text-align: center;
}

.js-switch {
  cursor: pointer;
  margin: 0 0 3em;
  display: inline-block;
  padding: 0.6em 1.5em;
  color: #374e71;
  border: 2px solid;
  font: 20px "Prompt";
  position: relative;
  top: 0;
  transition: 0.1s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.js-switch:hover {
  top: -3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

@keyframes deco-piece {
  0% {
    opacity: 0;
    width: 0%;
  }
  100% {
    opacity: 1;
    width: 120%;
  }
}
//toggle for form & badge
$(".js-switch").click(function() {
	$(".main-content").toggleClass("as-card");
});


//code for image preview
var reader = new FileReader();
reader.onload = function(e) {
	$("#imager").attr("src", e.target.result);
};

function readURL(input) {
	if (input.files && input.files[0]) {
		$("#imager").css("visibility",'visible');
		reader.readAsDataURL(input.files[0]);
	}
}

$("#image-input").change(function() {
	readURL(this);
});

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/simple-line-icons/2.4.1/css/simple-line-icons.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js