Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebaskervil committed Jul 31, 2024
1 parent a894ef2 commit 7b34a2c
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 45 deletions.
1 change: 0 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
User-agent: *
Disallow: /netflixdobetter
Disallow: /404
Disallow: /video

Sitemap: https://georgebaskerville.me/sitemap-index.xml
4 changes: 2 additions & 2 deletions src/components/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ const currentPath = Astro.url.pathname;
</body>
<footer
class="bottom-0 text-left p-4 text-white text-sm ml-6"
style="opacity:0.4; font-style: italic"
style="opacity:0.4;"
>
# Built with Astro, Tailwind, and TypeScript by George Baskerville. Based on
Built with Astro, Tailwind, and TypeScript by George Baskerville. Based on
a template that has since been taken down by Tahir Murata. Uses the <a
href="https://fonts.google.com/specimen/Special+Elite"
target="_blank"
Expand Down
5 changes: 3 additions & 2 deletions src/components/avatar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
import { Image } from 'astro:assets';
import { getavatar } from '../scripts/getavatar';
const images = getavatar();
let avatar = images[0]; // get the first avatar
let avatar = images[0];
---

<style>
.image-container {
overflow: hidden;
border-radius: 10px;
transition: transform 0.3s;
border-width: 2px;
}

.image-container:hover {
transform: scale(1.05);
}
</style>

<picture class="image-container">
<picture class="image-container rounded-lg border-neutral">
<Image
src={`/brand-assets/${avatar}.webp`}
alt="Some of my best pictures"
Expand Down
3 changes: 2 additions & 1 deletion src/components/picturesect.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const images = getImages();
<article class="flex flex-col gap-4">
<section class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
{images.slice(start, end).map((image) => (
<div class="image-container">
<div class="image-container rounded-lg border-neutral">
<picture>
<Image
src={`/image-assets/${image}.webp`}
Expand All @@ -35,6 +35,7 @@ const images = getImages();
transition: transform 0.3s ease;
width: 100%;
aspect-ratio: 3 / 2;
border-width: 2px;
}

.image-container img {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/extras.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const currentPath = Astro.url.pathname;
<div class="background-animation"></div>
<Layout>
<main>
<div class="container mx-auto py-0 w-full">
<div class="container py-0 w-full">
<h1
class="text-4xl font-bold mb-4 text-text"
style="font-size: 2.5rem; margin-bottom: 24px;"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ const posts = (await getCollection('posts')).sort(function (
height="30"
viewBox="0 0 24 24"
fill="none"
stroke="#94a0a9"
stroke="#D3487F"
stroke-linecap="round"
stroke-linejoin="round"
color="#94a0a9"
color="#D3487F"
class="tabler-icon tabler-icon-arrow-up-right transition-none md:transition-all md:duration-300 md:group-hover:translate-x-1 md:group-hover:translate-y-1"
>
<path d="M17 7l-10 10" />
Expand Down
10 changes: 5 additions & 5 deletions src/pages/licensing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Layout from '../components/Layout.astro';
<div class="background-animation"></div>
<Layout>
<main>
<div class="container mx-auto py-0 w-full">
<div class="container py-0 w-full">
<h1
class="text-4xl font-bold mb-4 text-text"
style="font-size: 2.5rem; margin-bottom: 24px;"
Expand Down Expand Up @@ -55,19 +55,19 @@ import Layout from '../components/Layout.astro';
</p>
<p
class="bottom-0 text-left text-white text-sm mt-0 mb-3"
style="opacity:0.4; font-style: italic;"
style="opacity:0.4;"
>
# Images licensed under CC0 1.0 Universal. Download them on the <a
Images licensed under CC0 1.0 Universal. Download them on the <a
href="https://github.com/georgebaskervil/Personal-Website/tree/main/data/images"
class="hover:underline"
target="_blank">GitHub repo</a
>
</p>
<p
class="bottom-0 text-left text-white text-sm mt-0 mb-5"
style="opacity:0.4; font-style: italic;"
style="opacity:0.4;"
>
# Articles licensed under CC0 1.0 Universal. Download them on the <a
Articles licensed under CC0 1.0 Universal. Download them on the <a
href="https://github.com/georgebaskervil/Personal-Website/tree/main/src/content/posts"
class="hover:underline"
target="_blank">GitHub repo</a
Expand Down
7 changes: 4 additions & 3 deletions src/pages/pictures.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const images = getImages();
transition: transform 0.3s ease;
width: 100%;
aspect-ratio: 3 / 2;
border-width: 2px;
}

.image-container img {
Expand All @@ -34,13 +35,13 @@ const images = getImages();
<div class="background-animation"></div>
<Layout>
<h1 class="text-4xl font-bold mb-1 text-text">Latest Pictures:</h1>
<p class="bottom-0 text-left text-white text-sm mt-0 mb-3" style="opacity:0.4; font-style: italic;">
# Images licensed under CC0 1.0 Universal. Download them on the <a href="https://github.com/georgebaskervil/Personal-Website/tree/main/data/images" class="hover:underline" target="_blank">GitHub repo</a>
<p class="bottom-0 text-left text-white text-sm mt-0 mb-3" style="opacity:0.4;">
Images licensed under CC0 1.0 Universal. Download them on the <a href="https://github.com/georgebaskervil/Personal-Website/tree/main/data/images" class="hover:underline" target="_blank">GitHub repo</a>
</p>
<article class="flex flex-col gap-4">
<section class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4">
{images.map((image) => (
<div class="image-container">
<div class="image-container rounded-lg border-neutral">
<picture>
<Image
src={`/image-assets/${image}.webp`}
Expand Down
51 changes: 26 additions & 25 deletions src/pages/posts/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,41 +15,42 @@ const posts = (await getCollection('posts')).sort(
<Layout>
<h1 class="text-4xl font-bold mb-1 text-text">Latest Posts:</h1>
<p
class="bottom-0 text-left text-white text-sm mt-0 mb-5"
style="opacity:0.4; font-style: italic;"
class="bottom-0 text-left text-white text-sm mt-0 mb-2"
style="opacity:0.4;"
>
# Articles licensed under CC0 1.0 Universal. Download them on the <a
href="https://github.com/georgebaskervil/Personal-Website/tree/main/data/images"
Articles licensed under CC0 1.0 Universal. Download them on the <a
href="https://github.com/georgebaskervil/Personal-Website/tree/main/data/articles"
class="hover:underline"
target="_blank">GitHub repo</a
>
</p>

<article class="flex flex-col gap-4">
<section
class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"
>
{
posts.map((post: any) => (
<div class="p-4 rounded-lg border border-neutral shadow-md hover:scale-105 transition-transform duration-300 text-text">
<h4 class="text-lg font-medium">{post.data.title}</h4>
<p class="mt-2">
{post.data.publishedAt.toLocaleDateString('en-us', {
year: 'numeric',
month: 'short',
day: 'numeric',
})}
</p>
<p class="mt-2">{post.data.description}</p>
<article class="flex flex-col gap-3">
<section
class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4"
>
{
posts.slice(0, 4).map((post: any) => (
<a
href={'/posts/' + post.slug}
class="text-accent mt-4 no-underline hover:underline"
class="p-4 rounded-lg border border-neutral shadow-md hover:scale-105 transition-transform duration-300 no-underline block"
>
Read post
<h4 class="text-lg font-medium text-text">{post.data.title}</h4>
<p class="mt-2 text-text">
{post.data.publishedAt.toLocaleDateString('en-us', {
year: 'numeric',
month: 'short',
day: 'numeric',
})}
</p>
<p class="mt-2 text-text">
{post.data.description}
</p>
</a>
</div>
))
}
</section>
))
}
</section>
</article>
</article>
</Layout>
2 changes: 1 addition & 1 deletion src/pages/privacy.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Layout from '../components/Layout.astro';
<div class="background-animation"></div>
<Layout>
<main>
<div class="container mx-auto py-0 w-full">
<div class="container py-0 w-full">
<h1
class="text-4xl font-bold mb-4 text-text"
style="font-size: 2.5rem; margin-bottom: 24px;"
Expand Down
13 changes: 12 additions & 1 deletion src/pages/waveform.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@ import Layout from "../components/Layout.astro";
}
#controls input,
#controls button {
background-color: transparent;
color: #d6d6d6;
border: 1px solid #2d2a2a;
padding: 5px;
margin-right: 10px;
}
#controls input[type="file"] {
color: transparent;
}
#controls input[type="file"]::file-selector-button {
background-color: transparent;
color: #d6d6d6;
background-color: #110819;
border: 1px solid #2d2a2a;
padding: 5px;
}
</style>
<div class="background-animation"></div>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
colors: {
neutral: '#2D2A2A',
text: '#DCD7BA',
accent: '#C8C093',
accent: '#D3487F',
},
},
},
Expand Down

0 comments on commit 7b34a2c

Please sign in to comment.