From 6a3c80eebdb9d400904022626c2128ea70639871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E9=A1=BA=E5=81=A5?= Date: Mon, 14 Oct 2024 07:01:22 +0000 Subject: [PATCH] test pages --- .gitlab-ci.yml | 15 +++++++++++++++ public/index.html | 23 +++++++++++++++++++++++ public/style.css | 25 +++++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 public/index.html create mode 100644 public/style.css diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..29afffb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +# This file is a template, and might need editing before it works on your project. +# Full project: https://gitlab.com/pages/plain-html + +image: busybox + +pages: + stage: deploy + script: + - echo "The site will be deployed to $CI_PAGES_URL" + artifacts: + paths: + - public + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..ac317a8 --- /dev/null +++ b/public/index.html @@ -0,0 +1,23 @@ + + + + + + Plain HTML site using GitLab Pages + + + + + +

Hello World!

+ +

+ This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator. +

+ + + diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..69b64f3 --- /dev/null +++ b/public/style.css @@ -0,0 +1,25 @@ +body { + font-family: sans-serif; + margin: auto; + max-width: 1280px; + } + + .navbar { + background-color: #313236; + border-radius: 2px; + max-width: 800px; + } + + .navbar a { + color: #aaa; + display: inline-block; + font-size: 15px; + padding: 10px; + text-decoration: none; + } + + .navbar a:hover { + color: #ffffff; + } + + \ No newline at end of file