Skip to content

Commit

Permalink
2023-09-12 004
Browse files Browse the repository at this point in the history
2023-09-12 004
  • Loading branch information
MidasDMing committed Sep 12, 2023
1 parent 0f87136 commit 71fb8dd
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 16 deletions.
80 changes: 80 additions & 0 deletions _projects/0_project.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
layout: page
title: Yiran Liu
description: Graduate Student, Fall 2020 - Spring 2023 (Co-supervised with Prof. Wu Yang and Prof. Xin Feng). Next Stop: BUPT, PhD.
img:
importance: 4
category: 2020
---

Every project has a beautiful feature showcase page.
It's easy to include images in a flexible 3-column grid format.
Make your photos 1/3, 2/3, or full width.

To give your project a background in the portfolio page, just add the img tag to the front matter like so:

---
layout: page
title: project
description: a project with a background image
img: /assets/img/12.jpg
---

<div class="row">
<div class="col-sm mt-3 mt-md-0">
{% include figure.html path="assets/img/1.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
<div class="col-sm mt-3 mt-md-0">
{% include figure.html path="assets/img/3.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
<div class="col-sm mt-3 mt-md-0">
{% include figure.html path="assets/img/5.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
</div>
<div class="caption">
Caption photos easily. On the left, a road goes through a tunnel. Middle, leaves artistically fall in a hipster photoshoot. Right, in another hipster photoshoot, a lumberjack grasps a handful of pine needles.
</div>
<div class="row">
<div class="col-sm mt-3 mt-md-0">
{% include figure.html path="assets/img/5.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
</div>
<div class="caption">
This image can also have a caption. It's like magic.
</div>

You can also put regular text between your rows of images.
Say you wanted to write a little bit about your project before you posted the rest of the images.
You describe how you toiled, sweated, *bled* for your project, and then... you reveal its glory in the next row of images.


<div class="row justify-content-sm-center">
<div class="col-sm-8 mt-3 mt-md-0">
{% include figure.html path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
<div class="col-sm-4 mt-3 mt-md-0">
{% include figure.html path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
</div>
<div class="caption">
You can also have artistically styled 2/3 + 1/3 images, like these.
</div>


The code is simple.
Just wrap your images with `<div class="col-sm">` and place them inside `<div class="row">` (read more about the <a href="https://getbootstrap.com/docs/4.4/layout/grid/">Bootstrap Grid</a> system).
To make images responsive, add `img-fluid` class to each; for rounded corners and shadows use `rounded` and `z-depth-1` classes.
Here's the code for the last row of images above:

{% raw %}
```html
<div class="row justify-content-sm-center">
<div class="col-sm-8 mt-3 mt-md-0">
{% include figure.html path="assets/img/6.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
<div class="col-sm-4 mt-3 mt-md-0">
{% include figure.html path="assets/img/11.jpg" title="example image" class="img-fluid rounded z-depth-1" %}
</div>
</div>
```
{% endraw %}
6 changes: 3 additions & 3 deletions _projects/1_project.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: page
title: project 1
description: a project with a background image
img: assets/img/12.jpg
title: Wen Yang
description: Graduate Student, Starting in Fall 2023.
img:
importance: 1
category: 2023
related_publications: einstein1956investigations, einstein1950meaning
Expand Down
6 changes: 3 additions & 3 deletions _projects/2_project.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: page
title: project 2
description: a project with a background image
img: assets/img/3.jpg
title: Junwei Xie
description: Graduate Student, Starting in Fall 2023.
img:
importance: 2
category: 2023
---
Expand Down
6 changes: 3 additions & 3 deletions _projects/3_project.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: page
title: project 3
description: a project that redirects to another website
img: assets/img/7.jpg
title: Junyang Zhang
description: Graduate Student, Starting in Fall 2022.
img:
redirect: https://unsplash.com
importance: 3
category: 2022
Expand Down
4 changes: 2 additions & 2 deletions _projects/4_project.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: page
title: project 4
description: another without an image
title: Chen Yi
description: Graduate Student, Starting in Fall 2022.
img:
importance: 3
category: 2022
Expand Down
4 changes: 2 additions & 2 deletions _projects/5_project.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: page
title: project 5
description: a project with a background image
title: Peng Ren
description: Graduate Student, Starting in Fall 2022. (Co-supervised with Prof. Xin Feng)
img: assets/img/1.jpg
importance: 3
category: 2022
Expand Down
6 changes: 3 additions & 3 deletions _projects/6_project.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
layout: page
title: project 6
description: a project with no image
title: Ruijie Luo
description: Graduate Student, Starting in Fall 2022. (Co-supervised with Prof. Xin Feng)
img:
importance: 4
category: 2020
category: 2022
---

Every project has a beautiful feature showcase page.
Expand Down

0 comments on commit 71fb8dd

Please sign in to comment.