Skip to content

Commit 7bb4065

Browse files
New website (#17)
* Add base react project React + Typescript + Tailwind + Shadcn * Update tailwind config * Hugoplate initial setup * Add landing page base * Change banner background * Refactor language and menu configurations * Add gh action to deploy website * Update base URL * Update background image of hero section * Remove coming soon image and index.html file --------- Co-authored-by: FranciscoCardita <franciscocardita@ua.pt>
1 parent 89883d1 commit 7bb4065

File tree

213 files changed

+17025
-84849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+17025
-84849
lines changed

.devcontainer/Dockerfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Use an official node image as a parent image
2+
FROM node:23
3+
4+
# Set environment variables for versions
5+
ARG HUGO_VERSION=0.144.2
6+
ARG GO_VERSION=1.24.0
7+
8+
# Install dependencies
9+
RUN apt-get update && \
10+
apt-get install -y ca-certificates openssl git curl wget build-essential && \
11+
rm -rf /var/lib/apt/lists/*
12+
13+
# Determine architecture
14+
RUN ARCH=$(uname -m) && \
15+
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \
16+
echo "Architecture: $ARCH"
17+
18+
# Download and install Hugo Extended
19+
RUN ARCH=$(uname -m) && \
20+
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \
21+
wget -O hugo_extended_${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \
22+
tar xf hugo_extended_${HUGO_VERSION}.tar.gz && \
23+
mv hugo /usr/bin/hugo && \
24+
rm hugo_extended_${HUGO_VERSION}.tar.gz && \
25+
echo "Hugo installed"
26+
27+
# Download and install Go
28+
RUN ARCH=$(uname -m) && \
29+
if [ "$ARCH" = "aarch64" ]; then ARCH=arm64; else ARCH=amd64; fi && \
30+
wget -O go${GO_VERSION}.linux-${ARCH}.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-${ARCH}.tar.gz && \
31+
tar -C /usr/local -xzf go${GO_VERSION}.linux-${ARCH}.tar.gz && \
32+
rm go${GO_VERSION}.linux-${ARCH}.tar.gz && \
33+
echo "Go installed"
34+
35+
# Export Go path
36+
ENV PATH=$PATH:/usr/local/go/bin
37+
38+
# Verify versions
39+
RUN git --version && \
40+
hugo version && \
41+
go version
42+
43+
# Default shell
44+
CMD ["/bin/bash"]

.devcontainer/devcontainer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "Hugo",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"args": {
6+
"GO_VERSION": "1.24.0",
7+
"HUGO_VERSION": "0.144.2"
8+
}
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"settings": {},
13+
"extensions": [
14+
"bradlc.vscode-tailwindcss",
15+
"budparr.language-hugo-vscode",
16+
"tamasfe.even-better-toml"
17+
]
18+
}
19+
},
20+
"remoteUser": "node",
21+
"postCreateCommand": "npm run project-setup && npm install && npm run dev",
22+
"forwardPorts": [1313]
23+
}

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.github/workflows/main.yml

100644100755
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,42 @@ on:
66
- main
77

88
jobs:
9+
npm-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build project
24+
run: npm run build
25+
26+
- name: Upload build artifacts
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: public
30+
path: public
31+
932
ftp-deploy:
33+
needs: npm-build
1034
runs-on: ubuntu-latest
1135
steps:
1236
- name: Checkout Repository
1337
uses: actions/checkout@v3
1438

39+
- name: Download build artifacts
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: public
43+
path: public
44+
1545
- name: Deploy via FTP
1646
uses: SamKirkland/FTP-Deploy-Action@v4.3.0
1747
with:
@@ -21,6 +51,7 @@ jobs:
2151
password: ${{ secrets.FTP_PASSWORD }}
2252
timeout: 60000
2353
server-dir: '/Hosting/ieee.web.ua.pt/'
54+
local-dir: ./public/
2455
exclude: |
2556
**/.git*
2657
**/.git*/**

.gitignore

100644100755
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
aspnet_client/
1+
Thumbs.db
2+
.DS_Store
3+
.dist
4+
.tmp
5+
.lock
6+
.sass-cache
7+
npm-debug.log
8+
node_modules
9+
builds
10+
package-lock.json
11+
public
12+
resources
13+
.hugo_build.lock
14+
jsconfig.json
15+
hugo_stats.json
16+
go.sum
17+
yarn.lock

.gitlab-ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
stages:
2+
- build
3+
4+
variables:
5+
HUGO_ENV: production
6+
HUGO_VERSION: "0.141.0"
7+
GO_VERSION: "1.23.3"
8+
NODE_VERSION: "18.16.1"
9+
10+
cache:
11+
paths:
12+
- node_modules/
13+
14+
default:
15+
image: node:${NODE_VERSION}
16+
before_script:
17+
- echo "USING NODE ${NODE_VERSION}"
18+
- apt-get update && apt-get install -y curl
19+
- curl -LO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
20+
- tar -xvf hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
21+
- mv hugo /usr/local/bin/
22+
- rm hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
23+
- echo "HUGO ${HUGO_VERSION} INSTALLED"
24+
- curl -LO "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz"
25+
- tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
26+
- export PATH=$PATH:/usr/local/go/bin
27+
- rm go${GO_VERSION}.linux-amd64.tar.gz
28+
- echo "GO ${GO_VERSION} INSTALLED"
29+
- npm install
30+
31+
pages:
32+
stage: build
33+
script:
34+
- npm run project-setup
35+
- npm run build
36+
artifacts:
37+
paths:
38+
- public

.jshintrc

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"maxerr": 50,
3+
"bitwise": true,
4+
"camelcase": false,
5+
"curly": true,
6+
"eqeqeq": true,
7+
"forin": true,
8+
"freeze": true,
9+
"immed": true,
10+
"indent": 2,
11+
"latedef": true,
12+
"newcap": false,
13+
"noarg": true,
14+
"noempty": true,
15+
"nonbsp": true,
16+
"nonew": true,
17+
"plusplus": false,
18+
"undef": true,
19+
"unused": false,
20+
"strict": true,
21+
"maxparams": false,
22+
"maxdepth": 4,
23+
"maxstatements": false,
24+
"maxcomplexity": false,
25+
"maxlen": 400,
26+
"browser": true,
27+
"devel": true,
28+
"asi": false,
29+
"boss": false,
30+
"debug": false,
31+
"eqnull": false,
32+
"es3": false,
33+
"es5": false,
34+
"esversion": 12,
35+
"moz": false,
36+
"evil": true,
37+
"expr": true,
38+
"funcscope": false,
39+
"globalstrict": false,
40+
"iterator": false,
41+
"lastsemic": false,
42+
"laxbreak": false,
43+
"laxcomma": false,
44+
"loopfunc": true,
45+
"multistr": true,
46+
"noyield": false,
47+
"notypeof": false,
48+
"proto": false,
49+
"scripturl": false,
50+
"shadow": false,
51+
"sub": false,
52+
"supernew": false,
53+
"validthis": false,
54+
"globals": {
55+
"jQuery": false,
56+
"google": false,
57+
"$": false
58+
}
59+
}

.markdownlint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"MD033": false,
3+
"MD034": false,
4+
"MD013": false
5+
}

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": ["prettier-plugin-go-template"],
3+
"overrides": [
4+
{
5+
"files": ["*.html"],
6+
"options": {
7+
"parser": "go-template",
8+
"goTemplateBracketSpacing": true,
9+
"bracketSameLine": true
10+
}
11+
}
12+
]
13+
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"bradlc.vscode-tailwindcss",
4+
"budparr.language-hugo-vscode",
5+
"tamasfe.even-better-toml"
6+
]
7+
}

0 commit comments

Comments
 (0)