Skip to content

Commit 7790830

Browse files
committed
some minor restyling
1 parent b37f4bb commit 7790830

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/assets/personal_photo.png

-12.7 KB
Loading

src/components/LeftSide.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const { text_color_1 = "text-orange-200", text_color_2 = "text-white" } =
1717

1818
<a class:list={["text-lg", text_color_1]} href="/">
1919
<img
20-
class="my-0 pb-4 w-26 h-26 flex ml-8 mr-8 rounded-full"
20+
class="my-0 py-0 w-26 h-26 flex ml-8 mr-8 rounded-full"
2121
src={personalPhoto.src}
2222
alt="Mohamed Tarek"
2323
/>
24-
<p class:list={["text-xl my-0 pb-4 pt-4 pl-4 font-bold", text_color_1]}>
24+
<p class:list={["text-xl my-0 pb-4 pt-7 pl-4 font-bold", text_color_1]}>
2525
Mohamed Tarek
2626
</p>
2727
</a>

src/pages/index.astro

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@ import LeftSide from "../components/LeftSide.astro";
2828
of Sydney
2929
</p>
3030
</header>
31-
<main class="flex m-10 pr-0">
31+
<main class="flex my-5 mx-10 pr-0">
3232
<aside>
3333
<LeftSide text_color_1="text-blue-500" text_color_2="text-black" />
3434
</aside>
35-
<div class="grid grid-cols-3 gap-10 ml-40">
35+
<div class="grid grid-cols-3 gap-x-16 gap-y-8 ml-40 my-10">
3636
<!-- About -->
3737
<a href="/about" class="card">
3838
<img src={userIcon.src} alt="user icon" class="card-img" />
3939
<h2 class="card-head">About</h2>
4040
<p class="card-desc">Background, education and work.</p>
41-
<p class="card-button">Learn more</p>
41+
<!-- <p class="card-button">Learn more</p> -->
4242
</a>
4343
<!-- Research and training -->
4444
<a href="/publications" class="card">
4545
<img src={pubsIcon.src} alt="research icon" class="card-img" />
4646
<h2 class="card-head">Research & Teaching</h2>
4747
<p class="card-desc">Publications and teaching material.</p>
48-
<p class="card-button">Learn more</p>
48+
<!-- <p class="card-button">Learn more</p> -->
4949
</a>
5050
<!-- Software -->
5151
<a href="/software" class="card">
5252
<img src={softwareIcon.src} alt="programmer icon" class="card-img" />
5353
<h2 class="card-head">Software</h2>
5454
<p class="card-desc">Open source contributions.</p>
55-
<p class="card-button">Learn more</p>
55+
<!-- <p class="card-button">Learn more</p> -->
5656
</a>
5757
<!-- Mentorship -->
5858
<a href="/mentorship" class="card">
@@ -63,21 +63,21 @@ import LeftSide from "../components/LeftSide.astro";
6363
/>
6464
<h2 class="card-head">Mentorship</h2>
6565
<p class="card-desc">People and projects I mentored.</p>
66-
<p class="card-button">Learn more</p>
66+
<!-- <p class="card-button">Learn more</p> -->
6767
</a>
6868
<!-- Blog posts -->
6969
<a href="/blogposts" class="card">
7070
<img src={blogPostsIcon.src} alt="documents icon" class="card-img" />
7171
<h2 class="card-head">Blog posts</h2>
7272
<p class="card-desc">Blog posts I have written.</p>
73-
<p class="card-button">Learn more</p>
73+
<!-- <p class="card-button">Learn more</p> -->
7474
</a>
7575
<!-- Awareness -->
7676
<a href="/awareness" class="card">
7777
<img src={awarenessIcon.src} alt="awareness icon" class="card-img" />
7878
<h2 class="card-head">Awareness</h2>
7979
<p class="card-desc">Raise your awareness.</p>
80-
<p class="card-button">Learn more</p>
80+
<!-- <p class="card-button">Learn more</p> -->
8181
</a>
8282
</div>
8383
</main>
@@ -88,7 +88,7 @@ import LeftSide from "../components/LeftSide.astro";
8888
@import "tailwindcss";
8989

9090
aside {
91-
@apply pr-10 pl-6 max-w-50 min-w-50 sticky top-0 bg-slate-100 sm:px-4;
91+
@apply pr-10 pl-6 mt-3 max-w-50 min-w-50 sticky top-0 bg-slate-100 sm:px-4;
9292
}
9393

9494
.card {
@@ -107,11 +107,11 @@ import LeftSide from "../components/LeftSide.astro";
107107
@apply mb-4 text-slate-800;
108108
}
109109

110-
.card-button {
110+
/* .card-button {
111111
@apply mr-30 rounded-sm bg-gray-500 px-1 py-1 text-center text-sm font-bold text-white w-20;
112-
}
112+
} */
113113

114114
.site-header {
115-
@apply bg-black bg-[url("../assets/home-page-background.png")] bg-size-[auto_350px] bg-position-[right_bottom_-6rem] bg-no-repeat pt-5 pb-15 pl-70 text-slate-200 h-30;
115+
@apply bg-black bg-[url("../assets/home-page-background.png")] bg-size-[auto_350px] bg-position-[right_bottom_-6rem] bg-no-repeat pt-5 pb-15 pl-90 text-slate-200 h-30;
116116
}
117117
</style>

0 commit comments

Comments
 (0)