I created a Div using HTML/CSS to look like:
Below is the Code:
HTML:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<header>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none">
<polygon fill="white" points="0,0 0,100 100,100"/>
</svg>
</header>
<section>
</section>
</body>
CSS:
header {
position: relative;
height: 300px;
background-image: linear-gradient(#ff9d2f, #ff6126);
}
svg {
position: absolute;
bottom: 0;
width: 100%;
height: 150px;
}
Now, while I am merging this code in Lightning Component. It is giving me
Failed to save LEFCComponent.cmp: No COMPONENT named markup://svg found : [markup://c:LEFCComponent]: Source
Now, I looked at many articles stating that I can achieve these using Lightning Icons but, the thing am using is just not a simple icon but a Shape. All I want to use that Polygon shape in Lightning Component.
Be gentle, TIA.