Skip to content

Commit 0728d84

Browse files
committed
fix: replace fontawesome with svg
1 parent 4d4eed4 commit 0728d84

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

demo/direction.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<input type="hidden" data-direction="waypoint" data-map_id="0" data-place="latitude" placeholder="Latitude" data-place_id="4">
3333
</div>
3434
</div>
35-
<span style="float:right;"><a clone_id="waypoint" class="deleteBtn noDrag"><i class="fas fa-times"></i></a></span>
35+
<span style="float:right;"><a clone_id="waypoint" class="deleteBtn noDrag"><i class="height:18px fill:#505050" src="/assets/svg/times.svg"></i></a></span>
3636
<!-- -->
3737
</div>
3838
</div>
@@ -46,7 +46,7 @@
4646
<input type="hidden" data-direction="waypoint" data-map_id="0" data-place="latitude" placeholder="Latitude" data-place_id="5">
4747
</div>
4848
</div>
49-
<span style="float:right;"><a clone_id="waypoint" class="deleteBtn noDrag"><i class="fas fa-times"></i></a></span>
49+
<span style="float:right;"><a clone_id="waypoint" class="deleteBtn noDrag"><i class="height:18px fill:#505050" src="/assets/svg/times.svg"></i></a></span>
5050
<!-- -->
5151
</div>
5252
</div>

docs/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ <h2>CoCreate-google-maps</h2>
3232
<div class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
3333
<div class="display:flex align-items:center transition:0.3s padding-left:10px" share-network="true" share-text="Enter decription here" share-title="testing im a title" share-height="600" share-width="700" share-media="https://cdn.cocreate.app/docs/google-maps.png" hover="display:block!important" hover-target=".social-networks">
3434
<div class="display:none social-networks">
35-
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="fab fa-twitter"></i></a>
36-
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="fab fa-facebook"></i></a>
37-
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="fab fa-instagram"></i></a>
35+
<a class="margin-right:15px" share-network='twitter' title="Share on twitter"><i class="height:20px fill:#505050" src="/assets/svg/twitter.svg"></i></a>
36+
<a class="margin-right:15px" share-network='facebook' title="Share on Facebook"><i class="height:20px fill:#505050" src="/assets/svg/facebook.svg"></i></a>
37+
<a class="margin-right:15px" share-network='instagram' title="Share on instagram"><i class="height:20px fill:#505050" src="/assets/svg/instagram.svg"></i></a>
3838
</div>
39-
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="fas fa-share-alt"></i></a>
39+
<a class="margin-right:15px" share-network='share' title="Share on share"><i class="height:20px fill:#505050" src="/assets/svg/share-alt.svg"></i></a>
4040
</div>
41-
<a href="https://github.com/CoCreate-app/CoCreate-google-maps" target="_blank" class="margin-right:15px"><i class="fab fa-github"></i></a>
41+
<a href="https://github.com/CoCreate-app/CoCreate-google-maps" target="_blank" class="margin-right:15px"><i class="height:20px fill:#505050" src="/assets/svg/github.svg"></i></a>
4242
</div>
4343
</div>
4444
<h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">A headless vinilla javascript micro component. Easy configuration using HTML5 attributes or Javscript api.</h1>
@@ -48,7 +48,7 @@ <h1 class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-
4848
<div id="google-maps-install" class="border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#google-maps-install-section">
4949
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#google-maps-install"]'>
5050
<h2 class="padding:5px_0px">Install</h2>
51-
<a class="margin-left:10px display:none" href="#google-maps-install"><i class="fas fa-link"></i></a>
51+
<a class="margin-left:10px display:none" href="#google-maps-install"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
5252
</span>
5353
</div>
5454
<pre><code class="language-bash">npm i @cocreate/google-maps</code></pre>
@@ -58,7 +58,7 @@ <h2 class="padding:5px_0px">Install</h2>
5858
<div id="google-maps-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#google-maps-usage-section">
5959
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#google-maps-usage"]'>
6060
<h2 class="padding:5px_0px">Usage</h2>
61-
<a class="margin-left:10px display:none" href="#google-maps-usage"><i class="fas fa-link"></i></a>
61+
<a class="margin-left:10px display:none" href="#google-maps-usage"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
6262
</span>
6363
</div>
6464
<div class="">
@@ -73,7 +73,7 @@ <h2 class="padding:5px_0px">Usage</h2>
7373
<div id="google-maps-attributes" class="margin-top:80px border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#google-maps-attributes-section">
7474
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#google-maps-attributes"]'>
7575
<h2 class="padding:5px_0px">Attributes</h2>
76-
<a class="margin-left:10px display:none" href="#google-maps-attributes"><i class="fas fa-link"></i></a>
76+
<a class="margin-left:10px display:none" href="#google-maps-attributes"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
7777
</span>
7878
</div>
7979
<ul class="list-style-type:none ">
@@ -93,7 +93,7 @@ <h4><span>google-maps</span> <span class="cocreate-badge success">string</span>
9393
<div id="google-maps-demo" class="border-bottom:1px_solid_lightgrey" scroll scroll-intersect="color:dodgerblue" scroll-target="#google-maps-demo-section">
9494
<span class="display:flex align-items:center width:fit-content" hover="display:block!important" hover-target='[href="#google-maps-demo"]'>
9595
<h2 class="padding:5px_0px">Demo</h2>
96-
<a class="margin-left:10px display:none" href="#google-maps-demo"><i class="fas fa-link"></i></a>
96+
<a class="margin-left:10px display:none" href="#google-maps-demo"><i class="height:20px fill:#505050" src="/assets/svg/link.svg"></i></a>
9797
</span>
9898
</div>
9999
<div class="position:sticky top:0 padding:15px_0px height:100vh">
@@ -110,10 +110,10 @@ <h2 class="padding:5px_0px">Demo</h2>
110110
</div>
111111

112112
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
113-
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="far fa-eye"></i></a>
114-
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="fas fa-eye-slash"></i></a>
115-
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="fa fa-code"></i></a>
116-
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="fas fa-code"></i></a>
113+
<a class="margin-right:10px" id="eye" show="#eye-slash" hide="#eye, #demo-preview" toggle="code-height" toggle-target="#demo-code"><i class="height:18px fill:#505050" src="/assets/svg/eye.svg"></i></a>
114+
<a class="margin-right:10px" hidden id="eye-slash" show="#eye, #demo-preview" hide="#eye-slash" toggle="code-height" toggle-target="#demo-code"><i class="height:20px fill:#505050" src="/assets/svg/eye-slash.svg"></i></a>
115+
<a class="margin-right:10px" id="code" show="#code-slash" hide="#code, #demo-code"><i class="height:20px fill:#505050" src="/assets/svg/code.svg"></i></a>
116+
<a class="margin-right:10px" hidden id="code-slash" show="#code, #demo-code" hide="#code-slash"><i class="display:flex height:18px fill:#505050" src="/assets/svg/code.svg"></i></a>
117117
<a class="margin-right:5px" fullscreen fullscreen-target="#playground"></a>
118118
</div>
119119

@@ -124,7 +124,7 @@ <h2 class="padding:5px_0px">Demo</h2>
124124

125125
</div>
126126
<button href="https://github.com/CoCreate-app/CoCreate-google-maps/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue color:#fff font-size:1.5rem grow-hover border-radius:50% border-width:0 box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
127-
<i class="fas fa-pencil-alt"></i>
127+
<i class="height:20px fill:#505050" src="/assets/svg/pencil-alt.svg"></i>
128128
</button>
129129
</main>
130130

0 commit comments

Comments
 (0)