Viblo
  • Posts
  • Questions
  • Discussions
Announcements
No announcement yet.
All Announcements

Khang

@khangnd

Report
  • Posts
  • Series
  • Questions
  • Answers
  • Clips
  • Followings
  • Followers
  • Tags
  • Reputations
  • Communication

Multiple Laravel theme

Khang
Answered Monday, 4:29 PM

Về cách implement bằng Laravel thì mình ko rõ, nhưng giải pháp chung đối với trường hợp sử dụng nhiều file CSS thì mình thường thấy như sau:

  • File CSS 1 chứa theme cũ
  • File CSS 2 chứa theme mới
  • Bọc một class ngoài cùng cho file CSS 2, ví dụ:
.custom-theme body { }
.custom-theme section { }
.custom-theme .header { }
...
  • Xử lý event switch giao diện đơn giản chỉ cần thêm class .custom-theme vào thẻ body hoặc root nào đó là được.
+2

Tại sao React cần static servers sau khi build

Khang
Answered Monday, 3:39 PM

Sau khi build mà trang index.html của bạn trắng không tức là có vấn đề về đường dẫn đến các file JS, bạn mở thử console xem đúng như mình nói không. Nếu đúng thì giải pháp là trong file package.json, bạn thêm "homepage": "." vào để chỉnh lại đường dẫn, sau đó build lại.

+2

Responsive CSS

Khang
Answered Jan 8th, 12:12 AM

Dùng !important như cách trên, hoặc dùng lại đúng các class cha chứa .content, ở đây là .hero-banner .slider .slide .content-holder .content

+1

Liệu có thể tạo nút cố định để cài đặt PWA cho trang web?

Khang
Answered Dec 29th, 2020 6:46 AM

Trên stackoverflow cũng có câu hỏi tương tự, bạn tham khảo thử xem có solution nào phù hợp: https://stackoverflow.com/q/50332119

0

Làm thế nào để truyền một Object từ View này sang View khác bằng Javascript trong ASP.NET CORE ?

Khang
Answered Dec 22nd, 2020 11:56 AM

JavaScript là ngôn ngữ xử lý từ phía client (tức web browser như Chrome, Firefox, Edge...), còn ASP.NET Core là framework xử lý phía server. Bạn muốn gửi dữ liệu/request từ client qua server thì cần có một controller để xử lý request và trả về response tương ứng.

Bạn có thể tham khảo code mẫu tại đây (lưu ý chỉ là code mẫu, cách code cũng tùy framework): https://www.codeproject.com/Tips/832696/How-to-send-Data-from-JavaScript-to-Csharp-Server.

0

Total post views

8.2K

Reputations

537

Following tags

12

Following users

1

Followers

11

Posts

6

Clips

8

Total questions

2

Total answers

5

Technical skills


JavaScript CSS Java HTML5 SASS VueJS ReactJS jQuery

Organization


Have no organizations yet.

Posts tendency


Resources

  • Posts
  • Organizations
  • Questions
  • Tags
  • Videos
  • Authors
  • Discussions
  • Recommend System
  • Tools
  • Machine Learning
  • System Status

Services

  • Viblo CV Viblo Code
  • Viblo CV Viblo CV
  • Viblo CTF Viblo CTF
  • Viblo Learning Viblo Learning

Mobile App

Get it on Google Play Download on the App Store
QR code

Links

  • Atom Icon

© 2021 Viblo. All rights reserved.

  • About Us
  • Feedback
  • Help
  • FAQs
  • RSS
  • Terms
  • DMCA.com Protection Status