Skip to content

Commit

Permalink
remove img
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Feb 21, 2024
1 parent 4c98f41 commit 0b63189
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 40 deletions.
Binary file removed assets/img/animoji.png
Binary file not shown.
Binary file removed assets/img/ezri1.webp
Binary file not shown.
Binary file removed assets/img/ezripicrew.png
Binary file not shown.
Binary file removed assets/img/ezripicrew.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion content/home.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hey, I'm a student interested in software **development**, computer **networking**, managing **infrastructure** at **scale**, **cybersecurity**, and **DevOps**.

I am a sophomore at [Stevens Institute of
My name is Ezri Zhu (they/any), and I am a sophomore at [Stevens Institute of
Technology](https://www.stevens.edu/school-engineering-science/departments/computer-science)
pursuing a Bachelor of Science degree in Computer Science and a minor in
Economics. I'm currently working with [Michael
Expand Down
21 changes: 4 additions & 17 deletions css/home.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
/* hero */
.hero img {
border-radius: 5%;
height: auto;
}


.pronouns {
margin-top: 0.5rem;
}

.biography {
margin-left: 1vw;
}
Expand Down Expand Up @@ -65,6 +55,10 @@
margin-right: 1rem;
height: 85%;
}
.home-box {
margin-right: 1rem;
height: 90%;
}
}

@media screen and (min-width:1024px) {
Expand All @@ -86,13 +80,6 @@
overflow: hidden;
}

@media screen and (min-width:768px) {
.home-box {
margin-right: 1rem;
height: 90%;
}
}

.home-box h2 {
margin: 0;
}
2 changes: 1 addition & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ul {
color: var(--nord15);
text-align: center;
font-style: italic;
margin: 0 0 0.5vw 0;
margin: 0 0 1vw 0;
}

/* hero */
Expand Down
28 changes: 11 additions & 17 deletions src/site/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ pub async fn home(State(state): State<super::SiteState>) -> Markup {
let blogs = state.blog[0..7].to_vec();

let content = html! {
div class="hero pure-g" {
div class="pure-u-1 pure-u-md-1-3" {
img src="/assets/img/ezripicrew.webp" alt="Picrew from https://picrew.me/en/image_maker/1272810" class="pure-img headshot";
p class="pronouns" { "(they/any)" };
}
div class="pure-u-1 pure-u-md-2-3" {
div class="biography" {
{ (PreEscaped(bio)) };
}
div class="hero" {
div class="biography" {
{ (PreEscaped(bio)) };
}
}
div class="pure-g recents" {
Expand All @@ -48,18 +42,18 @@ pub async fn home(State(state): State<super::SiteState>) -> Markup {
@for project in projects {
@let project = post::get(state.projects.clone(), project).unwrap();
div class="pure-u-1 pure-u-md-1-3" {
div class="home-box" {
a href=(format!("/projects/{}", project.slug)) {
h2 {
(project.title)
div class="home-box" {
a href=(format!("/projects/{}", project.slug)) {
h2 {
(project.title)
}
}
p {
(project.description)
}
}
p {
(project.description)
}
}
}
}
}
};
let extra_headers = html! {
Expand Down
4 changes: 0 additions & 4 deletions src/site/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ pub fn base(title: &str, description: &str, extra_headers: Markup, content: Mark
"I'm open to employment for summer of 2024 internships! Please contact me via the "
a href="/contact" { "contacts page." }
}
div class="banner" {
"Happy new year! I now go by Ezri, my new email address is me@ezrizhu.com."
}
div class="main" {
(content)
}
Expand Down Expand Up @@ -198,7 +195,6 @@ pub fn base(title: &str, description: &str, extra_headers: Markup, content: Mark

div class="h-card" style="display: none" {
a class="u-email" href="mailto:me@ezrizhu.com" {};
img class="u-photo" src="https://ezrizhu.com/assets/img/ezri1.webp" alt="my face";
a class="u-url u-uid p-name" href="https://ezrizhu.com" { "Tianyu (Ezri) Zhu" };
p class="p-note" { "I’m a student interested in software development, computer networking, managing infrastructure at scale, cybersecurity, and DevOps" };
}
Expand Down

0 comments on commit 0b63189

Please sign in to comment.