codepens/random-svg-pattern-creator-.../dist/index.html

63 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Random SVG pattern creator tool</title>
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'><link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div class="svgArea"></div>
<button class="menu-btn">Menu</button>
<div class="wrapper">
<nav class="nav-wrapper">
<h2>
<div class="selectedSVG" title="Selected SVG Pattern" onclick="expand()"></div>
</h2>
<ul class="main-nav">
<li class="nav-link">
<a href="#" onclick="copySVG()" title="Copy full SVG to clipboard">
<i class="fas fa-copy"></i> Copy SVG
</a>
</li>
<li class="nav-link">
<a href="#" onclick="copyCSSBg()" title="Copy the svg as an encoded background image">
<i class="far fa-copy"></i> Copy background CSS
</a>
</li>
<li class="nav-link">
<a href="#" onclick="copyCSSTextBg()" title="Copy the svg as an encoded background image that fills in text">
<i class="far fa-copy"></i> Copy text background CSS
</a>
</li>
<li class="nav-link">
<a href="#" onclick="addToFavs()" title="Save as a favorite pattern">
<i class="fas fa-star"></i> Add to favorites
</a>
</li>
<li class="nav-link">
<a href="#" onclick="randomSVGs()" title="Generate new random SVG patterns">
<i class="fas fa-random"></i> New patterns
</a>
</li>
<br/>
<br/>
<br/>
<li class="nav-link">
<a href="https://codepen.io/leimapapa/pen/OJgYGGR" title="Go to the smaller version of this tool. Experimental. Creates fewer patterns at once, but that one has shadows and other randomization stuff thrown in 👍" target="_blank">
<i class="fas fa-vial"></i> Tiny tool version
</a>
</li>
</ul>
<div class="favorites"></div>
</nav>
<span class="menu-mask"></span>
</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js'></script><script src="./script.js"></script>
</body>
</html>