From 71227d7d7840c85b9a5a51da7da82112b3ee5454 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Fri, 19 May 2023 14:45:28 +0100 Subject: [PATCH] Updated flip card to use rust syntax --- index.html | 28 +++++++++++++--------------- style.css | 8 ++++++-- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index c6b4189..e669567 100644 --- a/index.html +++ b/index.html @@ -25,14 +25,13 @@
9
- Person me = new Person
- { -
Name = "Luke Else",
-
Age = ,
-
Title = "Software Engineer / Student",
- - - }let me: Person = Person {
+
name: "Luke Else".to_string(),
+
age: ,
+
title: "Software Engineer / Student".to_string(),
+
email: "contact@luke-else.co.uk".to_string(),
+
website: "git.luke-else.co.uk".to_string()
+ }
@@ -48,13 +47,12 @@
9
- internal class Person
- { //Hover to flip -
public string Name { get; init; }
-
internal int Age { get; set; }
-
internal string Title { get; set; }
-
public string EMail { get; set; }
-
public string Website { get; set; }
+ struct Person {
+
pub name: String,
+
age: u8,
+
title: String,
+
pub email: String,
+
pub website: String
}
diff --git a/style.css b/style.css index 15c930c..515fc86 100644 --- a/style.css +++ b/style.css @@ -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; }