質問編集履歴
1
トップページのviewを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -346,6 +346,104 @@
|
|
346
346
|
|
347
347
|
```
|
348
348
|
|
349
|
+
●view トップページ
|
350
|
+
|
351
|
+
```ruby
|
352
|
+
|
353
|
+
<header class='top-page-header'>
|
354
|
+
|
355
|
+
<div class='search-bar-contents'>
|
356
|
+
|
357
|
+
<form class="search-form" action="#">
|
358
|
+
|
359
|
+
<input class='input-box' placeholder='search...'>
|
360
|
+
|
361
|
+
<button class="search-button">
|
362
|
+
|
363
|
+
<%= image_tag "search.png", class:"search-icon" %>
|
364
|
+
|
365
|
+
</button>
|
366
|
+
|
367
|
+
</form>
|
368
|
+
|
369
|
+
</div>
|
370
|
+
|
371
|
+
<div class='nav'>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
<% if user_signed_in? %>
|
376
|
+
|
377
|
+
<li><%= link_to current_user.nickname, "#", class: "user-nickname" %></li>
|
378
|
+
|
379
|
+
<li><%= link_to 'Post Review', reviews_path, class: "movie-list" %></li>
|
380
|
+
|
381
|
+
<li><%= link_to 'LogOut', destroy_user_session_path, method: :delete, class: "logout" %></li>
|
382
|
+
|
383
|
+
<% else %>
|
384
|
+
|
385
|
+
<li><%= link_to 'LogIn', new_user_session_path, class: "login" %></li>
|
386
|
+
|
387
|
+
<li><%= link_to 'SignUP', new_user_registration_path, class: "sign-up" %></li>
|
388
|
+
|
389
|
+
<% end %>
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
</ul>
|
394
|
+
|
395
|
+
</div>
|
396
|
+
|
397
|
+
</header>
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
<section id="screen1">
|
402
|
+
|
403
|
+
<%= link_to image_tag("movie-logo.png", class:"movie-logo-icon"), "/" %>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
<nav>
|
408
|
+
|
409
|
+
<ul>
|
410
|
+
|
411
|
+
<li><a href="#">Home</a></li>
|
412
|
+
|
413
|
+
<li><a href="#">About</a></li>
|
414
|
+
|
415
|
+
<li><a href="#">Services</a></li>
|
416
|
+
|
417
|
+
<li><a href="#">Category</a></li>
|
418
|
+
|
419
|
+
<li><a href="/reviews/index">Review</a></li>
|
420
|
+
|
421
|
+
</ul>
|
422
|
+
|
423
|
+
</nav>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
<div class='title-contents'>
|
428
|
+
|
429
|
+
<p></p>
|
430
|
+
|
431
|
+
<h2>
|
432
|
+
|
433
|
+
貴方が映画の評価をしよう
|
434
|
+
|
435
|
+
</h2>
|
436
|
+
|
437
|
+
</div>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
</section>
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
```
|
446
|
+
|
349
447
|
|
350
448
|
|
351
449
|
### 試したこと
|