作者姓名: Yuan Huang

系統

設定 Nginx 只允許區網連線

location / {
  # First attempt to serve request as file, then
  # as directory, then fall back to displaying a 404.
  #try_files $uri $uri/ =404;

  allow 192.168.0.0/24;
  deny all;

  proxy_pass http://127.0.0.1:3000;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
}
網頁

客製 Bootstrap 5.3

@import '../node_modules/bootstrap/scss/functions';

// 要修改的變數放這裡
$primary: #a8c430;

@import '../node_modules/bootstrap/scss/variables';
@import '../node_modules/bootstrap/scss/variables-dark';

// 要新增的 map 放這裡
$sam-colors: (
  'sam1': #900,
  'sam2': #f10,
);

$theme-colors: map-merge($theme-colors, $sam-colors);

@import '../node_modules/bootstrap/scss/bootstrap';

.custom-class {
  display: none;
}
@include media-breakpoint-up(md) { // 斷點設定
  .custom-class {
    display: block;
  }
}
返回頂端