From 8fdaffe63eb7e709dd3cedd44354b51b480e60f1 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Fri, 2 Dec 2022 19:23:35 +0000 Subject: [PATCH] Add git feed to main page (#10) Resolve #9 Co-authored-by: Tyler Perkins Reviewed-on: https://git.clortox.com/tyler/site/pulls/10 --- src/common/git.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++ src/index.css | 29 ++++++++++++++++++++++++-- src/index.php | 33 +++++++++++++++++++++++------ src/resume.php | 13 ++---------- 4 files changed, 108 insertions(+), 19 deletions(-) create mode 100644 src/common/git.php diff --git a/src/common/git.php b/src/common/git.php new file mode 100644 index 0000000..90b239d --- /dev/null +++ b/src/common/git.php @@ -0,0 +1,52 @@ + diff --git a/src/index.css b/src/index.css index 82ba276..e712b35 100644 --- a/src/index.css +++ b/src/index.css @@ -31,6 +31,27 @@ text-decoration: none; } +.git-clickable-div { + display: block; + width: calc(100% - 10px - 3px); + height: auto; + text-decoration: underline 0.15em rgba(255,255,255,0); + transition: 300ms; + border: dashed; + border-radius: 5px; + background-color: rgba(0,0,0,0.4); + margin: 5px; +} +.git-clickable-div p { + margin: 15px 5px; +} + +.git-clickable-div:hover { + text-decoration: underline 0.15em rgba(255,255,255,1); + background-color: rgba(0,0,0,0.85); + +} + .single-column { grid-template-columns: 1fr !important; } @@ -43,7 +64,6 @@ background: rgba(11,11,12, 0.3); border-radius: 15px; padding: 10px; - } .index-item { @@ -51,7 +71,6 @@ align-content: center; justify-content: center; justify-items: center; - align-items: center; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } @@ -62,6 +81,12 @@ margin: 5px; } +.index-column { + display: grid; + grid-template-rows: 10em 1fr; + +} + @media only screen and (max-width: 768px){ .index-item { grid-template-columns: 1fr; diff --git a/src/index.php b/src/index.php index 98f6687..d53ab00 100644 --- a/src/index.php +++ b/src/index.php @@ -2,6 +2,8 @@ + + Tyler Perkins - Home @@ -20,19 +22,38 @@ $home_addr = gethostbyname("gluttony.clortox.com"); if($remote_addr == $home_addr) echo "

Hello from within the home network!

" - - ?>
-
-

Articles

+
+

Projects

+
+ '; + echo '

' . $name . ' - ' . $description . '

'; + echo ''; + } + ?> +
-
-

To be implemented...

+
+

Articles

+

To be implemented

diff --git a/src/resume.php b/src/resume.php index 5ae086f..d74cc35 100644 --- a/src/resume.php +++ b/src/resume.php @@ -1,17 +1,8 @@