Skip to content

Commit c0a16d5

Browse files
committed
some restyling
1 parent 3c764f8 commit c0a16d5

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import "../styles/markdown.css";
4242
@apply pr-5 pl-10 w-full;
4343
}
4444
aside {
45-
@apply pl-6 pt-15 mx-0 max-w-50 min-w-50 sticky top-0 h-screen w-100 h-full bg-slate-900 px-2 py-0 sm:px-4;
45+
@apply pl-6 pt-15 mx-0 max-w-50 min-w-50 sticky top-0 h-screen w-100 h-full bg-neutral-600 px-2 py-0 sm:px-4;
4646
}
4747
body {
4848
@apply flex flex-row space-x-5 w-full mt-0 m-0 bg-white text-gray-900 text-xl;

src/pages/index.astro

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,20 @@ import LeftSide from "../components/LeftSide.astro";
1717
<link rel="icon" href="https://fav.farm/👨🏻‍💻" />
1818
</head>
1919

20-
<body class="m-0 bg-slate-100">
20+
<body class="m-0 bg-[var(--primary_bg_color)]">
2121
<header class="site-header">
2222
<h1 class="mb-5 text-4xl font-bold text-white">Mohamed Tarek, PhD</h1>
23-
<p class="text-xl/8 text-orange-200">
24-
Senior Product Engineer <span class="text-blue-300 font-bold">@</span> PumasAI
25-
Inc.
23+
<p class="text-xl/8 text-white">
24+
Senior Product Engineer @ PumasAI Inc.
2625
<br />
27-
Research Affiliate <span class="text-blue-300 font-bold">@</span> University
28-
of Sydney
26+
Research Affiliate @ University of Sydney
2927
</p>
3028
</header>
3129
<main class="flex my-5 ml-10 pr-0">
3230
<aside>
3331
<LeftSide text_color_1="text-blue-500" text_color_2="text-black" />
3432
</aside>
35-
<div class="grid grid-cols-3 gap-x-16 gap-y-8 ml-20 mb-10 mt-5">
33+
<div class="grid grid-cols-3 gap-x-16 gap-y-8 ml-35 mb-10 mt-8">
3634
<!-- About -->
3735
<a href="/about" class="card">
3836
<img src={userIcon.src} alt="user icon" class="card-img" />
@@ -86,13 +84,16 @@ import LeftSide from "../components/LeftSide.astro";
8684

8785
<style>
8886
@import "tailwindcss";
87+
:root {
88+
--primary_bg_color: var(--color-violet-100);
89+
}
8990

9091
aside {
91-
@apply pr-5 pl-5 mt-3 max-w-50 min-w-50 sticky top-0 bg-slate-100 sm:px-4;
92+
@apply pr-5 pl-5 mt-3 max-w-50 min-w-50 sticky top-0 bg-[var(--primary_bg_color)] sm:px-4;
9293
}
9394

9495
.card {
95-
@apply p-2 pt-5 border-1 border-slate-300 bg-gray-200 rounded-3xl container;
96+
@apply p-2 pt-5 border-1 border-slate-300 bg-blue-200 rounded-3xl container hover:scale-105 transition-shadow duration-300 hover:shadow-lg;
9697
}
9798

9899
@utility card-img {

0 commit comments

Comments
 (0)