Merge pull request 'feature/devcontainer' (#55) from feature/devcontainer into main
Reviewed-on: #55
This commit is contained in:
18
.devcontainer/devcontainer.json
Normal file
18
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "luke-else.co.uk",
|
||||||
|
"image": "git.luke-else.co.uk/luke-else/lab:latest",
|
||||||
|
"remoteUser": "dev",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "zsh"
|
||||||
|
},
|
||||||
|
"extensions": [
|
||||||
|
"ms-azuretools.vscode-docker",
|
||||||
|
"ms-vscode-remote.remote-containers",
|
||||||
|
"svelte.svelte-vscode"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postCreateCommand": "pnpm install"
|
||||||
|
}
|
@@ -1,19 +1,19 @@
|
|||||||
# .dockerignore
|
# .dockerignore
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
.git
|
.git
|
||||||
.gitattributes
|
.gitattributes
|
||||||
.gitea
|
.gitea
|
||||||
|
|
||||||
.eslintignore
|
.eslintignore
|
||||||
.eslintrc.cjs
|
.eslintrc.cjs
|
||||||
|
|
||||||
.prettierrc
|
.prettierrc
|
||||||
.pretieriignore
|
.pretieriignore
|
||||||
|
|
||||||
README.md
|
README.md
|
||||||
|
|
||||||
Dockerfile
|
Dockerfile
|
@@ -1,30 +1,30 @@
|
|||||||
name: Build and Push Development Docker Image
|
name: Build and Push Development Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ development ]
|
branches: [ development ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
||||||
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and Tag Docker Image
|
- name: Build and Tag Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev .
|
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev .
|
||||||
|
|
||||||
- name: Push Docker Image
|
- name: Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev
|
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:dev
|
||||||
|
@@ -1,30 +1,30 @@
|
|||||||
name: Build and Push Latest Docker Image
|
name: Build and Push Latest Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
- name: Log in to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
registry: ${{ secrets.CONTAINER_REGISTRY }}
|
||||||
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
username: ${{ secrets.CONTAINER_REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
password: ${{ secrets.CONTAINER_REGISTRY_PASSKEY }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and Tag Docker Image
|
- name: Build and Tag Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest .
|
docker build -t ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest .
|
||||||
|
|
||||||
- name: Push Docker Image
|
- name: Push Docker Image
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest
|
docker push ${{ secrets.CONTAINER_REGISTRY }}/${{ secrets.CONTAINER_REGISTRY_USERNAME }}/luke-else.co.uk:latest
|
||||||
|
23
.gitignore
vendored
23
.gitignore
vendored
@@ -1,11 +1,12 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/build
|
.pnpm-store
|
||||||
/.svelte-kit
|
/build
|
||||||
/package
|
/.svelte-kit
|
||||||
.env
|
/package
|
||||||
.env.*
|
.env
|
||||||
!.env.example
|
.env.*
|
||||||
vite.config.js.timestamp-*
|
!.env.example
|
||||||
vite.config.ts.timestamp-*
|
vite.config.js.timestamp-*
|
||||||
.vscode
|
vite.config.ts.timestamp-*
|
||||||
|
.vscode
|
||||||
|
8
.npmrc
8
.npmrc
@@ -1,4 +1,4 @@
|
|||||||
engine-strict=true
|
engine-strict=true
|
||||||
resolution-mode=highest
|
resolution-mode=highest
|
||||||
|
|
||||||
@luke-else:registry=https://git.luke-else.co.uk/api/packages/luke-else/npm/
|
@luke-else:registry=https://git.luke-else.co.uk/api/packages/luke-else/npm/
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/build
|
/build
|
||||||
/.svelte-kit
|
/.svelte-kit
|
||||||
/package
|
/package
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
# Ignore files for PNPM, NPM and YARN
|
# Ignore files for PNPM, NPM and YARN
|
||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
20
.prettierrc
20
.prettierrc
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"useTabs": false,
|
"useTabs": false,
|
||||||
"tabWidth": 4,
|
"tabWidth": 4,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"plugins": ["prettier-plugin-svelte"],
|
"plugins": ["prettier-plugin-svelte"],
|
||||||
"pluginSearchDirs": ["."],
|
"pluginSearchDirs": ["."],
|
||||||
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
|
||||||
}
|
}
|
||||||
|
112
README.md
112
README.md
@@ -1,56 +1,56 @@
|
|||||||
## Welcome
|
## Welcome
|
||||||
|
|
||||||
This site contains information relating to my personal situation, however, you are able to clone this project and change the `me.json` file to update this as required.
|
This site contains information relating to my personal situation, however, you are able to clone this project and change the `me.json` file to update this as required.
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="assets/images/main.png" width="40%">
|
<img src="assets/images/main.png" width="40%">
|
||||||
<img src="assets/images/light_mode.png" width="40%">
|
<img src="assets/images/light_mode.png" width="40%">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="assets/images/skills.png" width="30%">
|
<img src="assets/images/skills.png" width="30%">
|
||||||
<img src="assets/images/repos.png" width="30%">
|
<img src="assets/images/repos.png" width="30%">
|
||||||
<img src="assets/images/contact.png" width="30%">
|
<img src="assets/images/contact.png" width="30%">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="assets/images/experience.png" width="30%">
|
<img src="assets/images/experience.png" width="30%">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
Get starting but installing all of the dependencies of the project.
|
Get starting but installing all of the dependencies of the project.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# or start the server and open the app in a new browser tab
|
# or start the server and open the app in a new browser tab
|
||||||
npm run dev -- --open
|
npm run dev -- --open
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
To create a production version of the app:
|
To create a production version of the app:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can preview the production build with `npm run preview`.
|
You can preview the production build with `npm run preview`.
|
||||||
|
|
||||||
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. In this case, vite is used.
|
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. In this case, vite is used.
|
||||||
|
42
dockerfile
42
dockerfile
@@ -1,21 +1,21 @@
|
|||||||
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS build
|
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN rm -rf node_modules
|
RUN rm -rf node_modules
|
||||||
RUN rm -rf build
|
RUN rm -rf build
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm install
|
RUN pnpm install
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS run
|
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS run
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /app/package.json ./package.json
|
COPY --from=build /app/package.json ./package.json
|
||||||
COPY --from=build /app/.npmrc ./.npmrc
|
COPY --from=build /app/.npmrc ./.npmrc
|
||||||
COPY --from=build /app/build ./build
|
COPY --from=build /app/build ./build
|
||||||
RUN pnpm install --prod
|
RUN pnpm install --prod
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENTRYPOINT [ "pnpm", "run", "start" ]
|
ENTRYPOINT [ "pnpm", "run", "start" ]
|
||||||
|
24
src/app.d.ts
vendored
24
src/app.d.ts
vendored
@@ -1,12 +1,12 @@
|
|||||||
// See https://kit.svelte.dev/docs/types#app
|
// See https://kit.svelte.dev/docs/types#app
|
||||||
// for information about these interfaces
|
// for information about these interfaces
|
||||||
declare global {
|
declare global {
|
||||||
namespace App {
|
namespace App {
|
||||||
// interface Error {}
|
// interface Error {}
|
||||||
// interface Locals {}
|
// interface Locals {}
|
||||||
// interface PageData {}
|
// interface PageData {}
|
||||||
// interface Platform {}
|
// interface Platform {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {};
|
export {};
|
||||||
|
62
src/app.html
62
src/app.html
@@ -1,31 +1,31 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Luke Else - Software Developer at Thales UK. I specialise in developing distributed systems in C++ using highly scalable internal frameworks. I also develop backend and system applications in my spare time using both Svelte, Rust and C++. Feel free to check my work out at https://git.luke-else.co.uk."
|
content="Luke Else - Software Developer at Thales UK. I specialise in developing distributed systems in C++ using highly scalable internal frameworks. I also develop backend and system applications in my spare time using both Svelte, Rust and C++. Feel free to check my work out at https://git.luke-else.co.uk."
|
||||||
/>
|
/>
|
||||||
<meta name="author" content="Luke Else (mail@luke-else.co.uk)" />
|
<meta name="author" content="Luke Else (mail@luke-else.co.uk)" />
|
||||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css"
|
href="https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css"
|
||||||
/>
|
/>
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<script
|
<script
|
||||||
async
|
async
|
||||||
src="https://tracking.luke-else.co.uk/tracker.js"
|
src="https://tracking.luke-else.co.uk/tracker.js"
|
||||||
data-ackee-server="https://tracking.luke-else.co.uk"
|
data-ackee-server="https://tracking.luke-else.co.uk"
|
||||||
data-ackee-domain-id="6c59ab88-dc6d-4d53-9831-0d6bff919dcd"
|
data-ackee-domain-id="6c59ab88-dc6d-4d53-9831-0d6bff919dcd"
|
||||||
data-ackee-opts='{ "detailed": true }'
|
data-ackee-opts='{ "detailed": true }'
|
||||||
></script>
|
></script>
|
||||||
%sveltekit.head%
|
%sveltekit.head%
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body data-sveltekit-preload-data="hover">
|
<body data-sveltekit-preload-data="hover">
|
||||||
<div style="display: contents">%sveltekit.body%</div>
|
<div style="display: contents">%sveltekit.body%</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -1,67 +1,67 @@
|
|||||||
import type { GitRepo } from "../types";
|
import type { GitRepo } from "../types";
|
||||||
|
|
||||||
const API_BASE_URL = "https://git.luke-else.co.uk/api/v1";
|
const API_BASE_URL = "https://git.luke-else.co.uk/api/v1";
|
||||||
export const IMAGE_URL_SUFFIX = "/raw/branch/main/assets/images/main.png";
|
export const IMAGE_URL_SUFFIX = "/raw/branch/main/assets/images/main.png";
|
||||||
|
|
||||||
|
|
||||||
export async function fetchRepos(): Promise<GitRepo[]> {
|
export async function fetchRepos(): Promise<GitRepo[]> {
|
||||||
try {
|
try {
|
||||||
console.log("Fetching repos...");
|
console.log("Fetching repos...");
|
||||||
const response = await fetch(`${API_BASE_URL}/repos/search?sort=updated&order=desc&limit=12`, {
|
const response = await fetch(`${API_BASE_URL}/repos/search?sort=updated&order=desc&limit=12`, {
|
||||||
headers: {
|
headers: {
|
||||||
// "Authorization": `token ${ACCESS_TOKEN}`,
|
// "Authorization": `token ${ACCESS_TOKEN}`,
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Error: ${response.statusText}`);
|
throw new Error(`Error: ${response.statusText}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const data: { data: GitRepo[] } = await response.json();
|
const data: { data: GitRepo[] } = await response.json();
|
||||||
return data.data; // Extract the list of repositories
|
return data.data; // Extract the list of repositories
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Failed to fetch repos:", error);
|
console.error("Failed to fetch repos:", error);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function timeSince(inputDate: Date | string): string {
|
export function timeSince(inputDate: Date | string): string {
|
||||||
const date = new Date(inputDate); // Ensure it's a Date object
|
const date = new Date(inputDate); // Ensure it's a Date object
|
||||||
if (isNaN(date.getTime())) {
|
if (isNaN(date.getTime())) {
|
||||||
throw new Error("Invalid date provided");
|
throw new Error("Invalid date provided");
|
||||||
}
|
}
|
||||||
|
|
||||||
const now: Date = new Date();
|
const now: Date = new Date();
|
||||||
const diffInMs: number = now.getTime() - date.getTime();
|
const diffInMs: number = now.getTime() - date.getTime();
|
||||||
const diffInSeconds: number = Math.floor(diffInMs / 1000);
|
const diffInSeconds: number = Math.floor(diffInMs / 1000);
|
||||||
const diffInMinutes: number = Math.floor(diffInSeconds / 60);
|
const diffInMinutes: number = Math.floor(diffInSeconds / 60);
|
||||||
const diffInHours: number = Math.floor(diffInMinutes / 60);
|
const diffInHours: number = Math.floor(diffInMinutes / 60);
|
||||||
const diffInDays: number = Math.floor(diffInHours / 24);
|
const diffInDays: number = Math.floor(diffInHours / 24);
|
||||||
const diffInMonths: number = Math.floor(diffInDays / 30); // Approximate
|
const diffInMonths: number = Math.floor(diffInDays / 30); // Approximate
|
||||||
const diffInYears: number = Math.floor(diffInDays / 365); // Approximate
|
const diffInYears: number = Math.floor(diffInDays / 365); // Approximate
|
||||||
|
|
||||||
if (diffInDays === 0) return "Today";
|
if (diffInDays === 0) return "Today";
|
||||||
if (diffInDays === 1) return "Yesterday";
|
if (diffInDays === 1) return "Yesterday";
|
||||||
if (diffInDays < 7) return `${diffInDays} days ago`;
|
if (diffInDays < 7) return `${diffInDays} days ago`;
|
||||||
if (diffInDays < 30) return `${Math.floor(diffInDays / 7)} week${diffInDays >= 14 ? 's' : ''} ago`;
|
if (diffInDays < 30) return `${Math.floor(diffInDays / 7)} week${diffInDays >= 14 ? 's' : ''} ago`;
|
||||||
if (diffInMonths < 12) return `${diffInMonths} month${diffInMonths > 1 ? 's' : ''} ago`;
|
if (diffInMonths < 12) return `${diffInMonths} month${diffInMonths > 1 ? 's' : ''} ago`;
|
||||||
return `${diffInYears} year${diffInYears > 1 ? 's' : ''} ago`;
|
return `${diffInYears} year${diffInYears > 1 ? 's' : ''} ago`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function checkImage(repo: GitRepo): Promise<boolean> {
|
export async function checkImage(repo: GitRepo): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
const URL = repo.html_url + IMAGE_URL_SUFFIX;
|
const URL = repo.html_url + IMAGE_URL_SUFFIX;
|
||||||
console.log("Checking image:", URL);
|
console.log("Checking image:", URL);
|
||||||
const response = await fetch(URL);
|
const response = await fetch(URL);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
console.log("Image found!");
|
console.log("Image found!");
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.log("Image not found!");
|
console.log("Image not found!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
export async function getJson(path: string) {
|
export async function getJson(path: string) {
|
||||||
let response = await fetch(path);
|
let response = await fetch(path);
|
||||||
let users = await response.json();
|
let users = await response.json();
|
||||||
return users;
|
return users;
|
||||||
}
|
}
|
@@ -1,12 +1,12 @@
|
|||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
import type { GitRepo } from "./types";
|
import type { GitRepo } from "./types";
|
||||||
import { fetchRepos } from "./api/git";
|
import { fetchRepos } from "./api/git";
|
||||||
|
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
// Git Repo Stores
|
// Git Repo Stores
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
export const repos = writable<GitRepo[]>([]);
|
export const repos = writable<GitRepo[]>([]);
|
||||||
|
|
||||||
export async function loadRepos() {
|
export async function loadRepos() {
|
||||||
repos.set(await fetchRepos());
|
repos.set(await fetchRepos());
|
||||||
}
|
}
|
@@ -1,22 +1,22 @@
|
|||||||
export type TimelinePosition = 'right' | 'left' | 'alternate';
|
export type TimelinePosition = 'right' | 'left' | 'alternate';
|
||||||
|
|
||||||
export type ParentPosition = 'right' | 'left';
|
export type ParentPosition = 'right' | 'left';
|
||||||
|
|
||||||
export type TimelineConfig = {
|
export type TimelineConfig = {
|
||||||
rootPosition: TimelinePosition;
|
rootPosition: TimelinePosition;
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface GitRepo {
|
export interface GitRepo {
|
||||||
name: string;
|
name: string;
|
||||||
description: string;
|
description: string;
|
||||||
language: string;
|
language: string;
|
||||||
size: number;
|
size: number;
|
||||||
updated_at: Date;
|
updated_at: Date;
|
||||||
html_url: string;
|
html_url: string;
|
||||||
private: boolean;
|
private: boolean;
|
||||||
fork: boolean;
|
fork: boolean;
|
||||||
owner: {
|
owner: {
|
||||||
login: string;
|
login: string;
|
||||||
avatar_url: string;
|
avatar_url: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
171
src/main.svelte
171
src/main.svelte
@@ -1,85 +1,86 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getJson } from '$lib/data';
|
import { getJson } from '$lib/data';
|
||||||
import { toasts } from 'svelte-toasts';
|
import { toasts } from 'svelte-toasts';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Loading,
|
Loading,
|
||||||
Section,
|
Section,
|
||||||
Card,
|
Card,
|
||||||
GridGallery,
|
GridGallery,
|
||||||
SkillProgress,
|
SkillProgress,
|
||||||
Timeline,
|
Timeline,
|
||||||
Collapsible
|
Collapsible
|
||||||
} from '@luke-else/component-lib';
|
} from '@luke-else/component-lib';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#await getJson('/json/me.json')}
|
{#await getJson('/json/me.json')}
|
||||||
<Loading />
|
<Loading />
|
||||||
{:then info}
|
{:then info}
|
||||||
<div style="display: none;">
|
<div style="display: none;">
|
||||||
{toasts.add({
|
{toasts.add({
|
||||||
title: 'Welcome',
|
title: 'Welcome',
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
placement: 'bottom-center',
|
placement: 'bottom-center',
|
||||||
showProgress: true
|
showProgress: true
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Card -->
|
<!-- Main Card -->
|
||||||
<Section label="[About]">
|
<Section label="[About]">
|
||||||
<Card>
|
<Card>
|
||||||
<h2 slot="headerLeft">{info.name}</h2>
|
<h2 slot="headerLeft">{info.name}</h2>
|
||||||
<h2 slot="headerRight">{info.job_title}</h2>
|
<h2 slot="headerRight">{info.job_title}</h2>
|
||||||
<div slot="content" class="flex flex-row items-center gap-5">
|
<div slot="content" class="flex flex-row items-center gap-5">
|
||||||
<img
|
<img
|
||||||
src={info.profile_photo}
|
src={info.profile_photo}
|
||||||
alt="Avatar"
|
alt="Avatar"
|
||||||
class="max-md:hidden rounded-full w-32 h-32 md:w-48 md:h-48 mt-2 mb-2 p-2 border-3"
|
class="max-md:hidden rounded-full w-32 h-32 md:w-48 md:h-48 mt-2 mb-2 p-2 border-3"
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
class="[&>*]:underline [&>*]:decoration-2 [&>*]:decoration-transparent [&>*]:hover:decoration-inherit [&>*]:transition-all [&>*]:duration-300 [&>*]:text-green-600"
|
class="[&>*]:underline [&>*]:decoration-2 [&>*]:decoration-transparent [&>*]:hover:decoration-inherit [&>*]:transition-all [&>*]:duration-300 [&>*]:text-green-600"
|
||||||
>
|
>
|
||||||
{@html info.about}
|
{@html info.about}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<h3 slot="footerLeft">{@html info.location}</h3>
|
<h3 slot="footerLeft">{@html info.location}</h3>
|
||||||
</Card>
|
</Card>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<!-- SKills -->
|
<!-- Skills -->
|
||||||
<Section label="[Skills]">
|
<Section label="[Skills]">
|
||||||
<GridGallery>
|
<GridGallery>
|
||||||
{#each info.skills as skill}
|
{#each info.skills as skill}
|
||||||
<Card
|
<Card
|
||||||
containerStyle="opacity-100 hover:opacity-100 hover:scale-[105%] md:opacity-70 transition-all duration-300"
|
containerStyle="opacity-100 hover:opacity-100 hover:scale-[105%] md:opacity-70 transition-all duration-300"
|
||||||
>
|
>
|
||||||
<h2 slot="headerLeft">{skill.name}</h2>
|
<h2 slot="headerLeft">{skill.name}</h2>
|
||||||
<i slot="headerRight" class="text-slate-300 text-5xl {skill.logo}"></i>
|
<i slot="headerRight" class="text-slate-300 text-5xl {skill.logo}"></i>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<Collapsible>
|
<Collapsible>
|
||||||
<span slot="label" class="text-lg">About {skill.name}</span>
|
<span slot="label" class="text-lg">About {skill.name}</span>
|
||||||
<span slot="content">{skill.about}</span>
|
<span slot="content">{skill.about}</span>
|
||||||
</Collapsible>
|
</Collapsible>
|
||||||
<SkillProgress skillColour={skill.colour} value={skill.competency} />
|
<SkillProgress skillColour={skill.colour} value={skill.competency} />
|
||||||
</div>
|
</div>
|
||||||
<h3 slot="footerLeft"><a href={skill.link} target="_blank">{skill.link}</a></h3>
|
<h3 slot="footerLeft"><a href={skill.link} target="_blank">{skill.link}</a></h3>
|
||||||
</Card>
|
</Card>
|
||||||
{/each}
|
{/each}
|
||||||
</GridGallery>
|
</GridGallery>
|
||||||
</Section>
|
</Section>
|
||||||
|
|
||||||
<Section label="[Experience]">
|
<!-- Experience -->
|
||||||
<Timeline timelineData={info.timeline} />
|
<Section label="[Experience]">
|
||||||
</Section>
|
<Timeline timelineData={info.timeline} />
|
||||||
{:catch}
|
</Section>
|
||||||
<div style="display: none;">
|
{:catch}
|
||||||
{toasts.add({
|
<div style="display: none;">
|
||||||
title: 'Error',
|
{toasts.add({
|
||||||
description: 'There was an error loading static site data',
|
title: 'Error',
|
||||||
duration: 0,
|
description: 'There was an error loading static site data',
|
||||||
placement: 'bottom-center',
|
duration: 0,
|
||||||
showProgress: true
|
placement: 'bottom-center',
|
||||||
})}
|
showProgress: true
|
||||||
</div>
|
})}
|
||||||
{/await}
|
</div>
|
||||||
|
{/await}
|
||||||
|
@@ -1,28 +1,28 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import { ToastContainer, FlatToast } from 'svelte-toasts';
|
import { ToastContainer, FlatToast } from 'svelte-toasts';
|
||||||
import { PageIcon } from '@luke-else/component-lib';
|
import { PageIcon } from '@luke-else/component-lib';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="min-h-screen px-8 py-4 bg-white text-slate-600 dark:bg-slate-900/90 dark:text-slate-200/60 md:text-2xl sm:text-md font-mono flex flex-col gap-5 transition duration-1000 ease-in-out"
|
class="min-h-screen px-8 py-4 bg-white text-slate-600 dark:bg-slate-900/90 dark:text-slate-200/60 md:text-2xl sm:text-md font-mono flex flex-col gap-5 transition duration-1000 ease-in-out"
|
||||||
>
|
>
|
||||||
<nav
|
<nav
|
||||||
class="w-full px-8 py-4 flex gap-10 text-xl justify-center items-center text-green-600 font-semibold"
|
class="w-full px-8 py-4 flex gap-10 text-xl justify-center items-center text-green-600 font-semibold"
|
||||||
>
|
>
|
||||||
<a href="/" class="hover:underline">//Profile</a>
|
<a href="/" class="hover:underline">//Profile</a>
|
||||||
<a href="/repos" class="hover:underline">//Repos</a>
|
<a href="/repos" class="hover:underline">//Repos</a>
|
||||||
<a href="/contact" class="hover:underline">//Contact</a>
|
<a href="/contact" class="hover:underline">//Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<a href="https://git.luke-else.co.uk" target="_blank">
|
<a href="https://git.luke-else.co.uk" target="_blank">
|
||||||
<PageIcon iconClass="devicon-git-plain" />
|
<PageIcon iconClass="devicon-git-plain" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="container mx-auto justify-center items-center flex flex-col">
|
<div class="container mx-auto justify-center items-center flex flex-col">
|
||||||
<slot />
|
<slot />
|
||||||
<ToastContainer let:data>
|
<ToastContainer let:data>
|
||||||
<FlatToast {data} />
|
<FlatToast {data} />
|
||||||
</ToastContainer>
|
</ToastContainer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import Main from '../main.svelte';
|
import Main from '../main.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Main></Main>
|
<Main></Main>
|
||||||
</div>
|
</div>
|
@@ -1,103 +1,103 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { toasts } from 'svelte-toasts';
|
import { toasts } from 'svelte-toasts';
|
||||||
import { Card, Section } from '@luke-else/component-lib';
|
import { Card, Section } from '@luke-else/component-lib';
|
||||||
|
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
const sent = page.url.searchParams.get('sent');
|
const sent = page.url.searchParams.get('sent');
|
||||||
|
|
||||||
if (sent == 'true') {
|
if (sent == 'true') {
|
||||||
toasts.add({
|
toasts.add({
|
||||||
title: 'Message sent!',
|
title: 'Message sent!',
|
||||||
description: 'Thank you for contacting me.',
|
description: 'Thank you for contacting me.',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
duration: 4000,
|
duration: 4000,
|
||||||
placement: 'bottom-center'
|
placement: 'bottom-center'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sent == 'false') {
|
if (sent == 'false') {
|
||||||
toasts.add({
|
toasts.add({
|
||||||
title: 'Message not sent!',
|
title: 'Message not sent!',
|
||||||
description: 'Please try again later.',
|
description: 'Please try again later.',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: 4000,
|
duration: 4000,
|
||||||
placement: 'bottom-center'
|
placement: 'bottom-center'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Section label="[Contact]">
|
<Section label="[Contact]">
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<Card>
|
<Card>
|
||||||
<div slot="headerLeft">
|
<div slot="headerLeft">
|
||||||
Contact Me
|
Contact Me
|
||||||
</div>
|
</div>
|
||||||
<!-- Contact Form -->
|
<!-- Contact Form -->
|
||||||
<form slot="content" class="w-full max-w-3xl mx-auto flex flex-col gap-4 text-lg" action="https://api.staticforms.xyz/submit" method="post">
|
<form slot="content" class="w-full max-w-3xl mx-auto flex flex-col gap-4 text-lg" action="https://api.staticforms.xyz/submit" method="post">
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<input type="hidden" name="accessKey" value="fbb5ec04-506b-448a-a445-a2e47579a966">
|
<input type="hidden" name="accessKey" value="fbb5ec04-506b-448a-a445-a2e47579a966">
|
||||||
<input type="hidden" name="replyTo" value="@">
|
<input type="hidden" name="replyTo" value="@">
|
||||||
<input type="text" name="honeypot" style="display: none;">
|
<input type="text" name="honeypot" style="display: none;">
|
||||||
<input type="hidden" name="redirectTo" value="https://luke-else.co.uk/contact?sent=true">
|
<input type="hidden" name="redirectTo" value="https://luke-else.co.uk/contact?sent=true">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row md:flex-row gap-3">
|
<div class="flex flex-row md:flex-row gap-3">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<label class="block text-xs font-medium mb-1" for="name">Name</label>
|
<label class="block text-xs font-medium mb-1" for="name">Name</label>
|
||||||
<input
|
<input
|
||||||
id="name"
|
id="name"
|
||||||
name="name"
|
name="name"
|
||||||
type="text"
|
type="text"
|
||||||
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
||||||
required
|
required
|
||||||
placeholder="Your name"
|
placeholder="Your name"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<label class="block text-xs font-medium mb-1" for="email">Email</label>
|
<label class="block text-xs font-medium mb-1" for="email">Email</label>
|
||||||
<input
|
<input
|
||||||
id="email"
|
id="email"
|
||||||
name="email"
|
name="email"
|
||||||
type="email"
|
type="email"
|
||||||
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
||||||
required
|
required
|
||||||
placeholder="you@email.com"
|
placeholder="you@email.com"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<label class="block text-xs font-medium mb-1" for="subject">Subject</label>
|
<label class="block text-xs font-medium mb-1" for="subject">Subject</label>
|
||||||
<input
|
<input
|
||||||
id="subject"
|
id="subject"
|
||||||
name="subject"
|
name="subject"
|
||||||
type="text"
|
type="text"
|
||||||
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
class="w-full rounded-lg border border-gray-400 px-3 py-1.5 focus:outline-none focus:ring-2 focus:ring-blue-600 transition placeholder-gray-400"
|
||||||
required
|
required
|
||||||
placeholder="Subject"
|
placeholder="Subject"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label class="block text-xs font-medium mb-1" for="message">Message</label>
|
<label class="block text-xs font-medium mb-1" for="message">Message</label>
|
||||||
<textarea
|
<textarea
|
||||||
id="message"
|
id="message"
|
||||||
name="message"
|
name="message"
|
||||||
class="w-full rounded-lg border border-gray-400 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-600 transition min-h-[80px] placeholder-gray-400"
|
class="w-full rounded-lg border border-gray-400 px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-600 transition min-h-[80px] placeholder-gray-400"
|
||||||
required
|
required
|
||||||
placeholder="Your message"
|
placeholder="Your message"
|
||||||
></textarea>
|
></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- reCAPTCHA integration -->
|
<!-- reCAPTCHA integration -->
|
||||||
<div class="">
|
<div class="">
|
||||||
<div class="g-recaptcha" data-sitekey="6LfjQAwrAAAAAIF57u8Wt4w5L5vBEWi5DfXXBuGy"></div>
|
<div class="g-recaptcha" data-sitekey="6LfjQAwrAAAAAIF57u8Wt4w5L5vBEWi5DfXXBuGy"></div>
|
||||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="self-end bg-blue-600 hover:bg-blue-700 text-white font-semibold py-1.5 px-8 rounded-lg transition"
|
class="self-end bg-blue-600 hover:bg-blue-700 text-white font-semibold py-1.5 px-8 rounded-lg transition"
|
||||||
>
|
>
|
||||||
Send Message
|
Send Message
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</Card>
|
</Card>
|
||||||
</Section>
|
</Section>
|
||||||
|
@@ -1,73 +1,73 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { loadRepos, repos } from '$lib/stores';
|
import { loadRepos, repos } from '$lib/stores';
|
||||||
import { timeSince, checkImage, IMAGE_URL_SUFFIX } from '$lib/api/git';
|
import { timeSince, checkImage, IMAGE_URL_SUFFIX } from '$lib/api/git';
|
||||||
import { toasts } from 'svelte-toasts';
|
import { toasts } from 'svelte-toasts';
|
||||||
|
|
||||||
import { GridGallery, Card, Loading, Section, Collapsible } from '@luke-else/component-lib';
|
import { GridGallery, Card, Loading, Section, Collapsible } from '@luke-else/component-lib';
|
||||||
|
|
||||||
let repoImages: Record<string, string | null> = {};
|
let repoImages: Record<string, string | null> = {};
|
||||||
|
|
||||||
// When repos load, check for images
|
// When repos load, check for images
|
||||||
$: if ($repos.length) {
|
$: if ($repos.length) {
|
||||||
(async () => {
|
(async () => {
|
||||||
for (const repo of $repos) {
|
for (const repo of $repos) {
|
||||||
if (repoImages[repo.name] === undefined) {
|
if (repoImages[repo.name] === undefined) {
|
||||||
const url = repo.html_url + IMAGE_URL_SUFFIX;
|
const url = repo.html_url + IMAGE_URL_SUFFIX;
|
||||||
repoImages[repo.name] = (await checkImage(repo)) ? url : null;
|
repoImages[repo.name] = (await checkImage(repo)) ? url : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<Section label="[Repositories]">
|
<Section label="[Repositories]">
|
||||||
{#await loadRepos()}
|
{#await loadRepos()}
|
||||||
<Loading />
|
<Loading />
|
||||||
{:then _}
|
{:then _}
|
||||||
{#if $repos.length == 0}
|
{#if $repos.length == 0}
|
||||||
{console.log('No Repos')}
|
{console.log('No Repos')}
|
||||||
<div style="display: none;">
|
<div style="display: none;">
|
||||||
{toasts.add({
|
{toasts.add({
|
||||||
title: 'Error',
|
title: 'Error',
|
||||||
description: 'Failed to load repositories',
|
description: 'Failed to load repositories',
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
placement: 'bottom-center',
|
placement: 'bottom-center',
|
||||||
showProgress: true
|
showProgress: true
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<p>Sorry... we can't show you anything here</p>
|
<p>Sorry... we can't show you anything here</p>
|
||||||
{/if}
|
{/if}
|
||||||
<!-- Repositories loaded successfully -->
|
<!-- Repositories loaded successfully -->
|
||||||
<GridGallery>
|
<GridGallery>
|
||||||
{#each $repos as repo}
|
{#each $repos as repo}
|
||||||
<!-- <Loading /> -->
|
<!-- <Loading /> -->
|
||||||
<Card
|
<Card
|
||||||
containerStyle="opacity-100 hover:opacity-100 hover:scale-[105%] md:opacity-70 transition-all duration-300"
|
containerStyle="opacity-100 hover:opacity-100 hover:scale-[105%] md:opacity-70 transition-all duration-300"
|
||||||
>
|
>
|
||||||
<h2 slot="headerLeft">{repo.name}</h2>
|
<h2 slot="headerLeft">{repo.name}</h2>
|
||||||
<h2 slot="headerRight" class="text-sm text-gray-500">
|
<h2 slot="headerRight" class="text-sm text-gray-500">
|
||||||
{repo.language}
|
{repo.language}
|
||||||
</h2>
|
</h2>
|
||||||
<div class="flex flex-col gap-5" slot="content">
|
<div class="flex flex-col gap-5" slot="content">
|
||||||
{repo.description}
|
{repo.description}
|
||||||
{#if repoImages[repo.name]}
|
{#if repoImages[repo.name]}
|
||||||
<Collapsible>
|
<Collapsible>
|
||||||
<span slot="label" class="text-lg">See More</span>
|
<span slot="label" class="text-lg">See More</span>
|
||||||
<!-- svelte-ignore a11y_img_redundant_alt -->
|
<!-- svelte-ignore a11y_img_redundant_alt -->
|
||||||
<img
|
<img
|
||||||
slot="content"
|
slot="content"
|
||||||
src={repoImages[repo.name]}
|
src={repoImages[repo.name]}
|
||||||
alt="repo image"
|
alt="repo image"
|
||||||
class=""
|
class=""
|
||||||
/>
|
/>
|
||||||
</Collapsible>
|
</Collapsible>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<h3 slot="footerLeft">
|
<h3 slot="footerLeft">
|
||||||
Last Updated: {timeSince(repo.updated_at)}
|
Last Updated: {timeSince(repo.updated_at)}
|
||||||
</h3>
|
</h3>
|
||||||
</Card>
|
</Card>
|
||||||
{/each}
|
{/each}
|
||||||
</GridGallery>
|
</GridGallery>
|
||||||
{/await}
|
{/await}
|
||||||
</Section>
|
</Section>
|
||||||
|
@@ -1,132 +1,132 @@
|
|||||||
{
|
{
|
||||||
"name": "Luke Else",
|
"name": "Luke Else",
|
||||||
"job_title": "Software Engineer",
|
"job_title": "Software Engineer",
|
||||||
"location": "Crawley, Sussex <br /> UK",
|
"location": "Crawley, Sussex <br /> UK",
|
||||||
"profile_photo": "/profile.jpg",
|
"profile_photo": "/profile.jpg",
|
||||||
"about": "Hello! I'm an enthusiastic, dedicated software engineer passionate about backend development, networking, and embedded systems. I am currently employed at <a href='https://www.thalesgroup.com/en'>Thales UK</a> and thrive on architecting robust backend solutions, optimizing data transmission, and crafting efficient embedded software. I love tackling complex challenges, collaborating with fellow professionals, and staying up-to-date with tech trends such as my current venture in learning <a href='https://rust-lang.org'>Rust-Lang</a>.",
|
"about": "Hello! I'm an enthusiastic, dedicated software engineer passionate about backend development, networking, and embedded systems. I am currently employed at <a href='https://www.thalesgroup.com/en'>Thales UK</a> and thrive on architecting robust backend solutions, optimizing data transmission, and crafting efficient embedded software. I love tackling complex challenges, collaborating with fellow professionals, and staying up-to-date with tech trends such as my current venture in learning <a href='https://rust-lang.org'>Rust-Lang</a>.",
|
||||||
"skills": [
|
"skills": [
|
||||||
{
|
{
|
||||||
"name": "Rust",
|
"name": "Rust",
|
||||||
"logo": "devicon-rust-plain",
|
"logo": "devicon-rust-plain",
|
||||||
"colour": "bg-orange-400",
|
"colour": "bg-orange-400",
|
||||||
"link": "https://rust-lang.org",
|
"link": "https://rust-lang.org",
|
||||||
"about": "Rust combines safety, efficiency, and clean code, making it a powerful choice for reliable software development.",
|
"about": "Rust combines safety, efficiency, and clean code, making it a powerful choice for reliable software development.",
|
||||||
"competency": 70
|
"competency": 70
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "C++",
|
"name": "C++",
|
||||||
"logo": "devicon-cplusplus-plain",
|
"logo": "devicon-cplusplus-plain",
|
||||||
"colour": "bg-blue-400",
|
"colour": "bg-blue-400",
|
||||||
"link": "https://cplusplus.com/",
|
"link": "https://cplusplus.com/",
|
||||||
"about": "C++ offers high-level abstractions with low-level control, making it essential for performance-critical applications.",
|
"about": "C++ offers high-level abstractions with low-level control, making it essential for performance-critical applications.",
|
||||||
"competency": 80
|
"competency": 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "Python",
|
"name" : "Python",
|
||||||
"logo": "devicon-python-plain",
|
"logo": "devicon-python-plain",
|
||||||
"colour": "bg-yellow-400",
|
"colour": "bg-yellow-400",
|
||||||
"link": "https://python.org",
|
"link": "https://python.org",
|
||||||
"about": "Python is a versatile language known for its simplicity and readability, making it ideal for rapid development and data analysis.",
|
"about": "Python is a versatile language known for its simplicity and readability, making it ideal for rapid development and data analysis.",
|
||||||
"competency": 70
|
"competency": 70
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Git",
|
"name": "Git",
|
||||||
"logo": "devicon-git-plain",
|
"logo": "devicon-git-plain",
|
||||||
"colour": "bg-red-400",
|
"colour": "bg-red-400",
|
||||||
"link": "https://git-scm.com",
|
"link": "https://git-scm.com",
|
||||||
"about": "Git is an essential tool for version control, enabling efficient collaboration and streamlined code management.",
|
"about": "Git is an essential tool for version control, enabling efficient collaboration and streamlined code management.",
|
||||||
"competency": 80
|
"competency": 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Docker",
|
"name": "Docker",
|
||||||
"logo": "devicon-docker-plain",
|
"logo": "devicon-docker-plain",
|
||||||
"colour": "bg-blue-500",
|
"colour": "bg-blue-500",
|
||||||
"link": "https://docker.com",
|
"link": "https://docker.com",
|
||||||
"about": "Docker simplifies deployment by packaging applications in lightweight containers, ensuring consistency across environments.",
|
"about": "Docker simplifies deployment by packaging applications in lightweight containers, ensuring consistency across environments.",
|
||||||
"competency": 100
|
"competency": 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Kubernetes",
|
"name": "Kubernetes",
|
||||||
"logo": "devicon-kubernetes-plain",
|
"logo": "devicon-kubernetes-plain",
|
||||||
"colour": "bg-blue-600",
|
"colour": "bg-blue-600",
|
||||||
"link": "https://kubernetes.io",
|
"link": "https://kubernetes.io",
|
||||||
"about": "Kubernetes automates the deployment, scaling, and management of containerized applications, enhancing operational efficiency.",
|
"about": "Kubernetes automates the deployment, scaling, and management of containerized applications, enhancing operational efficiency.",
|
||||||
"competency": 40
|
"competency": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "PostgreSQL",
|
"name": "PostgreSQL",
|
||||||
"logo": "devicon-postgresql-plain",
|
"logo": "devicon-postgresql-plain",
|
||||||
"colour": "bg-blue-700",
|
"colour": "bg-blue-700",
|
||||||
"link": "https://postgresql.org",
|
"link": "https://postgresql.org",
|
||||||
"about": "PostgreSQL is a powerful, open-source relational database known for its robustness and advanced features.",
|
"about": "PostgreSQL is a powerful, open-source relational database known for its robustness and advanced features.",
|
||||||
"competency": 70
|
"competency": 70
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "MongoDB",
|
"name": "MongoDB",
|
||||||
"logo": "devicon-mongodb-plain",
|
"logo": "devicon-mongodb-plain",
|
||||||
"colour": "bg-green-500",
|
"colour": "bg-green-500",
|
||||||
"link": "https://mongodb.com",
|
"link": "https://mongodb.com",
|
||||||
"about": "MongoDB is a NoSQL database that provides flexibility and scalability for modern applications with unstructured data.",
|
"about": "MongoDB is a NoSQL database that provides flexibility and scalability for modern applications with unstructured data.",
|
||||||
"competency": 70
|
"competency": 70
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Redis",
|
"name": "Redis",
|
||||||
"logo": "devicon-redis-plain",
|
"logo": "devicon-redis-plain",
|
||||||
"colour": "bg-red-600",
|
"colour": "bg-red-600",
|
||||||
"link": "https://redis.io",
|
"link": "https://redis.io",
|
||||||
"about": "Redis is an in-memory data structure store, used as a database, cache, and message broker for high-performance applications.",
|
"about": "Redis is an in-memory data structure store, used as a database, cache, and message broker for high-performance applications.",
|
||||||
"competency": 30
|
"competency": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "JavaScript",
|
"name": "JavaScript",
|
||||||
"logo": "devicon-javascript-plain",
|
"logo": "devicon-javascript-plain",
|
||||||
"colour": "bg-yellow-500",
|
"colour": "bg-yellow-500",
|
||||||
"link": "https://javascript.com",
|
"link": "https://javascript.com",
|
||||||
"about": "JavaScript is a versatile language that powers dynamic web applications and enhances user interactivity.",
|
"about": "JavaScript is a versatile language that powers dynamic web applications and enhances user interactivity.",
|
||||||
"competency": 60
|
"competency": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Tailwind CSS",
|
"name": "Tailwind CSS",
|
||||||
"logo": "devicon-tailwindcss-plain",
|
"logo": "devicon-tailwindcss-plain",
|
||||||
"colour": "bg-blue-800",
|
"colour": "bg-blue-800",
|
||||||
"link": "https://tailwindcss.com/",
|
"link": "https://tailwindcss.com/",
|
||||||
"about": "Tailwind CSS is a utility-first CSS framework that enables rapid UI development with a focus on customization and responsiveness.",
|
"about": "Tailwind CSS is a utility-first CSS framework that enables rapid UI development with a focus on customization and responsiveness.",
|
||||||
"competency": 60
|
"competency": 60
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Svelte",
|
"name": "Svelte",
|
||||||
"logo": "devicon-svelte-plain",
|
"logo": "devicon-svelte-plain",
|
||||||
"colour": "bg-orange-400",
|
"colour": "bg-orange-400",
|
||||||
"link": "https://svelte.dev",
|
"link": "https://svelte.dev",
|
||||||
"about": "Svelte compiles to optimized JavaScript, offering a fast, efficient, and maintainable front-end development experience.",
|
"about": "Svelte compiles to optimized JavaScript, offering a fast, efficient, and maintainable front-end development experience.",
|
||||||
"competency": 55
|
"competency": 55
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"timeline" : [
|
"timeline" : [
|
||||||
{
|
{
|
||||||
"duration" : "April 2025 - Present",
|
"duration" : "April 2025 - Present",
|
||||||
"title" : "Thales UK (DDCC) - Software Engineer",
|
"title" : "Thales UK (DDCC) - Software Engineer",
|
||||||
"description" : "As a 3rd year apprentice at Thales UK’s Digital Data Competency Centre, I have taken on responsibility for developing microservices that encapsulate Machine Learning models provided by R&D teams, helping to advance product readiness. These services are primarily written in Python and deployed to Kubernetes clusters for use across the business. Our team also designs and maintains CI/CD pipelines to automate the deployment of both these services and their supporting infrastructure."
|
"description" : "As a 3rd year apprentice at Thales UK’s Digital Data Competency Centre, I have taken on responsibility for developing microservices that encapsulate Machine Learning models provided by R&D teams, helping to advance product readiness. These services are primarily written in Python and deployed to Kubernetes clusters for use across the business. Our team also designs and maintains CI/CD pipelines to automate the deployment of both these services and their supporting infrastructure."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"duration" : "September 2022 - April 2025",
|
"duration" : "September 2022 - April 2025",
|
||||||
"title" : "Thales UK (ISR) - Software Engineer",
|
"title" : "Thales UK (ISR) - Software Engineer",
|
||||||
"description" : "As a software engineering apprentice at Thales UK, Intelligence Surveillance and Reconnaissance, I worked within an agile team of six engineers, contributing to the ongoing development of a C++ system for the MOD. My role involved collaborating closely with colleagues, following Scrum methodologies, and leveraging internal frameworks to enhance and maintain the existing platform."
|
"description" : "As a software engineering apprentice at Thales UK, Intelligence Surveillance and Reconnaissance, I worked within an agile team of six engineers, contributing to the ongoing development of a C++ system for the MOD. My role involved collaborating closely with colleagues, following Scrum methodologies, and leveraging internal frameworks to enhance and maintain the existing platform."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"duration" : "September 2022 - Present",
|
"duration" : "September 2022 - Present",
|
||||||
"title" : "University of Warwick - Digital and Technology Solutions",
|
"title" : "University of Warwick - Digital and Technology Solutions",
|
||||||
"description" : "The apprenticeship includes allocated time for studying a Digital and Thechnology Solutions degree with the University of Warwick, including modules relevant to business management, devlopment processes and data integrity etc..."
|
"description" : "The apprenticeship includes allocated time for studying a Digital and Thechnology Solutions degree with the University of Warwick, including modules relevant to business management, devlopment processes and data integrity etc..."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"duration" : "September 2020 - July 2022",
|
"duration" : "September 2020 - July 2022",
|
||||||
"title" : "The Norton Knatchbull School (A-Levels)",
|
"title" : "The Norton Knatchbull School (A-Levels)",
|
||||||
"description" : "Computer Science (<b>A*</b>) <br /> Mathematics (<b>A</b>) <br /> Physics (<b>A</b>)"
|
"description" : "Computer Science (<b>A*</b>) <br /> Mathematics (<b>A</b>) <br /> Physics (<b>A</b>)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"duration" : "September 2015 - July 2020",
|
"duration" : "September 2015 - July 2020",
|
||||||
"title" : "The Norton Knatchbull School (GCSEs)",
|
"title" : "The Norton Knatchbull School (GCSEs)",
|
||||||
"description" : "Computer Science (<b>9</b>) <br /> Physics (<b>9</b>) <br /> Chemistry (<b>9</b>) <br /> Biology (<b>9</b>) <br /> Geography (<b>9</b>) <br /> FSMQ (C) <br /> Maths (8) <br /> Spanish (7) <br /> English (Literature & Language) (7, 7) <br />"
|
"description" : "Computer Science (<b>9</b>) <br /> Physics (<b>9</b>) <br /> Chemistry (<b>9</b>) <br /> Biology (<b>9</b>) <br /> Geography (<b>9</b>) <br /> FSMQ (C) <br /> Maths (8) <br /> Spanish (7) <br /> English (Literature & Language) (7, 7) <br />"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@@ -1,10 +1,10 @@
|
|||||||
// import adapter from '@sveltejs/adapter-auto';
|
// import adapter from '@sveltejs/adapter-auto';
|
||||||
import adapter from '@sveltejs/adapter-node';
|
import adapter from '@sveltejs/adapter-node';
|
||||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: { adapter: adapter() }
|
kit: { adapter: adapter() }
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
@@ -1,18 +1,18 @@
|
|||||||
{
|
{
|
||||||
"extends": "./.svelte-kit/tsconfig.json",
|
"extends": "./.svelte-kit/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"checkJs": true,
|
"checkJs": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"moduleResolution": "bundler"
|
"moduleResolution": "bundler"
|
||||||
}
|
}
|
||||||
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
|
||||||
//
|
//
|
||||||
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
|
||||||
// from the referenced tsconfig.json - TypeScript does not merge them in
|
// from the referenced tsconfig.json - TypeScript does not merge them in
|
||||||
}
|
}
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
import tailwindcss from '@tailwindcss/vite';
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
sveltekit(),
|
sveltekit(),
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user