From edacb84032063729f034aa2e8a3926caadf77841 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 08:53:08 +0000 Subject: [PATCH 1/7] Update terminator --- .github/workflows/nextjs.yml | 4 + downloads/terminator.json | 103 +---------------- posts/terminator-changelog.md | 211 +++++++++++++++++++++++++++++++++- posts/terminator.md | 171 +-------------------------- 4 files changed, 224 insertions(+), 265 deletions(-) diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml index 9b4f9e4..858edc4 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/nextjs.yml @@ -12,6 +12,9 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + # Run workflow on pull requests + pull_request: + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read @@ -84,6 +87,7 @@ jobs: # Deployment job deploy: + if: ${{ github.event_name != 'pull_request' }} environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/downloads/terminator.json b/downloads/terminator.json index 60e0ce4..81902d6 100644 --- a/downloads/terminator.json +++ b/downloads/terminator.json @@ -1,5 +1,11 @@ { "downloads": [ + { + "title": "v2.2.0", + "supports": "1.21.0+", + "changelog_url": "/posts/terminator-changelog/#220", + "url": "https://github.com/JaylyDev/terminator/releases/download/v2.2.0/terminator_v2.2.0.mcaddon" + }, { "title": "v2.1.2", "supports": "1.21.0+", @@ -24,108 +30,11 @@ "changelog_url": "/posts/terminator-changelog/#200", "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0/terminator_v2.0.0.mcaddon" }, - { - "title": "v2.0.0-beta (2024/6/9)", - "supports": "1.20.70+", - "changelog_url": "/posts/terminator-changelog/#200-beta-202469", - "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0-beta.4/terminator_v2.0.0-beta.mcaddon" - }, - { - "title": "v2.0.0-beta (2024/5/26)", - "supports": "1.20.70+", - "changelog_url": "/posts/terminator-changelog/#200-beta-2024526", - "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0-beta.3/terminator_v2.0.0-beta.mcaddon" - }, - { - "title": "v2.0.0-beta (2024/5/17)", - "supports": "1.20.70+", - "changelog_url": "/posts/terminator-changelog/#200-beta-2024517", - "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0-beta.2/terminator_v2.0.0-beta.mcaddon" - }, - { - "title": "v2.0.0-beta (2024/5/12)", - "supports": "1.20.70+", - "changelog_url": "/posts/terminator-changelog/#200-beta-2024512", - "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0-beta.1/terminator_v2.0.0-beta.mcaddon" - }, - { - "title": "v2.0.0-beta (2024/5/9)", - "supports": "1.20.70+", - "changelog_url": "/posts/terminator-changelog/#200-beta-592024", - "url": "https://github.com/JaylyDev/terminator/releases/download/v2.0.0-beta.0/terminator_v2.0.0-beta.mcaddon" - }, { "title": "v1.4.0", "supports": "1.20.40+", "changelog_url": "/posts/terminator-changelog/#140", "url": "https://github.com/JaylyDev/terminator/releases/download/v1.4.0/terminator_v1.4.0.mcaddon" - }, - { - "title": "v1.3.70", - "supports": "1.19.0+", - "changelog_url": "/posts/terminator-changelog/#1370", - "url": "https://github.com/JaylyDev/terminator/releases/download/v1.3.70/terminator_v1.3.70.181.mcaddon" - }, - { - "title": "v1.3.45", - "supports": "1.17.30-1.18.10", - "changelog_url": "/posts/terminator-changelog/#1345", - "url": "https://github.com/JaylyDev/terminator/releases/download/v1.3.45/terminator.mobile_v1.3.45.1.mcaddon", - "channel": "Mobile" - }, - { - "title": "v1.3.45", - "supports": "1.17.30-1.18.10", - "changelog_url": "/posts/terminator-changelog/#1345", - "url": "https://github.com/JaylyDev/terminator/releases/download/v1.3.45/terminator.windows_v1.3.45.0.mcaddon", - "channel": "Windows" - }, - { - "title": "v1.3.20", - "supports": "1.17.30+", - "changelog_url": "/posts/terminator-changelog/#1320", - "url": "https://github.com/JaylyDev/terminator/releases/download/v1.3.20/terminator_v1.3.20.25.mcaddon" - }, - { - "title": "v1.3.0", - "supports": "1.17.30+", - "changelog_url": "/posts/terminator-changelog/#release-13050", - "url": "https://github.com/JaylyDev/terminator/releases/download/v1.3.0/terminator_v1.3.0.50.mcaddon" - }, - { - "title": "v1.2.10.3", - "supports": "1.16.100+", - "changelog_url": "/posts/terminator-changelog/#12103", - "url": "https://www.mediafire.com/file/x1jkq89fsvqh3ts/terminator_v1.2.10.3.mcaddon/file" - }, - { - "title": "v1.2.0.10", - "supports": "1.16.100+", - "changelog_url": "/posts/terminator-changelog/#12010", - "url": "https://www.mediafire.com/file/fkyazzdf5sznb67/terminator_v1.2.0.10.mcaddon/file" - }, - { - "title": "v1.1.4", - "supports": "1.16.100+", - "url": "https://www.mediafire.com/file/pgcyapikm5p1gd4/terminator_v1.1.4.mcaddon/file" - }, - { - "title": "v1.1.2", - "supports": "1.16.100+", - "changelog_url": "/posts/terminator-changelog/#112", - "url": "https://www.mediafire.com/file/nb1terul8k6ne1p/terminator_v1.1.2.mcaddon/file" - }, - { - "title": "v1.0.0", - "supports": "1.16.220+", - "changelog_url": "/posts/terminator-changelog/#100", - "url": "https://www.mediafire.com/file/qdp95oisonnbl1o/terminator_v1.0.0.mcaddon/file" - }, - { - "title": "v0.0.84", - "supports": "1.16.220+", - "url": "https://github.com/jayly-bot/addons/releases/download/terminator_old/terminator-v0.0.84.mcaddon", - "channel": "Alpha" } ] } diff --git a/posts/terminator-changelog.md b/posts/terminator-changelog.md index bb49d7a..a78faf9 100644 --- a/posts/terminator-changelog.md +++ b/posts/terminator-changelog.md @@ -2,13 +2,222 @@ author: Jayly title: Terminator Changelog description: A complete release history for Minecraft Terminator Add-On. -date: 12/4/2024 +date: 1/19/2024 --- # Terminator Changelog A complete release history for Minecraft Terminator Add-On. +## 2.2.0 + +> Release Date: January 1, 2025 + +Terminator Add-On v2.2.0 has been released. + +This update contains some Minecraft parity changes, localisation, improvements and various bug fixes. + +### Terminator Entity Changes + +- Updated list of breakable blocks for terminator entity: + - Added small_dripleaf_block + - Added acacia_hanging_sign + - Added bamboo_hanging_sign + - Added birch_hanging_sign + - Added cherry_hanging_sign + - Added crimson_hanging_sign + - Added dark_oak_hanging_sign + - Added jungle_hanging_sign + - Added mangrove_hanging_sign + - Added oak_hanging_sign + - Added pale_oak_hanging_sign + - Added spruce_hanging_sign + - Added warped_hanging_sign +- Added list of blocks terminator should avoid: + - minecraft:bamboo_trapdoor + - minecraft:birch_trapdoor + - minecraft:cherry_trapdoor + - minecraft:copper_trapdoor + - minecraft:exposed_copper_trapdoor + - minecraft:mangrove_trapdoor + - minecraft:oxidized_copper_trapdoor + - minecraft:waxed_copper_trapdoor + - minecraft:waxed_exposed_copper_trapdoor + - minecraft:waxed_oxidized_copper_trapdoor + - minecraft:waxed_weathered_copper_trapdoor + - minecraft:weathered_copper_trapdoor + - minecraft:underwater_tnt + - minecraft:small_dripleaf_block + - minecraft:soul_campfire + - minecraft:sculk_shrieker +- (parity) Flattened list of preferred path blocks + - Removed stone_slab + - Removed stone_slab2 + - Removed stone_slab3 + - Removed stone_slab4 + - Removed double_stone_slab + - Removed double_stone_slab2 + - Removed double_stone_slab3 + - Removed double_stone_slab4 + - Removed wooden_slab + - Removed double_wooden_slab + - Added acacia_double_slab + - Added acacia_slab + - Added andesite_double_slab + - Added andesite_slab + - Added bamboo_double_slab + - Added bamboo_mosaic_double_slab + - Added bamboo_mosaic_slab + - Added bamboo_slab + - Added birch_double_slab + - Added birch_slab + - Added blackstone_double_slab + - Added blackstone_slab + - Added brick_double_slab + - Added brick_slab + - Added cherry_double_slab + - Added cherry_slab + - Added cobbled_deepslate_double_slab + - Added cobbled_deepslate_slab + - Added cobblestone_double_slab + - Added cobblestone_slab + - Added crimson_double_slab + - Added crimson_slab + - Added cut_copper_slab + - Added cut_red_sandstone_double_slab + - Added cut_red_sandstone_slab + - Added cut_sandstone_double_slab + - Added cut_sandstone_slab + - Added dark_oak_double_slab + - Added dark_oak_slab + - Added dark_prismarine_double_slab + - Added dark_prismarine_slab + - Added deepslate_brick_double_slab + - Added deepslate_brick_slab + - Added deepslate_tile_double_slab + - Added deepslate_tile_slab + - Added diorite_double_slab + - Added diorite_slab + - Added double_cut_copper_slab + - Added end_stone_brick_double_slab + - Added end_stone_brick_slab + - Added exposed_cut_copper_slab + - Added exposed_double_cut_copper_slab + - Added granite_double_slab + - Added granite_slab + - Added jungle_double_slab + - Added jungle_slab + - Added mangrove_double_slab + - Added mangrove_slab + - Added mossy_cobblestone_double_slab + - Added mossy_cobblestone_slab + - Added mossy_stone_brick_double_slab + - Added mossy_stone_brick_slab + - Added mud_brick_double_slab + - Added mud_brick_slab + - Added nether_brick_double_slab + - Added nether_brick_slab + - Added normal_stone_double_slab + - Added normal_stone_slab + - Added oak_double_slab + - Added oak_slab + - Added oxidized_cut_copper_slab + - Added oxidized_double_cut_copper_slab + - Added petrified_oak_double_slab + - Added petrified_oak_slab + - Added polished_andesite_double_slab + - Added polished_andesite_slab + - Added polished_blackstone_brick_double_slab + - Added polished_blackstone_brick_slab + - Added polished_blackstone_double_slab + - Added polished_blackstone_slab + - Added polished_deepslate_double_slab + - Added polished_deepslate_slab + - Added polished_diorite_double_slab + - Added polished_diorite_slab + - Added polished_granite_double_slab + - Added polished_granite_slab + - Added polished_tuff_double_slab + - Added polished_tuff_slab + - Added prismarine_brick_double_slab + - Added prismarine_brick_slab + - Added prismarine_double_slab + - Added prismarine_slab + - Added purpur_double_slab + - Added purpur_slab + - Added quartz_double_slab + - Added quartz_slab + - Added red_nether_brick_double_slab + - Added red_nether_brick_slab + - Added red_sandstone_double_slab + - Added red_sandstone_slab + - Added sandstone_double_slab + - Added sandstone_slab + - Added smooth_quartz_double_slab + - Added smooth_quartz_slab + - Added smooth_red_sandstone_double_slab + - Added smooth_red_sandstone_slab + - Added smooth_sandstone_double_slab + - Added smooth_sandstone_slab + - Added smooth_stone_double_slab + - Added smooth_stone_slab + - Added spruce_double_slab + - Added spruce_slab + - Added stone_brick_double_slab + - Added stone_brick_slab + - Added tuff_brick_double_slab + - Added tuff_brick_slab + - Added tuff_double_slab + - Added tuff_slab + - Added warped_double_slab + - Added warped_slab + - Added waxed_cut_copper_slab + - Added waxed_double_cut_copper_slab + - Added waxed_exposed_cut_copper_slab + - Added waxed_exposed_double_cut_copper_slab + - Added waxed_oxidized_cut_copper_slab + - Added waxed_oxidized_double_cut_copper_slab + - Added waxed_weathered_cut_copper_slab + - Added waxed_weathered_double_cut_copper_slab + - Added weathered_cut_copper_slab + - Added weathered_double_cut_copper_slab +- Added MCC 15th year cape +- Added Minecraft Experience cape +- Added Mojang Office cape +- Added legacy blocks to unbreakable blocks + +### Add-On Changes + +- Added language support for Deutsch (Deutschland) +- Added language support for Español (España) +- Added language support for Español (México) +- Added language support for Français (France) +- Added language support for Français (Canada) +- Added language support for Italiano (Italia) +- Added language support for 日本語 (日本) +- Added language support for 한국어 (대한민국) +- Added language support for Português (Brasil) +- Added language support for Português (Portugal) +- Added language support for Русский (Россия) +- Added language support for 中文(简体) +- Added language support for 中文(繁體) +- Added language support for Nederlands (Nederland) +- Added language support for Български (България) +- Added language support for Čeština (Česko) +- Added language support for Dansk (Danmark) +- Added language support for Ελληνικά (Ελλάδα) +- Added language support for Suomi (Suomi) +- Added language support for Magyar (Magyarország) +- Added language support for Indonesia (Indonesia) +- Added language support for Norsk bokmål (Norge) +- Added language support for Polski (Polska) +- Added language support for Slovenčina (Slovensko) +- Added language support for Svenska (Sverige) +- Added language support for Türkçe (Türkiye) +- Added language support for Українська (Україна) +- Fixed some translations for other languages +- Spawn Terminator form is now translated to supported languages + ## 2.1.2 > Release Date: December 4, 2024 diff --git a/posts/terminator.md b/posts/terminator.md index eb7b95b..568a87c 100644 --- a/posts/terminator.md +++ b/posts/terminator.md @@ -2,7 +2,7 @@ author: Jayly title: Minecraft Terminator description: A Minecraft Bedrock Add-On that adds a powerful mob that has the ability to follow entities, destroy blocks and build blocks, to prevent you from beating the game. -date: 12/4/2024 +date: 1/19/2024 image: /assets/posts/terminator/terminator-v2-beta-thumbnail.png download: true --- @@ -209,6 +209,9 @@ Terminators can equip the following cape, which they can be spawned using the 'S - Follower (TikTok) - Purple Heart (Twitch) - One Vanilla +- MCC 15th year +- Minecraft Experience +- Mojang Office ## Spawn a Terminator @@ -298,172 +301,6 @@ Please leave your feedback in the [Discord Server](https://discord.com/invite/Su A complete release history for Terminator Add-On is available [here](/posts/terminator-changelog). -Changelogs for recent releases can also be found below. - -### 2.1.2 - -> Release Date: December 4, 2024 - -- Fixed a bug where Terminator cannot pick up items - -### 2.1.1 - -> Release Date: November 16, 2024 - -- Removed event `terminator:fix_default_target`. Players now will not be able to switch combat through commands. -- Fixed a bug related to terminator's naming system. -- Fixed a bug where LocationOutOfWorldBoundariesError throws when initialise respawn structure outside of height range. -- Fixed a bug where LocationOutOfWorldBoundariesError throws when attempted to drop terminator's inventory outside of height range. -- Fixed a bug where LocationOutOfWorldBoundariesError throws when terminator attempted to break or place blocks outside of height range. - -### 2.1.0 - -> Release Date: September 7, 2024 - -Terminator v2.1.0 has been released. - -This update contains some Minecraft parity changes, improvements and various bug fixes. - -#### Add-On Changes - -- Rewrite terminator respawn event entirely, from JSON to scripts. -- Removed unused `terminator:find_end_portal` and `terminator:find_nether_portal` event for terminator entity. -- Add-On now requires Minecraft v1.21.0 to run. - -#### Function Commands Changes - -- Removed the following deprecated commands: - - `/function player/kit/chainmail` - - `/function player/kit/diamond` - - `/function player/kit/golden` - - `/function player/kit/leather` - - `/function player/kit/iron` - - `/function player/kit/netherite` - -#### Terminator Entity Changes - -- Terminator is now able to break the following leaves: `acacia_leaves`, `birch_leaves`, `cherry_leaves`, `dark_oak_leaves`, `jungle_leaves`, `mangrove_leaves`, `oak_leaves`, and `spruce_leaves` -- Updated list of item terminator wants: - - Changed `grass` to `grass_block` (parity change) - - Added new items terminator wants: - - Planks: `minecraft:acacia_planks`, `minecraft:bamboo_planks`, `minecraft:birch_planks`, `minecraft:cherry_planks`, `minecraft:crimson_planks`, `minecraft:dark_oak_planks`, `minecraft:jungle_planks`, `minecraft:mangrove_planks`, `minecraft:oak_planks`, `minecraft:spruce_planks`, `minecraft:warped_planks` - - Logs and stripped logs: `minecraft:acacia_log`, `minecraft:birch_log`, `minecraft:cherry_log`, `minecraft:dark_oak_log`, `minecraft:jungle_log`, `minecraft:mangrove_log`, `minecraft:oak_log`, `minecraft:spruce_log`, `minecraft:stripped_acacia_log`, `minecraft:stripped_birch_log`, `minecraft:stripped_cherry_log`, `minecraft:stripped_dark_oak_log`, `minecraft:stripped_jungle_log`, `minecraft:stripped_mangrove_log`, `minecraft:stripped_oak_log`, `minecraft:stripped_spruce_log` -- Terminator now avoids withers and wardens -- Terminator is now unable to break the following blocks: Glowingobsidian, Obsidian, Netherreactor, Allow, Deny, Portal, Fire, Soul Fire, and the 20 light blocks. -- Respawn event structure from Terminator's respawn event is now placed block by block. -- Improved death messages for terminator's first death, thanks to respawn event is rewritten in scripting. -- Terminator is now able to build vertically when players are within 8 block volume, centered at terminator's location. -- **Experimental**: Added a feature where Terminators build nether portals, either in the overworld when all players are in the nether, or in the nether when all players are in the overworld. - -#### Terminator Entity Fixes - -- Fix a bug where terminator doesn't avoid soul campfire blocks -- Terminator now avoids sculk shriekers in the behavior JSON, so when they move away from those blocks it may trigger wardens to spawn. -- Respawn event is now able to spawn Terminator custom slim models, if terminator dies with custom slim models. -- Fix an issue where Terminator cannot snowball when near player ([#69](https://github.com/JaylyDev/terminator/issues/69)) - -### 2.0.0 - -> Release Date: July 14, 2024 - -For the past few months I have been rewriting this Terminator add-on so it works in Minecraft's Tricky Trials Update and to celebrate Terminator add-on's 3rd anniversary. Thanks to everyone who helped testing beta versions of Terminator add-on version 2. - -#### Add-On Changes - -- Add-On now no longer requires experiments to run. -- Addon now requires Minecraft version 1.20.70 or above to run properly. -- Fix a bug where addon can be applied to Global Resources. -- Converted `glow_squid` family to `squid` -- Revamped death message system from entity JSON to TypeScript. -- Revamped forward bridging from animation controller JSON to TypeScript fully. -- Converted death event to scripts -- Added Terminator Guide Book. Obtained when player first join with this add-on loaded to world. -- Removed `/function terminator/nbt/nodeathevent` - Please spawn a terminator without death event activated on it's death through the Spawn Terminator form. -- Spawn Terminator form now allow spawning default/custom steve and alex skin -- Terminator now drops their entire inventory on death -- Removed property dimension from spawn terminator form -- Spawn terminator form now has settings preference for players -- Removed `.pdn` files from resource pack. -- `/function terminator` command now returns the spawn terminator form. -- Removed all nbt-related function commands. Please spawn it using `/function terminator` command instead. - -#### Function Commands Changes - -- Fixed invalid command syntax which caused add-on not being to run properly. -- Function commands are being deprecated in v2.0.0, and it will be replaced by script forms which will be released in future v2.0.0 beta updates. - -#### Terminator Entity Changes - -- Updated terminator to leave chest boats. -- Updated unbreakable blocks list so terminator cannot break blocks with blast resistance of 100 or above, which includes the following: - - Barrier - - Light Block - - Bedrock - - Command Block - - End Gateway - - End Portal - - End Portal Frame - - Jigsaw - - Structure Block - - Water - - Lava - - Flowing Lava - - Flowing Water - - Air -- Add-On now detects death causes and broadcast death messages added from 1.20. -- Added 1.20 death messages to terminator add-on. -- Terminator will now bridge inside the height range of each dimension. -- Added Terminator spawn sound. -- Added deepslate to terminator breakable block list -- Terminator placing blocks now includes sounds -- Added a set of rules for terminator to have the ability to place blocks. -- Terminator names are now sanitized. Following bedrock edition nametag rules. -- Terminator now has the ability to break blocks around it's hitbox when attempting to break the block below -- Reduced maximum distance Terminator can be from the target when following it, from 2048 blocks to 1024 blocks in favor of performance improvement. I'll increase the limit when the navigation behavior is having a rewrite from JSON to JavaScript. -- Terminator is now able all the bedrock capes, incuding: - - 15th Anniversary - - Cherry Blossom - - Founder - - Migrator - - Mojang New - - Pan - - Progress Pride - - Follower (TikTok) - - Purple Heart (Twitch) - - One Vanilla - -#### Terminator Entity Fixes - -- Fixed a bug that entity nametag is not shown in death messages. -- Fixed a bug that modified terminator nametag won't display in join message. -- Fix a bug where terminator unable to bridge towards northwest direction. -- Fix Terminator left message not shown and not colored yellow. -- Fix a bug where terminator will fly when attempting to jump. -- Fix a bug that terminator will not place blocks at certain directions when bridging. -- Fix #46 -- Fix issues with terminator respawn event -- Fix an issue with West and East place direction having wrong coordinates. -- Fix issue where terminator jumping action would trigger mid-air -- Fix an issue with Terminator digs a block below when having target (#60) -- Fix an issue where blocks broken by terminator will not drop the item. -- Fix an issue with all directions are offset by 180 degree. -- Fixed an issue where terminator will create multiple goals to escape to when trying to escape -- Fixed an issue with cape flaping and legs movement -- Fix an issue where disabling terminator death event through spawn terminator form will not work. -- Fix an issue that terminator spawn message appearing twice -- Fix Terminator not being able to get off boats, chest boats and minecarts -- Fix an issue where spawn Terminator form will spawn default alex skin instead of terminator variant -- Fixed an issue where multiple terminator can have the same nametags -- Fix a bug that terminator sometimes attempts to punch nothing [#70](https://github.com/JaylyDev/terminator/issues/70) -- Fix a bug where massive explosions occurs when terminator dies in water and respawn [#64](https://github.com/JaylyDev/terminator/issues/64) -- Fix an issue where addon fails to retrieve damaging entity nameTag -- Fix an issue that terminator will not escape when reaching below 20hp after `/reload` -- Fix an issue where death message didn't display item name tag -- Fix an issue where Terminator name will not display in some cases -- Fixed a bug that Terminator death message not showing after respawn. -- Fixed a bug that Terminator's join message appears after respawning -- Fixed a bug where terminator doesn't spawn with terminator steve skin if spawning with the 'Spawn Terminator' form - ## Installation After downloading the add-on below and import the add-on to Minecraft, **make sure both resource pack and behavior pack are imported** so you do not have the error related to incompatibility when applying the add-on. From 23231b40f7554be42c2bdbed746104238c7b68e1 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:14:08 +0000 Subject: [PATCH 2/7] Update SiteFormat.tsx --- src/app/components/SiteFormat.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/components/SiteFormat.tsx b/src/app/components/SiteFormat.tsx index 599d462..9ec971e 100644 --- a/src/app/components/SiteFormat.tsx +++ b/src/app/components/SiteFormat.tsx @@ -1,6 +1,7 @@ import Image from "next/image"; import Link from "next/link"; import Script from "next/script"; +import { useEffect, useState } from "react"; export function SiteHeader() { return ( @@ -46,9 +47,16 @@ export function SiteHeader() { } export function SiteFooter() { + const [year, setYear] = useState(null); + + useEffect(() => { + // Fetch the current year on the client side + setYear(new Date().getFullYear()); + }, []); + return ( ); From bac3fc71b560e2eb284ed13a34718fba35bb0e6c Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:14:46 +0000 Subject: [PATCH 3/7] Update page.tsx --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index b67c7b5..a2e45f3 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,7 +2,7 @@ import "@/styles/globals.css"; import "@/styles/index.css"; import ProjectCard from "./components/Card"; -import { CSSProperties, useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { SiteHeader, SiteFooter } from "./components/SiteFormat"; import { StatsCollection } from "./components/SiteFormat"; import type { ResponseData } from "../../pages/posts/[slug]"; From 43d578fec693c9d6e8b552043cebf5b23c0d6758 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:31:56 +0000 Subject: [PATCH 4/7] Using CSS instead instead of inline style --- src/app/components/Banner.tsx | 34 ---------------------------------- src/app/page.tsx | 7 +++---- src/styles/index.css | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 38 deletions(-) delete mode 100644 src/app/components/Banner.tsx diff --git a/src/app/components/Banner.tsx b/src/app/components/Banner.tsx deleted file mode 100644 index 1b70522..0000000 --- a/src/app/components/Banner.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { CSSProperties } from "react"; - -export const containerStyle: CSSProperties = { - background: `url("/assets/background.png")`, - position: "relative", - width: "100%", - height: "50%", - minHeight: "320px", - backgroundSize: "cover", - backgroundPosition: "center", - overflow: "hidden", - justifyContent: "center", - alignItems: "flex-end", -}; - -export const shadowStyle: CSSProperties = { - position: "absolute", - bottom: 0, - left: 0, - right: 0, - height: "5%", - background: "linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1))", -}; - -export const jaylyCharStyle: CSSProperties = { - backgroundImage: "url(/assets/jayly.png)", - width: "100%", - height: "100%", - backgroundSize: "contain", - backgroundPosition: "bottom", - position: "absolute", - bottom: "10%", - backgroundRepeat: "no-repeat", -}; diff --git a/src/app/page.tsx b/src/app/page.tsx index a2e45f3..234cb17 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,7 +7,6 @@ import { SiteHeader, SiteFooter } from "./components/SiteFormat"; import { StatsCollection } from "./components/SiteFormat"; import type { ResponseData } from "../../pages/posts/[slug]"; import { Button } from "@nextui-org/button"; -import { containerStyle, shadowStyle, jaylyCharStyle } from "./components/Banner"; interface IHyperlinkParams { url: string; @@ -252,15 +251,15 @@ function AboutMe(): JSX.Element { function HomeBanner() { return ( -
+

Jayly

A website for Jayly

-
-
+
+
); } diff --git a/src/styles/index.css b/src/styles/index.css index e2a5230..48390ea 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -121,3 +121,36 @@ blockquote { border-left: 5px solid #ccc; padding: 10px; } + +.banner-container { + background: url("/assets/background.png"); + position: "relative"; + width: "100%"; + height: "50%"; + min-height: "320px"; + background-size: "cover"; + background-position: "center"; + overflow: "hidden"; + justify-content: "center"; + align-items: "flex-end"; +} + +.banner-shadow { + position: "absolute"; + bottom: 0; + left: 0; + right: 0; + height: 5%; + background: "linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1))"; +} + +.banner-jayly-character { + background-image: url(/assets/jayly.png); + width: 100%; + height: 100%; + background-size: "contain"; + background-position: "bottom"; + position: "absolute"; + bottom: 10%; + background-repeat: "no-repeat"; +} From 4c41ed3fea7ece2ea07de61c8c5171e9d602f7a8 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:48:49 +0000 Subject: [PATCH 5/7] Fix CSS --- src/app/components/Card.tsx | 4 ++-- src/app/page.tsx | 10 +--------- src/styles/index.css | 30 +++++++++++++++--------------- 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/src/app/components/Card.tsx b/src/app/components/Card.tsx index 038493c..9ea4603 100644 --- a/src/app/components/Card.tsx +++ b/src/app/components/Card.tsx @@ -11,7 +11,7 @@ interface CardProps { const Card: React.FC = ({ title, description, links, image, media }) => { return ( - <> +
{image && (
@@ -54,7 +54,7 @@ const Card: React.FC = ({ title, description, links, image, media }) ))} - +
); }; diff --git a/src/app/page.tsx b/src/app/page.tsx index 234cb17..217733f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -136,15 +136,7 @@ function CurrentProjects(): JSX.Element { }, ]; - const ProjectElements = projects.map((project, index) => ( -
- -
- )); + const ProjectElements = projects.map((project, index) => ); return (
diff --git a/src/styles/index.css b/src/styles/index.css index 48390ea..f9798d3 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -124,33 +124,33 @@ blockquote { .banner-container { background: url("/assets/background.png"); - position: "relative"; - width: "100%"; - height: "50%"; - min-height: "320px"; - background-size: "cover"; - background-position: "center"; - overflow: "hidden"; - justify-content: "center"; - align-items: "flex-end"; + position: relative; + width: 100%; + height: 50%; + min-height: 320px; + background-size: cover; + background-position: center; + overflow: hidden; + justify-content: center; + align-items: flex-end; } .banner-shadow { - position: "absolute"; + position: absolute; bottom: 0; left: 0; right: 0; height: 5%; - background: "linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1))"; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); } .banner-jayly-character { background-image: url(/assets/jayly.png); width: 100%; height: 100%; - background-size: "contain"; - background-position: "bottom"; - position: "absolute"; + background-size: contain; + background-position: bottom; + position: absolute; bottom: 10%; - background-repeat: "no-repeat"; + background-repeat: no-repeat; } From dd892f62bca294bfd9f61cdfc07ee34ce65accf1 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:50:23 +0000 Subject: [PATCH 6/7] 0.9.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 643c80b..b80d912 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jaylydev.github.io", - "version": "0.8.0", + "version": "0.9.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jaylydev.github.io", - "version": "0.8.0", + "version": "0.9.0", "dependencies": { "@jsdevtools/rehype-toc": "^3.0.2", "@nextui-org/button": "2.0.31", diff --git a/package.json b/package.json index ee19d31..7a0d908 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jaylydev.github.io", - "version": "0.8.0", + "version": "0.9.0", "private": true, "scripts": { "dev": "npm run scripts && next dev", From 8c05cfb513cdcc07639c44a4c4d880ed46a0c7a0 Mon Sep 17 00:00:00 2001 From: Jayly <65847850+JaylyDev@users.noreply.github.com> Date: Sun, 19 Jan 2025 09:50:30 +0000 Subject: [PATCH 7/7] 0.10.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b80d912..9d3aa05 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "jaylydev.github.io", - "version": "0.9.0", + "version": "0.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "jaylydev.github.io", - "version": "0.9.0", + "version": "0.10.0", "dependencies": { "@jsdevtools/rehype-toc": "^3.0.2", "@nextui-org/button": "2.0.31", diff --git a/package.json b/package.json index 7a0d908..a64aa22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jaylydev.github.io", - "version": "0.9.0", + "version": "0.10.0", "private": true, "scripts": { "dev": "npm run scripts && next dev",