Updated flip card to use rust syntax
This commit is contained in:
parent
52c1abb0b7
commit
71227d7d78
28
index.html
28
index.html
@ -25,14 +25,13 @@
|
||||
<div>9</div>
|
||||
</div>
|
||||
<code>
|
||||
<span class="method">Person </span><span class="function">me </span><span class="operator">= </span><span class="variable">new </span><span class="method">Person</span> <br />
|
||||
<span>{</span>
|
||||
<div class="indent"> <span class="property">Name </span><span>= </span><span class="string">"Luke Else"</span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">Age </span><span>= </span><span class="int"><script>document.write(getAge(new Date("2004-01-12")))</script></span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">Title </span><span>= </span><span class="string">"Software Engineer / Student"</span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">EMail </span><span>= </span><a href="mailto:contact@luke-else.co.uk"><span class="string">"contact@luke-else.co.uk"</span></a><span>,</span></div>
|
||||
<div class="indent"> <span class="property">Website </span><span>= </span><a href="https://git.luke-else.co.uk/luke-else"><span class="string">"git.luke-else.co.uk"</span></a></div>
|
||||
<span>}</span
|
||||
<span class="variable">let </span><span class="property">me</span><span class="type-inlay">: Person </span>= <span class="function">Person </span><span>{</span><br />
|
||||
<div class="indent"> <span class="property">name</span><span>: </span><span class="string">"Luke Else"</span>.<span class="method">to_string<span class="variable">()</span></span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">age</span><span>: </span><span class="int"><script>document.write(getAge(new Date("2004-01-12")))</script></span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">title</span><span>: </span><span class="string">"Software Engineer / Student"</span>.<span class="method">to_string<span class="variable">()</span></span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">email</span><span>: </span><a href="mailto:contact@luke-else.co.uk"><span class="string">"contact@luke-else.co.uk"</span></a>.<span class="method">to_string<span class="variable">()</span></span></span><span>,</span></div>
|
||||
<div class="indent"> <span class="property">website</span><span>: </span><a href="https://git.luke-else.co.uk/luke-else"><span class="string">"git.luke-else.co.uk"</span></a>.<span class="method">to_string<span class="variable">()</span></span></div>
|
||||
<span>}</span>
|
||||
</code>
|
||||
</div>
|
||||
<div class="card-front" id="card-front">
|
||||
@ -48,13 +47,12 @@
|
||||
<div>9</div>
|
||||
</div>
|
||||
<code>
|
||||
<span class="variable">internal class </span><span class="method">Person</span> <br />
|
||||
<span>{ </span><span class="comment">//Hover to flip</span>
|
||||
<div class="indent"><span class="variable">public string</span> <span class="property">Name </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">init</span><span>;</span><span> }</span></div>
|
||||
<div class="indent"><span class="variable">internal int</span> <span class="property">Age </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||
<div class="indent"><span class="variable">internal string</span> <span class="property">Title </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||
<div class="indent"><span class="variable">public string</span> <span class="property">EMail </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||
<div class="indent"><span class="variable">public string</span> <span class="property">Website </span><span>{ </span><span class="boolean">get</span><span>; </span><span class="boolean">set</span><span>;</span><span> }</span></div>
|
||||
<span class="variable">struct </span><span class="function">Person </span><span>{</span><br />
|
||||
<div class="indent"> <span class='variable'>pub </span><span class="property">name</span><span>: </span><span class='function'>String,</span></div>
|
||||
<div class="indent"> <span class="property">age</span><span>: </span><span class='function'>u8,</span></div>
|
||||
<div class="indent"> <span class="property">title</span><span>: </span><span class='function'>String,</span></div>
|
||||
<div class="indent"> <span class='variable'>pub </span><span class="property">email</span><span>: </span><span class='function'>String,</span></div>
|
||||
<div class="indent"> <span class='variable'>pub </span><span class="property">website</span><span>: </span><span class='function'>String</span></div>
|
||||
<span>}</span>
|
||||
</code>
|
||||
</div>
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
.card {
|
||||
position: relative;
|
||||
width: 30rem;
|
||||
width: 34rem;
|
||||
height: 15rem;
|
||||
perspective: 150rem;
|
||||
}
|
||||
@ -140,7 +140,11 @@
|
||||
color: #4dd0e1;
|
||||
}
|
||||
.card .comment {
|
||||
color: #229977
|
||||
color: #229977;
|
||||
}
|
||||
|
||||
.card .type-inlay {
|
||||
color: rgb(161, 161, 161);
|
||||
}
|
||||
|
||||
a:link { text-decoration: none; }
|
||||
|
Loading…
Reference in New Issue
Block a user