Skip to content

Commit

Permalink
Update Tailwind & Improved Content & Added Content
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingTil committed Mar 5, 2024
1 parent 6fff1d7 commit dacc31b
Show file tree
Hide file tree
Showing 23 changed files with 2,465 additions and 125 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tailwind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: push

name: Tailwind

jobs:
install_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
- name: Install Tailwind
run: npm install -D tailwindcss
- name: Install Dependencies
run: npm install @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio
- name: Build
run: npx tailwind -o dist/main.css
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ cargo binstall trunk -y
# Get wasm-opt
cargo binstall wasm-opt -y

# Install tailwindcss and dependencies
npm install -D tailwindcss
npm install @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio

# Clean the project
trunk clean
cargo clean

# Get current directory
ROOT_DIR=$(pwd)

# Build the tailwind css file
npx tailwind -o dist/main.css

# First build the submodules
cd $ROOT_DIR/fractal_rust
trunk build --release --public-url "/public/project_code/fractal_rust/"
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap" rel="stylesheet">

<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp" type="text/javascript"></script>
<link data-trunk rel="copy-dir" href="./styles" />
<link data-trunk rel="css" href="styles/main.css" />

<link data-trunk rel="copy-dir" href="./src/images" />
<link data-trunk rel="copy-dir" href="./src/public" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ struct Metadata {
}

#[derive(Debug, PartialEq, Properties)]
pub struct ContentTeachingProps {
pub struct ContentExperienceProps {
pub markdown: String,
pub border_color: String,
}

#[styled_component]
pub fn ContentTeaching(props: &ContentTeachingProps) -> Html {
pub fn ContentExperience(props: &ContentExperienceProps) -> Html {
let md_str = props.markdown.clone();

// Get Front Matter
Expand Down
32 changes: 17 additions & 15 deletions src/components/content_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ pub fn ContentItem(props: &ContentEducationProps) -> Html {
width: 100%;
margin-top: 0.75rem;
margin-bottom: 0.75rem;
min-height: fit-content;
--tw-text-opacity: 1;
color: ${fg} !important;
Expand Down Expand Up @@ -82,7 +83,7 @@ pub fn ContentItem(props: &ContentEducationProps) -> Html {
}
h1 {
margin-top: 2rem;
margin-top: 0rem;
margin-bottom: 0px;
border-bottom-width: 1px;
--tw-border-opacity: 1;
Expand All @@ -91,13 +92,25 @@ pub fn ContentItem(props: &ContentEducationProps) -> Html {
}
h2 {
margin-top: 1rem;
margin-top: 0rem;
margin-bottom: -0.25rem;
}
h3 {
margin-top: 0rem;
margin-bottom: 0rem;
}
h4 {
margin-top: 0rem;
margin-bottom: 0rem;
}
hr {
--tw-border-opacity: 1;
border-color: ${fg};
margin-top: 0rem;
margin-bottom: 0rem;
}
a.my-a {
Expand Down Expand Up @@ -125,14 +138,14 @@ pub fn ContentItem(props: &ContentEducationProps) -> Html {
sup {
--tw-text-opacity: 1;
color:${fg2};
text-wrap: nowrap;
}
.cell {
float: left;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 1rem;
margin-top: -2rem;
margin-top: 1rem;
min-width: 100%;
}
Expand All @@ -142,17 +155,6 @@ pub fn ContentItem(props: &ContentEducationProps) -> Html {
min-width: 0px;
}
}
/* used for "last cell" - workaround */
.cell-non-md {
float: left;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 1rem;
margin-top: -2rem;
min-width: 100%;
}
"#,
fg = theme.foreground_primary.clone(),
fg2 = theme.foreground_secondary.clone()
Expand Down
2 changes: 1 addition & 1 deletion src/components/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pub mod color_theme_picker;
pub mod content_education;
pub mod content_experience;
pub mod content_item;
pub mod content_teaching;
pub mod footer;
pub mod header;
pub mod icon_badges;
Expand Down
28 changes: 15 additions & 13 deletions src/components/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ pub fn ProjectPost(props: &ProjectCardProps) -> Html {
width: 100%;
margin-top: 0.75rem;
margin-bottom: 0.75rem;
min-height: fit-content;
--tw-text-opacity: 1;
color: ${fg} !important;
Expand Down Expand Up @@ -235,9 +236,21 @@ pub fn ProjectPost(props: &ProjectCardProps) -> Html {
margin-bottom: -0.25rem;
}
h3 {
margin-top: 0rem;
margin-bottom: 0rem;
}
h4 {
margin-top: 0rem;
margin-bottom: 0rem;
}
hr {
--tw-border-opacity: 1;
border-color: ${fg};
margin-top: 0rem;
margin-bottom: 0rem;
}
a.my-a {
Expand Down Expand Up @@ -265,14 +278,14 @@ pub fn ProjectPost(props: &ProjectCardProps) -> Html {
sup {
--tw-text-opacity: 1;
color:${fg2};
text-wrap: nowrap;
}
.cell {
float: left;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 1rem;
margin-top: -2rem;
margin-top: 1rem;
min-width: 100%;
}
Expand All @@ -282,17 +295,6 @@ pub fn ProjectPost(props: &ProjectCardProps) -> Html {
min-width: 0px;
}
}
/* used for "last cell" - workaround */
.cell-non-md {
float: left;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 1rem;
margin-top: -2rem;
min-width: 100%;
}
"#,
fg = theme.foreground_primary.clone(),
fg2 = theme.foreground_secondary.clone()
Expand Down
30 changes: 18 additions & 12 deletions src/content/de/education/2022_09-01_RWTH-Aachen.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ education: B.Sc. in Informatik
date_range: Oktober 2019 - September 2022
location: Aachen, Deutschland
---
<div class="w-full min-w-full">
<h3 class="min-w-full">Grundstudium</h3>
<hr>
<div class="w-full min-w-full flex flex-row flex-wrap">
<div class="min-w-full">
<h3>Grundstudium</h3>
<hr>
</div>
<div class="cell">
<h4>Praktische Informatik</h4>
<ul>
Expand Down Expand Up @@ -63,10 +65,12 @@ location: Aachen, Deutschland
</div>
</div>

<div class="w-full min-w-full">
<h3 class="min-w-full">Anwendungsfach: BWL</h3>
<hr>
<div class="cell-non-md">
<div class="w-full min-w-full flex flex-row flex-wrap">
<div class="min-w-full">
<h3>Anwendungsfach: BWL</h3>
<hr>
</div>
<div class="cell">
<ul>
<li>Einführung in die BWL</li>
<li>Quantitative Methoden</li>
Expand All @@ -76,11 +80,13 @@ location: Aachen, Deutschland
</div>
</div>

<div class="w-full min-w-full">
<h3 class="min-w-full">Other</h3>
<hr>
<div class="cell-non-md">
<ul>
<div class="w-full min-w-full flex flex-row flex-wrap">
<div class="min-w-full">
<h3>Sonstiges</h3>
<hr>
</div>
<div class="cell mb-0 pb-0">
<ul class="mb-0 pb-0">
<li>Klima Wandel - Google Earth Engine</li>
</ul>
</div>
Expand Down
17 changes: 17 additions & 0 deletions src/content/de/education/2023_12_01_UIS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: University of Stavanger
education: M.Sc. in Informatik
date_range: August 2023 - Dezember 2023
location: Stavanger, Norwegen
---
<i>Erasmus+ Auslandssemester</i>

<div class="w-full min-w-full flex flex-row flex-wrap">
<div class="cell mb-0 pb-0">
<h4>Wahlpflicht</h4>
<ul class="mb-0 pb-0">
<li><a href="/eiuie" class="no-underline"><span>Image Processing and Computer Vision</span><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
<li><a href="/py_css" class="no-underline"><span>Information Retrieval and Text Mining</span><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
</ul>
</div>
</div>
45 changes: 29 additions & 16 deletions src/content/de/education/2024_09-01_RWTH-Aachen.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ education: M.Sc. in Informatik
date_range: Oktober 2022 - September 2024<sup>*</sup>
location: Aachen, Deutschland
---
<div class="w-full min-w-full">
<h3 class="min-w-full">Grundstudium</h3>
<hr>
<div class="w-full min-w-full flex flex-row flex-wrap">
<div class="min-w-full">
<h3>Grundstudium</h3>
<hr>
</div>
<div class="cell">
<h4>Wahlpflicht</h4>
<ul>
Expand All @@ -17,8 +19,8 @@ location: Aachen, Deutschland
<li>Physikalisch-Basierte Animation</li>
<li>The Logic of Knowledge Bases</li>
<li>Fixpoints and Induction in Logic and Computer Science</li>
<li><a href="/eiuie" class="no-underline"><span>Image Processing and Computer Vision</span><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
<li><a href="/py_css" class="no-underline"><span>Information Retrieval and Text Mining</span><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
<li><a href="/eiuie" class="no-underline"><span>Image Processing and Computer Vision</span><sup>***</sup><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
<li><a href="/py_css" class="no-underline"><span>Information Retrieval and Text Mining</span><sup>***</sup><i class="fa-solid fa-link text-red-400 ml-1"></i></a></li>
</ul>
</div>
<div class="cell">
Expand All @@ -32,10 +34,12 @@ location: Aachen, Deutschland
</div>
</div>

<div class="w-full min-w-full cell-non-md">
<h3 class="min-w-full">Anwendungsfach: BWL</h3>
<hr>
<div class="cell-non-md">
<div class="w-full min-w-full cell flex flex-row flex-wrap">
<div class="min-w-full">
<h3>Anwendungsfach: BWL</h3>
<hr>
</div>
<div class="cell">
<ul>
<li>Operations Research 1</li>
<li>Operations Research 2</li>
Expand All @@ -44,11 +48,20 @@ location: Aachen, Deutschland
</div>
</div>

<div class="w-full min-w-full flex justify-start">
<sup class="sup mr-2">
* Erwartetes Abschlussdatum
</sup>
<sup class="sup mr-2">
** Noch nicht beendet
</sup>
<div class="w-full min-w-full flex flex-col md:flex-wrap md:flex-row md:space-x-2">
<div>
<sup class="sup">
* Erwartetes Abschlussdatum
</sup>
</div>
<div>
<sup class="sup">
** Noch nicht beendet
</sup>
</div>
<div>
<sup class="sup">
*** Während des Erasmus+ Auslandssemesters
</sup>
</div>
</div>
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions src/content/de/experience/2024-02-14_itestra.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Werkstudent
employer: itestra GmbH
date_range: Februar 2024 - Heute
location: Aachen, Deutschland
---
Loading

0 comments on commit dacc31b

Please sign in to comment.