Skip to content

Commit

Permalink
Add html’s doctype and meta tag for responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosarguelles committed Feb 12, 2024
1 parent f727dea commit 5707ec0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/chat.templ
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import "github.com/carlosarguelles/messages/internal"
import "fmt"

templ Chat(chat internal.Chat, username string, messages []internal.Message) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>{ chat.Name }</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/htmx.org/dist/ext/ws.js"></script>
<link rel="stylesheet" href="/public/css/main.css"/>
Expand Down
2 changes: 2 additions & 0 deletions templates/create_chat.templ
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package templates

templ CreateChat() {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>New Chat</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/htmx.org/dist/ext/ws.js"></script>
<link rel="stylesheet" href="/public/css/main.css"/>
Expand Down

0 comments on commit 5707ec0

Please sign in to comment.