Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website Update #28

Merged
merged 30 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
659ca85
remove all old content
radenpioneer Jul 2, 2023
84cd7ee
implement basic site layout
radenpioneer Jul 2, 2023
cd17d2d
fix check errors
radenpioneer Jul 2, 2023
2a4256b
implement header
radenpioneer Jul 3, 2023
26b3f37
try implementing hero component
radenpioneer Jul 3, 2023
80a3e3a
make rendering works
radenpioneer Jul 4, 2023
219fb6f
Merge branch 'main' into update/rewrite
radenpioneer Jul 4, 2023
571a4db
format changes
radenpioneer Jul 4, 2023
03b0913
Merge branch 'main' into update/rewrite
radenpioneer Jul 5, 2023
58902a1
implement hero section
radenpioneer Jul 5, 2023
67b53c2
fix preload tag not appearing
radenpioneer Jul 5, 2023
eeb29b2
format code
radenpioneer Jul 5, 2023
6b784fe
upgrade packages
radenpioneer Jul 6, 2023
acf9c38
revamp header using daisyui
radenpioneer Jul 6, 2023
888cdf8
implement menu for mobile
radenpioneer Jul 6, 2023
22f5221
revamp hero section
radenpioneer Jul 6, 2023
57b05ac
fix checks error
radenpioneer Jul 6, 2023
2a6d008
fix content schema error
radenpioneer Jul 6, 2023
28d702b
implement expertise section
radenpioneer Jul 6, 2023
659f4c7
combine home sections into single data collection
radenpioneer Jul 7, 2023
ce3f50d
implement footer & legal section
radenpioneer Jul 7, 2023
3c88e63
implement footer menus
radenpioneer Jul 7, 2023
55117c5
implement page layout
radenpioneer Jul 7, 2023
4f0952d
update legal page
radenpioneer Jul 7, 2023
d43056f
add halaman `tentang`
radenpioneer Jul 7, 2023
45c0730
update packages
radenpioneer Jul 18, 2023
570edcd
update packages
radenpioneer Aug 6, 2023
f284d95
updae lockfile version
radenpioneer Aug 6, 2023
57223a3
Merge branch 'main' into update/rewrite
radenpioneer Aug 6, 2023
73f6827
Merge branch 'main' into update/rewrite
radenpioneer Sep 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install Vercel CLI
run: npm install --global vercel@latest
run: pnpm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install Vercel CLI
run: npm install --global vercel@latest
run: pnpm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# build output
dist/
dist
.astro

# dependencies
node_modules/
node_modules
.pnpm-store

# logs
Expand Down
4 changes: 3 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
FROM gitpod/workspace-node-lts
FROM gitpod/workspace-node-lts

RUN npm i -g vercel
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# build output
dist/
dist
.astro

# dependencies
node_modules/
node_modules
.pnpm-store

# logs
Expand Down
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.associations": {
"*.mdoc": "markdown"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
52 changes: 21 additions & 31 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,62 +1,52 @@
import { defineConfig } from 'astro/config'
import { defineConfig, sharpImageService } from 'astro/config'

// Astro integrations
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import AstroPWA from '@vite-pwa/astro'
import mdx from '@astrojs/mdx'
import markdoc from '@astrojs/markdoc'
import vercel from '@astrojs/vercel/serverless'

// Vite plugins
import Icons from 'unplugin-icons/vite'
import svgr from 'vite-plugin-svgr'
import yaml from '@modyfi/vite-plugin-yaml'

// Other imports
import manifest from './src/includes/manifest.json' assert { type: 'json' }

// https://astro.build/config
export default defineConfig({
site: 'https://www.sentralbisnisdigital.co.id',
site: 'https://www.sbdigital.id',
integrations: [
react(),
mdx(),
markdoc(),
sitemap(),
AstroPWA({
disable: true,
strategies: 'injectManifest',
srcDir: 'src/assets',
srcDir: 'src/includes',
filename: 'sw.ts',
registerType: 'autoUpdate',
manifest: {
name: 'Sentral Bisnis Digital',
short_name: 'Sentral Bisnis Digital',
description: '',
theme_color: '#ffffff',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
manifest,
}),
],

vite: {
plugins: [
yaml(),
svgr(),
Icons({
compiler: 'jsx',
jsx: 'react',
}),
],
},
experimental: {
assets: true,
},
image: {
service: sharpImageService(),
},
compressHTML: true,
output: 'hybrid',
adapter: vercel(),
})
19 changes: 19 additions & 0 deletions markdoc.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineMarkdocConfig, nodes, component } from '@astrojs/markdoc/config'

export default defineMarkdocConfig({
nodes: {
document: {
...nodes.document,
render: null,
},
},

tags: {
wrapper: {
render: component('./src/components/wrapper'),
attributes: {
class: { class: String },
},
},
},
})
54 changes: 29 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"astro": "astro",
"check": "pnpm dlx npm-run-all -s check:*",
"build": "astro build",
"check": "pnpm dlx npm-run-all -s check:*",
"check:astro": "astro check && tsc --noEmit",
"check:style": "pnpm exec prettier --plugin-search-dir=. --check .",
"dev": "astro dev",
Expand All @@ -15,34 +15,38 @@
"start": "pnpm dlx npm-run-all -s build preview"
},
"dependencies": {
"@astrojs/mdx": "0.19.7",
"@astrojs/react": "2.3.2",
"@astrojs/sitemap": "1.4.0",
"@fontsource/red-hat-display": "4.5.12",
"@fontsource/righteous": "4.5.7",
"@astrojs/markdoc": "^0.4.4",
"@astrojs/react": "2.2.1",
"@astrojs/sitemap": "2.0.1",
"@astrojs/vercel": "^3.8.0",
"@fontsource-variable/inter": "^5.0.8",
"@fontsource-variable/red-hat-display": "^5.0.9",
"@iconify/json": "2.2.98",
"@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-navigation-menu": "^1.1.3",
"@svgr/core": "8.0.0",
"@tailwindcss/typography": "0.5.9",
"@vite-pwa/astro": "0.1.2",
"astro": "2.10.15",
"astro-seo": "0.8.0",
"autoprefixer": "10.4.15",
"daisyui": "2.52.0",
"flamethrower-router": "0.0.0-meme.12",
"postcss": "8.4.29",
"@types/marked": "^5.0.1",
"@types/react": "18.2.18",
"@types/react-dom": "^18.2.7",
"@vite-pwa/astro": "0.1.1",
"astro": "2.10.1",
"astro-seo": "0.7.5",
"autoprefixer": "10.4.14",
"daisyui": "3.5.1",
"html-react-parser": "^4.2.0",
"marked": "^6.0.0",
"postcss": "8.4.27",
"postcss-preset-env": "^9.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"sass": "1.66.1",
"tailwindcss": "3.3.3"
},
"devDependencies": {
"@iconify/json": "2.2.110",
"@modyfi/vite-plugin-yaml": "1.0.4",
"@svgr/core": "6.5.1",
"@types/node": "18.17.14",
"@types/react": "18.2.21",
"typescript": "5.2.2",
"unplugin-icons": "0.17.0",
"sass": "1.64.2",
"sharp": "^0.32.4",
"tailwindcss": "3.3.3",
"typescript": "5.1.6",
"unplugin-icons": "0.16.5",
"vite-plugin-pwa": "0.16.4",
"vite-plugin-svgr": "2.4.0",
"vite-plugin-svgr": "3.2.0",
"workbox-cacheable-response": "7.0.0",
"workbox-core": "7.0.0",
"workbox-expiration": "7.0.0",
Expand Down
Loading