Skip to content

Commit 66a466d

Browse files
feat: Complete Github Section
- Add Mona-Sans Font and font faces - Add Images for background - Add variables to tailwind.config.js for Github section
1 parent 9532e4c commit 66a466d

File tree

9 files changed

+238
-355
lines changed

9 files changed

+238
-355
lines changed

src/fonts/monasans/MonaSans-Bold.ttf

99 KB
Binary file not shown.
99.1 KB
Binary file not shown.

src/images/github/desktop.png

695 KB
Loading

src/images/github/mobile.png

498 KB
Loading

src/images/github/profile.jpeg

22.3 KB
Loading

src/index.html

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,9 @@
489489
<li>
490490
<a href="#certificates" class="menu-item">Certificates</a>
491491
</li>
492-
<!-- <li>
492+
<li>
493493
<a href="#github" class="menu-item">Github</a>
494-
</li> -->
494+
</li>
495495
<li>
496496
<a href="#touch" class="menu-item">Stay in touch</a>
497497
</li>
@@ -752,12 +752,88 @@ <h1 class="title h-full min-h-[3.7em] sm:min-h-[2.5em] leading-tight">
752752
</div>
753753
<div class="divider divider-bottom"></div>
754754
</section>
755+
756+
<!-- Github -->
757+
<section
758+
id="github"
759+
class="section bg-gitWhite dark:bg-gitBlack lg:pb-32 mt-20"
760+
>
761+
<div class="divider divider-top"></div>
762+
<div
763+
class="github-content flex w-full h-[28rem] md:h-[30rem] lg:h-auto items-center justify-center flex-wrap gap-4"
764+
>
765+
<div
766+
class="github-context container flex flex-col max-w-lg lg:max-w-auto items-center justify-center gap-4 text-gitBlack dark:text-gitWhite z-10 -mb-[35%] lg:mb-0"
767+
>
768+
<h2 class="title w-full text-left">My Github</h2>
769+
<div
770+
class="github-information bg-gitWhite dark:bg-gitBlack font-monasans-med flex flex-row gap-3 rounded-2xl p-3 shadow-md dark:shadow-none dark:border-2 border-gitDarkGray"
771+
>
772+
<img
773+
src="images/github/profile.jpeg"
774+
alt="Github Profile"
775+
class="max-w-12 max-h-12 rounded-full"
776+
/>
777+
<div class="github-self flex flex-col gap-2">
778+
<div
779+
class="github-self__titles flex flex-row flex-wrap items-center justify-start gap-2"
780+
>
781+
<p class="font-monasans-bold">
782+
<a href="https://github.com/amirallami-code">
783+
Amirhossein Allami
784+
</a>
785+
</p>
786+
<p class="text-gitGray text-sm">@amirallami-code</p>
787+
</div>
788+
<div class="github-self__desc">
789+
Front-end enthusiast by day, algorithm adventurer by night.
790+
</div>
791+
<div
792+
class="github-self__stats flex flex-wrap text-gitGray text-sm gap-2"
793+
>
794+
<p>
795+
<span class="github-self__repos font-monasans-bold">7</span>
796+
repository
797+
</p>
798+
<p>
799+
<span class="github-self__followers font-monasans-bold"
800+
>410</span
801+
>
802+
followers
803+
</p>
804+
<p>
805+
<span class="github-self__stars font-monasans-bold"
806+
>101</span
807+
>
808+
stars earned
809+
</p>
810+
</div>
811+
</div>
812+
</div>
813+
<div class="github-repos"></div>
814+
</div>
815+
<div
816+
class="github-graphic flex items-center justify-center overflow-hidden"
817+
>
818+
<img
819+
class="github-desktop hidden lg:block max-w-xl"
820+
src="images/github/desktop.png"
821+
alt="Github Section's Background"
822+
/>
823+
<img
824+
class="github-mobile lg:hidden w-full"
825+
src="images/github/mobile.png"
826+
alt="Github Section's Background"
827+
/>
828+
</div>
829+
</div>
830+
</section>
755831
</main>
756832
<footer class="footer">
757833
<!-- Stay in touch -->
758834
<section
759835
id="touch"
760-
class="section bg-priWhite dark:bg-dark-backGround flex mt-40 pb-20"
836+
class="section bg-priWhite dark:bg-dark-backGround flex pb-20"
761837
>
762838
<div class="divider divider-top"></div>
763839
<div

src/input.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
/* Mona Sans font faces */
6+
@font-face {
7+
font-family: monasans-bold;
8+
font-style: normal;
9+
font-weight: 800;
10+
font-display: swap;
11+
src: url("fonts/monasans/MonaSans-Bold.ttf") format("truetype");
12+
}
13+
@font-face {
14+
font-family: monasans-med;
15+
font-style: normal;
16+
font-weight: 500;
17+
font-display: swap;
18+
src: url("fonts/monasans/MonaSans-Medium.ttf") format("truetype");
19+
}
520
/* Fira code font face */
621
@font-face {
722
font-family: firacode;

0 commit comments

Comments
 (0)