<button class="button button--flex">
Sign up
<svg t="1661330224120" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2330" width="200" height="200">
<path d="M914.285714 548.571429q0 30.857143-21.142857 52l-372 372q-22.285714 21.142857-52 21.142857-29.142857 0-51.428571-21.142857l-42.857143-42.857143q-21.714286-21.714286-21.714286-52t21.714286-52l167.428571-167.428572H140q-29.714286 0-48.285714-21.428571T73.142857 585.142857V512q0-30.285714 18.571429-51.714286T140 438.857143h402.285714L374.857143 270.857143q-21.714286-20.571429-21.714286-51.428572t21.714286-51.428571l42.857143-42.857143q21.714286-21.714286 51.428571-21.714286 30.285714 0 52 21.714286l372 372q21.142857 20 21.142857 51.428572z" p-id="2331"></path>
</svg>
</button>
<button class="button button--grid">
Sign up
<svg t="1661330224120" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2330" width="200" height="200">
<path d="M914.285714 548.571429q0 30.857143-21.142857 52l-372 372q-22.285714 21.142857-52 21.142857-29.142857 0-51.428571-21.142857l-42.857143-42.857143q-21.714286-21.714286-21.714286-52t21.714286-52l167.428571-167.428572H140q-29.714286 0-48.285714-21.428571T73.142857 585.142857V512q0-30.285714 18.571429-51.714286T140 438.857143h402.285714L374.857143 270.857143q-21.714286-20.571429-21.714286-51.428572t21.714286-51.428571l42.857143-42.857143q21.714286-21.714286 51.428571-21.714286 30.285714 0 52 21.714286l372 372q21.142857 20 21.142857 51.428572z" p-id="2331" fill="currentColor"></path>
</svg>
</button>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
font-family: "Exo", Arial, sans-serif;
background-color: #557;
color: #fff;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
gap: 2rem;
padding: 1rem;
align-content: center;
align-items: center;
justify-items: center;
}
.button {
border: none;
background: #ff2f93;
border-radius: 5px;
font-size: 22px;
font-weight: 500;
box-shadow: 3px 10px 20px 0px rgb(31 2 23 / 0.3);
cursor: pointer;
padding: 0.5em 1em;
align-items: center;
gap: 0.5em;
overflow: hidden;
resize: horizontal;
white-space: nowrap;
justify-content: center;
}
.button svg {
width: 1em;
height: 1em;
}
.button--flex {
display: inline-flex;
flex-wrap: wrap;
}
.button--grid {
display: inline-grid;
grid-template-columns: 1fr auto;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.