Compare commits

..

No commits in common. "92c944f0705d4c99813758a2b0d356bd72ba1d94" and "56052d80a11a74a0222c21a7b7be19d55754ef9b" have entirely different histories.

10 changed files with 33 additions and 74 deletions

View file

@ -5,17 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.1.0] - 2025-04-17
### Added
- Added Fontawesome icons to menu items
- Added new `isHomepage` TypeScript method for later use
- Added introduction text to the Home Page
### Changed
- Changed utility classes to include `!important` tag in order to correctly override default Forgejo styling
## [1.0.0] - 2025-04-11
### Added
- Added versioning
- Added setup instructions for local development
- Added badges
- Add versioning
- Add setup instructions for local development
- Add badges

View file

@ -2,7 +2,7 @@
<div>
<!-- Version Badge -->
<img src="https://img.shields.io/badge/Version-1.1.0-blue" alt="Version 1.1.0">
<img src="https://img.shields.io/badge/Version-1.0.0-blue" alt="Version 1.0.0">
<!-- License Badge -->
<img src="https://img.shields.io/badge/License-GPL--3.0--or--later-34ad9b" alt="License GPL--3.0--or--later">
</div>

View file

@ -22,6 +22,6 @@
"webpack": "^5.99.5",
"webpack-cli": "^6.0.1"
},
"version": "1.1.0",
"version": "1.0.0",
"license": "GPL-3.0-or-later"
}

View file

@ -1,4 +0,0 @@
export default function isHomepage(): Boolean
{
return window.location.pathname === '/';
}

View file

@ -1,7 +1 @@
import isHomepage from './Functions/isHomepage';
document.addEventListener('DOMContentLoaded', () => {
if (isHomepage()) {
// Open for changes
}
});
console.log('Welcome to Loom Forge!');

View file

@ -1,4 +1,4 @@
$spacingLevels: 12;
$spacingLevels: 8;
$fontSizeIncrement: 0.125rem;
$fontSizeBase: 1rem;
$fontLevels: 20;

View file

@ -1,27 +1,27 @@
@mixin marginClasses($i, $calc) {
&-m {
&-#{$i} {
margin: $calc !important;
margin: $calc;
}
&x-#{$i} {
margin-left: $calc !important;
margin-right: $calc !important;
margin-left: $calc;
margin-right: $calc;
}
&y-#{$i} {
margin-top: $calc !important;
margin-bottom: $calc !important;
margin-top: $calc;
margin-bottom: $calc;
}
&t-#{$i} {
margin-top: $calc !important;
margin-top: $calc;
}
&b-#{$i} {
margin-bottom: $calc !important;
margin-bottom: $calc;
}
&l-#{$i} {
margin-left: $calc !important;
margin-left: $calc;
}
&r-#{$i} {
margin-right: $calc !important;
margin-right: $calc;
}
}
}
@ -29,27 +29,27 @@
@mixin paddingClasses($i, $calc) {
&-p {
&-#{$i} {
padding: $calc !important;
padding: $calc;
}
&x-#{$i} {
padding-left: $calc !important;
padding-right: $calc !important;
padding-left: $calc;
padding-right: $calc;
}
&y-#{$i} {
padding-top: $calc !important;
padding-bottom: $calc !important;
padding-top: $calc;
padding-bottom: $calc;
}
&t-#{$i} {
padding-top: $calc !important;
padding-top: $calc;
}
&b-#{$i} {
padding-bottom: $calc !important;
padding-bottom: $calc;
}
&l-#{$i} {
padding-left: $calc !important;
padding-left: $calc;
}
&r-#{$i} {
padding-right: $calc !important;
padding-right: $calc;
}
}
}

View file

@ -13,7 +13,6 @@
{{template "base/footer_content" .}}
<script src="https://kit.fontawesome.com/46e4b2c245.js" crossorigin="anonymous"></script>
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('{{ctx.Locale.Tr "alert.asset_load_failed"}}'.replace('{path}', this.src))"></script>
<script src="/assets/js/loomScripts.js"></script>

View file

@ -28,39 +28,21 @@
{{/* No links */}}
{{else if .IsSigned}}
{{if not .UnitIssuesGlobalDisabled}}
<a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">
<i class="fa-solid fa-circle-exclamation" style="color: #cc7373; margin-right: .5rem"></i>
{{ctx.Locale.Tr "issues"}}
</a>
<a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{ctx.Locale.Tr "issues"}}</a>
{{end}}
{{if not .UnitPullsGlobalDisabled}}
<a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">
<i class="fa-solid fa-code-pull-request" style="color: #94ccbe; margin-right: .5rem"></i>
{{ctx.Locale.Tr "pull_requests"}}
</a>
<a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{ctx.Locale.Tr "pull_requests"}}</a>
{{end}}
{{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}}
{{if .ShowMilestonesDashboardPage}}
<a class="item{{if .PageIsMilestonesDashboard}} active{{end}}" href="{{AppSubUrl}}/milestones">
<i class="fa-solid fa-sign-post" style="margin-right: .5rem; color: #d7d496;"></i>
{{ctx.Locale.Tr "milestones"}}
</a>
<a class="item{{if .PageIsMilestonesDashboard}} active{{end}}" href="{{AppSubUrl}}/milestones">{{ctx.Locale.Tr "milestones"}}</a>
{{end}}
{{end}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">
<i class="fa-solid fa-binoculars" style="color: #777dff; margin-right: .5rem"></i>
{{ctx.Locale.Tr "explore"}}
</a>
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>
{{else if .IsLandingPageOrganizations}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/organizations">
<i class="fa-solid fa-binoculars" style="color: #777dff; margin-right: .5rem"></i>
{{ctx.Locale.Tr "explore"}}
</a>
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{ctx.Locale.Tr "explore"}}</a>
{{else}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">
<i class="fa-solid fa-binoculars" style="color: #777dff; margin-right: .5rem"></i>
{{ctx.Locale.Tr "explore"}}
</a>
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{ctx.Locale.Tr "explore"}}</a>
{{end}}
{{template "custom/extra_links" .}}

View file

@ -1,14 +1,10 @@
{{template "base/head" .}}
<div role="main" aria-label="Welcome" class="page-content home">
<div class="center loom-mt-10">
<div class="center">
<div>
<h1 class="tw-font-bold loom-text-size-16l">
Loom Forge
</h1>
<p class="loom-my-3 loom-px-4" style="max-width: 600px; margin: 0 auto;">
Home to all the open-source software and packages maintained by <a href="/Danny">@Danny</a> and released under the
<a href="/LoomLabs">@LoomLabs</a> handle.
</p>
</div>
</div>
</div>