From a2915cc16015463fdcb035e6d8544ed520eb9506 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 2 Feb 2024 18:49:04 +0000 Subject: [PATCH] homepage tweaks --- .prettierrc | 8 +++ custom/templates/custom/header.tmpl | 18 ++++- custom/templates/home.tmpl | 106 +++++++++++++++++++--------- gulpfile.js | 27 ++++--- 4 files changed, 110 insertions(+), 49 deletions(-) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b4fd2fe --- /dev/null +++ b/.prettierrc @@ -0,0 +1,8 @@ +{ + "semi": false, + "singleQuote": true, + "trailingComma": "none", + "tabWidth": 4, + "endOfLine": "lf" + } + \ No newline at end of file diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index f0ca8ea..5109b4a 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -1,6 +1,6 @@ \ No newline at end of file + + .page-content .ui.ui.ui.container:not(.fluid) { + width: 1024px; + } + + + diff --git a/custom/templates/home.tmpl b/custom/templates/home.tmpl index 3eb348f..83efcb4 100644 --- a/custom/templates/home.tmpl +++ b/custom/templates/home.tmpl @@ -1,12 +1,22 @@ - + git.berlin - - - + + + + + + - - - - - + + + + + -
- + - +

git.berlin

-

Public Gitea installation housing git repositories for projects made in Berlin, Germany. You know you always wanted git.berlin in your remotes.

- -

Sign up is open for everyone creating open source or personal projects. Gitea is set up to private by default for all new repositories and groups. You're encouraged to make your repositories public though.

+

+ Public Gitea installation + housing git repositories for projects made in Berlin, + Germany. You know you always wanted + git.berlin in your remotes. +

+

+ Sign up is open for everyone creating open source or + personal projects. Gitea is set up to private by default for + all new repositories and groups. You're encouraged to make + your repositories public though. +

- - + diff --git a/gulpfile.js b/gulpfile.js index 0b3bf64..7448e2b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,10 +1,9 @@ -const gulp = require('gulp') -const rsync = require('gulp-rsync') -const browser = require("browser-sync").create() +const gulp = require('gulp') +const rsync = require('gulp-rsync') +const browser = require('browser-sync').create() // paths -const DIST = './custom/' - +const DIST = './custom/' // // Dev Server @@ -17,19 +16,19 @@ gulp.task('server', () => { }) }) - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // Deployment // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -gulp.task('deploy', () => { - return gulp.src(DIST + '**/*') - .pipe(rsync({ +gulp.task('deploy', () => + gulp.src(DIST + '**/*').pipe( + rsync({ root: DIST, hostname: 'git', - username: 'git', - destination: '/home/git/gitea/custom', + destination: 'gitea/custom', chown: 'git:git', - delete: true - })) -}) + delete: true, + exclude: ['conf/'] + }) + ) +)