commit 405a46009e623ea5c36f89dbc7ba3401772c266f Author: night0721 Date: Sat Jan 20 15:08:38 2024 +0000 init diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..269552b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,51 @@ +name: "publish image" + +on: + push: + branches: ["master"] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +defaults: + run: + shell: bash + +jobs: + package: + permissions: + contents: read + packages: write + runs-on: ubuntu-latest + steps: + + - name: generate image tag + id: tag + run: | + sha="${GITHUB_SHA::7}" + unix="$(date +%s)" + echo "tag=$sha-$unix" >> $GITHUB_OUTPUT + + - name: login to ghcr + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: checkout repo + uses: actions/checkout@v3 + + - name: set up docker buildx + uses: docker/setup-buildx-action@v2 + + - name: build and push image + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: ${{ github.event_name != 'pull_request' }} + tags: | + ghcr.io/${{ github.repository }}:${{ steps.tag.outputs.tag }} + ghcr.io/${{ github.repository }}:latest diff --git a/README.md b/README.md new file mode 100644 index 0000000..db89a1b --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# startpage + +## `tree` inspired startpage with common links, as well as an html form forwarding to searx + +Try it out [here!](https://start.night0721.xyz) +![](https://media.discordapp.net/attachments/842014909264953354/1198282739321942067/image.png?ex=65be56c4&is=65abe1c4&hm=ec12847c50c9234f93f27ff38feb84969531ac202df9cb62ecf4449a611657fd&=&format=webp&quality=lossless&width=716&height=610) +Credits: [skovati](https://skovati.dev) diff --git a/index.html b/index.html new file mode 100644 index 0000000..bc41ec4 --- /dev/null +++ b/index.html @@ -0,0 +1,52 @@ + + + + + + + ~ + + +
+
night@n10 ~ tree
+
+

.

+ +
+
night@n10 ~ search
+
+

search:

+ +
+
+ + diff --git a/style.css b/style.css new file mode 100644 index 0000000..92272b6 --- /dev/null +++ b/style.css @@ -0,0 +1,108 @@ +:root { + --font: "monospace"; + --font-family: "monospace"; + --background: #080c07; + --foreground: #B9C9B8; + --green: #638660; + --red: #BD4D5A; + --orange: #A47449; + --branch: 1px solid #B9C9B8; +} + +html { + font-size: 20px; +} + +body { + background: var(--background); +} + +.container { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} + +.prompt { + font-family: var(--font); + color: var(--foreground); +} + +.prompt~.prompt { + padding: 1.5rem 0 0.3125rem; +} + +span { + color: var(--green); +} + +h1 { + display: inline; + font-family: var(--font); + font-size: 1rem; + font-weight: normal; + color: var(--red); +} + +.tree > ul { + margin: 0; + padding-left: 1rem; +} + +ul { + list-style: none; + padding-left: 2.5rem; +} + +li { + position: relative; +} + +li::before, li::after { + content: ""; + position: absolute; + left: -0.75rem; +} + +li::before { + border-top: var(--branch); + top: 0.75rem; + width: 0.5rem; +} + +li::after { + border-left: var(--branch); + height: 100%; + top: 0.25rem; +} + +li:last-child::after { + height: 0.5rem; +} + +a { + font-family: var(--font); + font-size: 1rem; + color: var(--foreground); + text-decoration: none; + outline: none; +} + +a:hover { + color: var(--background); + background: var(--orange); +} + +form h1 { + padding-left: 0.125rem; +} + +input { + font-family: var(--font); + font-size: 1rem; + color: var(--foreground); + background-color: var(--background); + border: none; + outline: none; +}