I utilized an online converter to transform the HTML source code, which I copied and pasted, into a more refined format. The tool I used can be found at . Here is the result of the conversion:
<section className="centered-container">
<a className="link link--arrowed" href="#">Ceci est un magnifique bouton<svg className="arrow-icon" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
<g fill="none" stroke="#2175FF" stroke-width="1.5" stroke-linejoin="round" stroke-miterlimit="10">
<circle className="arrow-icon--circle" cx="16" cy="16" r="15.12"></circle>
<path className="arrow-icon--arrow" d="M16.14 9.93L22.21 16l-6.07 6.07M8.23 16h13.98"></path>
</g>
</svg></a>
</section>
I repeated this process with the SCSS code by using another online converter available at . Here is the CSS that was generated:
html, body {
background-color: #f5f5f5;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.centered-container {
background-color: #fff;
display: inline-flex;
padding: 4rem;
border-radius: 0.125rem;
border: 1px solid rgba(0, 0, 0, .1);
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, .04);
}
.link {
color: #2175ff;
cursor: pointer;
font-weight: 400;
text-decoration: none;
}
.link--arrowed {
display: inline-block;
height: 2rem;
line-height: 2rem;
}
.link--arrowed .arrow-icon {
position: relative;
top: -1px;
-webkit-transition: -webkit-transform 0.3s ease;
transition: -webkit-transform 0.3s ease;
transition: transform 0.3s ease;
transition: transform 0.3s ease, -webkit-transform 0.3s ease;
vertical-align: middle;
}
.link--arrowed .arrow-icon--circle {
transition: stroke-dashoffset 0.3s ease;
stroke-dasharray: 95;
stroke-dashoffset: 95;
}
.link--arrowed:hover .arrow-icon {
transform: translate3d(5px, 0, 0);
}
.link--arrowed:hover .arrow-icon--circle {
stroke-dashoffset: 0;
}
The conversion successfully worked in my favor.
``