|
10 | 10 | name="description"
|
11 | 11 | content="AuthPost is a simple platform where authenticated users share insights about themselves and anything they want people to know about them. This is a TheOdinProject project."
|
12 | 12 | >
|
13 |
| - <%= csrf_meta_tags %> |
14 |
| - <%= csp_meta_tag %> |
15 |
| - <%= yield :head %> |
16 |
| - <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> |
17 |
| - <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> |
18 |
| - <link rel="icon" href="/icon.png" type="image/png"> |
19 |
| - <link rel="icon" href="/icon.svg" type="image/svg+xml"> |
20 |
| - <link rel="apple-touch-icon" href="/icon.png"> |
21 |
| - <%# Includes all stylesheet files in app/assets/stylesheets %> |
22 |
| - <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> |
23 |
| - <%= javascript_importmap_tags %> |
24 |
| - </head> |
25 |
| - <body class="text-white"> |
26 |
| - <header> |
27 |
| - <nav class="navbar navbar-expand-lg bg-dark text-white pt-2"> |
28 |
| - <div class="container-fluid text-white"> |
29 |
| - <%= link_to "AuthPost", root_path, class: "navbar-brand text-white" %> |
30 |
| - <button |
| 13 | + <%= csrf_meta_tags %> |
| 14 | + <%= csp_meta_tag %> |
| 15 | + <%= yield :head %> |
| 16 | + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> |
| 17 | + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> |
| 18 | + <link rel="icon" href="/icon.png" type="image/png"> |
| 19 | + <link rel="icon" href="/icon.svg" type="image/svg+xml"> |
| 20 | + <link rel="apple-touch-icon" href="/icon.png"> |
| 21 | + <%# Includes all stylesheet files in app/assets/stylesheets %> |
| 22 | + <%= stylesheet_link_tag :app, "data-turbo-track": "reload" %> |
| 23 | + <%= javascript_importmap_tags %> |
| 24 | + </head> |
| 25 | + <body class="text-white"> |
| 26 | + <header> |
| 27 | + <nav class="navbar navbar-expand-lg bg-dark text-white pt-2"> |
| 28 | + <div class="container-fluid text-white"> |
| 29 | + <%= link_to "AuthPost", root_path, class: "navbar-brand text-white" %> |
| 30 | + <button |
31 | 31 | class="navbar-toggler text-white bg-white"
|
32 | 32 | type="button"
|
33 | 33 | data-bs-toggle="collapse"
|
|
36 | 36 | aria-expanded="false"
|
37 | 37 | aria-label="Toggle navigation"
|
38 | 38 | >
|
39 |
| - <span class="navbar-toggler-icon"></span> |
40 |
| - </button> |
41 |
| - <div class="collapse navbar-collapse text-white" id="navbarSupportedContent"> |
42 |
| - <ul class="navbar-nav me-auto mb-2 mb-lg-0 text-white"> |
43 |
| - <li class="nav-item"> |
44 |
| - <%= link_to "Home", |
| 39 | + <span class="navbar-toggler-icon"></span> |
| 40 | + </button> |
| 41 | + <div class="collapse navbar-collapse text-white" id="navbarSupportedContent"> |
| 42 | + <ul class="navbar-nav me-auto mb-2 mb-lg-0 text-white"> |
| 43 | + <li class="nav-item"> |
| 44 | + <%= link_to "Home", |
45 | 45 | root_path,
|
46 | 46 | class: "nav-link active text-white",
|
47 | 47 | aria_current: "page" %>
|
48 |
| - </li> |
49 |
| - <li class="nav-item"> |
50 |
| - <a class="nav-link text-white" href="#">About</a> |
51 |
| - </li> |
| 48 | + </li> |
| 49 | + <li class="nav-item"> |
| 50 | + <a class="nav-link text-white" href="#">About</a> |
| 51 | + </li> |
| 52 | + <li class="nav-item"> |
52 | 53 | <li class="nav-item">
|
53 |
| - <li class="nav-item"> |
54 |
| - <%= link_to "https://github.com/nanafox/members-only", class: "nav-link d-flex align-items-center text-decoration-none text-white", target: "_blank" do %> |
55 |
| - <i class="bi bi-github me-2 text-white"></i>Source Code |
56 |
| - <% end %> |
57 |
| - </li> |
| 54 | + <%= link_to "https://github.com/nanafox/members-only", class: "nav-link d-flex align-items-center text-decoration-none text-white", target: "_blank" do %> |
| 55 | + <i class="bi bi-github me-2 text-white"></i>Source Code |
| 56 | + <% end %> |
58 | 57 | </li>
|
59 |
| - </ul> |
60 |
| - <form class="d-flex" role="search"> |
61 |
| - <input |
| 58 | + </li> |
| 59 | + </ul> |
| 60 | + <form class="d-flex" role="search"> |
| 61 | + <input |
62 | 62 | class="form-control me-2"
|
63 | 63 | type="search"
|
64 | 64 | placeholder="Search for posts"
|
65 | 65 | aria-label="Search"
|
66 | 66 | >
|
67 |
| - <button class="btn btn-outline-success" type="submit">Search</button> |
68 |
| - </form> |
69 |
| - <div> |
70 |
| - <ul class="navbar-nav me-auto mb-2 mb-lg-0"> |
71 |
| - <% if user_signed_in? %> |
72 |
| - <li nav-item><%= link_to "My Posts", current_user_posts_path, class: "nav-link text-white" %></li> |
73 |
| - <li nav-item><%= link_to "Profile", edit_user_registration_path, class: "nav-link text-white" %></li> |
74 |
| - <li class="nav-item text-white"><%= link_to "Sign out", |
| 67 | + <button class="btn btn-outline-success" type="submit">Search</button> |
| 68 | + </form> |
| 69 | + <div> |
| 70 | + <ul class="navbar-nav me-auto mb-2 mb-lg-0"> |
| 71 | + <% if user_signed_in? %> |
| 72 | + <li nav-item><%= link_to "My Posts", current_user_posts_path, class: "nav-link text-white" %></li> |
| 73 | + <li nav-item><%= link_to "Profile", edit_user_registration_path, class: "nav-link text-white" %></li> |
| 74 | + <li class="nav-item text-white"><%= link_to "Sign out", |
75 | 75 | destroy_user_session_path,
|
76 | 76 | data: {
|
77 | 77 | turbo_method: :delete,
|
78 | 78 | turbo_confirm: "Are you sure you want to log out?",
|
79 | 79 | },
|
80 | 80 | class: "nav-link text-white" %></li>
|
81 |
| - <% else %> |
82 |
| - <li class="nav-item"><%= link_to "Sign up", new_user_registration_path, class: "nav-link text-white" %></li> |
83 |
| - <li class="nav-item"><%= link_to "Sign in", new_user_session_path, class: "nav-link text-white" %></li> |
84 |
| - <% end %> |
85 |
| - </ul> |
86 |
| - </div> |
87 |
| - </div> |
| 81 | + <% else %> |
| 82 | + <li class="nav-item"><%= link_to "Sign up", new_user_registration_path, class: "nav-link text-white" %></li> |
| 83 | + <li class="nav-item"><%= link_to "Sign in", new_user_session_path, class: "nav-link text-white" %></li> |
| 84 | + <% end %> |
| 85 | + </ul> |
88 | 86 | </div>
|
89 |
| - </nav> |
90 |
| - </header> |
91 |
| - <section |
| 87 | + </div> |
| 88 | + </div> |
| 89 | + </nav> |
| 90 | + </header> |
| 91 | + <section |
92 | 92 | id="main"
|
93 | 93 | class="py-4"
|
94 | 94 | style="background-color: rgba(33,37, 41, 0.95);"
|
95 | 95 | >
|
96 |
| - <main class="container"> |
97 |
| - <% if notice %> |
98 |
| - <p class="notice alert alert-info mt-2" role="alert"><%= notice %></p> |
99 |
| - <% end %> |
100 |
| - <% if alert %> |
101 |
| - <p class="alert alert-warning mt-2" role="alert"><%= alert %></p> |
102 |
| - <% end %> |
103 |
| - <%= yield %> |
104 |
| - </main> |
105 |
| - </section> |
106 |
| - <footer class="bg-dark text-white py-4 position-relative"> |
107 |
| - <div class="container"> |
108 |
| - <div class="row"> |
109 |
| - <!-- About Section --> |
110 |
| - <div class="col-12 col-md-4 mb-3"> |
111 |
| - <h5>About</h5> |
112 |
| - <p>This project is part of the |
113 |
| - <%= link_to "The Odin Project", |
| 96 | + <main class="container"> |
| 97 | + <% if notice %> |
| 98 | + <p class="notice alert alert-info mt-2" role="alert"><%= notice %></p> |
| 99 | + <% end %> |
| 100 | + <% if alert %> |
| 101 | + <p class="alert alert-warning mt-2" role="alert"><%= alert %></p> |
| 102 | + <% end %> |
| 103 | + <%= yield %> |
| 104 | + </main> |
| 105 | + </section> |
| 106 | + <footer class="bg-dark text-white py-4 position-relative"> |
| 107 | + <div class="container"> |
| 108 | + <div class="row"> |
| 109 | + <!-- About Section --> |
| 110 | + <div class="col-12 col-md-4 mb-3"> |
| 111 | + <h5>About</h5> |
| 112 | + <p>This project is part of the |
| 113 | + <%= link_to "The Odin Project", |
114 | 114 | "https://theodinproject.com",
|
115 | 115 | class: "text-white link-opacity-75-hover" %>
|
116 |
| - Ruby on Rails curriculum</p> |
117 |
| - </div> |
118 |
| - <!-- Quick Links Section --> |
119 |
| - <div class="col-12 col-md-4 mb-3"> |
120 |
| - <h5>Quick Links</h5> |
121 |
| - <ul class="list-unstyled d-flex flex-wrap gap-4"> |
122 |
| - <li><%= link_to "Home", root_path, class: "text-white text-decoration-none" %></li> |
123 |
| - <li><%= link_to "About", "#", class: "text-white text-decoration-none" %></li> |
124 |
| - <li><%= link_to "Register", |
| 116 | + Ruby on Rails curriculum</p> |
| 117 | + </div> |
| 118 | + <!-- Quick Links Section --> |
| 119 | + <div class="col-12 col-md-4 mb-3"> |
| 120 | + <h5>Quick Links</h5> |
| 121 | + <ul class="list-unstyled d-flex flex-wrap gap-4"> |
| 122 | + <li><%= link_to "Home", root_path, class: "text-white text-decoration-none" %></li> |
| 123 | + <li><%= link_to "About", "#", class: "text-white text-decoration-none" %></li> |
| 124 | + <li><%= link_to "Register", |
125 | 125 | new_user_registration_path,
|
126 | 126 | class: "text-white text-decoration-none" %></li>
|
127 |
| - <li><%= link_to "Sign in", |
| 127 | + <li><%= link_to "Sign in", |
128 | 128 | new_user_session_path,
|
129 | 129 | class: "text-white text-decoration-none" %></li>
|
130 |
| - </ul> |
131 |
| - </div> |
132 |
| - <!-- Contact Section --> |
133 |
| - <div class="col-12 col-md-4 mb-3"> |
134 |
| - <h5>Contact Me</h5> |
135 |
| - <address> |
136 |
| - <strong>Maxwell Nana Forson</strong><br> |
137 |
| - </address> |
138 |
| - <div id="links" class="d-flex flex-wrap gap-2"> |
139 |
| - <%= link_to "https://github.com/nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
140 |
| - <i class="bi bi-github me-2"></i>GitHub |
141 |
| - <% end %> |
142 |
| - <%= link_to "https://x.com/_nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
143 |
| - <i class="bi bi-twitter me-2"></i>_nanafox |
144 |
| - <% end %> |
145 |
| - <%= link_to "https://wa.me/233594059579", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
146 |
| - <i class="bi bi-whatsapp me-2"></i>WhatsApp |
147 |
| - <% end %> |
148 |
| - <%= link_to "https://www.linkedin.com/in/maxwellnanaforson", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
149 |
| - <i class="bi bi-linkedin me-2"></i>LinkedIn |
150 |
| - <% end %> |
151 |
| - <%= link_to "https://www.mnforson.live", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
152 |
| - <i class="bi bi-house-door me-2"></i>Website |
153 |
| - <% end %> |
154 |
| - </div> |
155 |
| - </div> |
156 |
| - </div> |
157 |
| - <div class="text-center mt-3"> |
158 |
| - <small>© |
159 |
| - <%= Time.current.year %> |
160 |
| - AuthPost. All rights reserved.</small> |
| 130 | + </ul> |
| 131 | + </div> |
| 132 | + <!-- Contact Section --> |
| 133 | + <div class="col-12 col-md-4 mb-3"> |
| 134 | + <h5>Contact Me</h5> |
| 135 | + <address> |
| 136 | + <strong>Maxwell Nana Forson</strong><br> |
| 137 | + </address> |
| 138 | + <div id="links" class="d-flex flex-wrap gap-2"> |
| 139 | + <%= link_to "https://github.com/nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
| 140 | + <i class="bi bi-github me-2"></i>GitHub |
| 141 | + <% end %> |
| 142 | + <%= link_to "https://x.com/_nanafox", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
| 143 | + <i class="bi bi-twitter me-2"></i>_nanafox |
| 144 | + <% end %> |
| 145 | + <%= link_to "https://wa.me/233594059579", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
| 146 | + <i class="bi bi-whatsapp me-2"></i>WhatsApp |
| 147 | + <% end %> |
| 148 | + <%= link_to "https://www.linkedin.com/in/maxwellnanaforson", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
| 149 | + <i class="bi bi-linkedin me-2"></i>LinkedIn |
| 150 | + <% end %> |
| 151 | + <%= link_to "https://www.mnforson.live", class: "text-white d-flex align-items-center text-decoration-none", target: "_blank" do %> |
| 152 | + <i class="bi bi-house-door me-2"></i>Website |
| 153 | + <% end %> |
161 | 154 | </div>
|
162 | 155 | </div>
|
163 |
| - </footer> |
164 |
| - </body> |
165 |
| - </html> |
| 156 | + </div> |
| 157 | + <div class="text-center mt-3"> |
| 158 | + <small>© |
| 159 | + <%= Time.current.year %> |
| 160 | + AuthPost. All rights reserved.</small> |
| 161 | + </div> |
| 162 | + </div> |
| 163 | + </footer> |
| 164 | + </body> |
| 165 | +</html> |
0 commit comments