質問編集履歴

6

修正しました。

2021/06/12 17:32

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
1
  Q表題の通り、「レスポンシブ対応」でwidth:769; 未満になるとデザインが崩れてしまうため、質問しました。
2
2
 
3
+
4
+
3
- 追記で質問です。
5
+ 追記で3点質問です。
4
6
 
5
7
  Q.SCss(serviceのhover)が文字のみがhover対象になっており、画像全体をhoverしたときに色が薄くなるようにしたいです。どのようにしたらよろしいですか?
6
8
 
@@ -12,6 +14,40 @@
12
14
 
13
15
 
14
16
 
17
+ =======================
18
+
19
+ Q.JQueryにエラーが表示されます。
20
+
21
+ 「if($win.width()>768px){」width()>768pxの768pxがどうやら原因のようです。(消すとエラーが6つ消えます。)
22
+
23
+ この原因がなぜなのかわからないため、質問しました。
24
+
25
+ ・やったこと
26
+
27
+ ```base.scss
28
+
29
+ @mixin overTab {
30
+
31
+ @media print,screen and (max-width: 768px) and (max-width: 960px) {
32
+
33
+ @content;
34
+
35
+ }
36
+
37
+
38
+
39
+ }
40
+
41
+ ```
42
+
43
+ をmax-width: 768px→min-width: 768pxにいじりましたが
44
+
45
+ 、変わりませんでした。
46
+
47
+
48
+
49
+ ======================
50
+
15
51
 
16
52
 
17
53
 
@@ -32,8 +68,6 @@
32
68
 
33
69
 
34
70
 
35
-
36
-
37
71
  ※Sassで記入しています。
38
72
 
39
73
  コンパイル済みです。
@@ -44,23 +78,9 @@
44
78
 
45
79
 
46
80
 
47
-
48
-
49
81
  ```HTML
50
82
 
51
- <!DOCTYPE html>
83
+ html 前半省)文字制限により
52
-
53
- <html lang="en">
54
-
55
- <head>
56
-
57
- <meta charset="UTF-8">
58
-
59
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
60
-
61
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
62
-
63
- <title>Cresta Design</title>
64
84
 
65
85
  <link rel="stylesheet" href="css/destyle.css">
66
86
 
@@ -94,13 +114,13 @@
94
114
 
95
115
 
96
116
 
97
- <li class="list-item"><a href="#">Concept</a></li>
117
+ <li class="list-item"><a href="#">Concept</a></li>(修正済み)
98
-
118
+
99
- <li class="list-item"><a href="#">Service</a></li>
119
+ <li class="list-item"><a href="#">Service</a></li>(修正済み)
100
-
120
+
101
- <li class="list-item"><a href="#"> Works</a></li>
121
+ <li class="list-item"><a href="#"> Works</a></li>(修正済み)
102
-
122
+
103
- <li class="list-item"><a href="./concept">Contact</a></li>
123
+ <li class="list-item"><a href="./concept">Contact</a></li>←(修正済み)
104
124
 
105
125
  </ul>
106
126
 
@@ -378,324 +398,288 @@
378
398
 
379
399
 
380
400
 
381
- ```base.scss
401
+ ```work.scss
402
+
382
-
403
+ .works{
404
+
383
- @mixin overTab {
405
+ max-width: 1440px;
406
+
384
-
407
+ //max-height: 986px;
408
+
409
+
410
+
385
- @media print,screen and (min-width: 768px) and (max-width: 960px) {
411
+ background-image: url(../../image/works-bgi@2x.jpg);
412
+
386
-
413
+ background-size: cover;
414
+
387
- @content;
415
+ background-position: center;
416
+
388
-
417
+ background-repeat: no-repeat;
418
+
419
+
420
+
389
- }
421
+ }
422
+
423
+
424
+
390
-
425
+ .works-title{
426
+
391
-
427
+ //padding-top: 105px;
392
-
428
+
393
- }
429
+ }
430
+
431
+
432
+
394
-
433
+ .works-list{
434
+
395
-
435
+ display: flex ;
436
+
437
+ justify-content: space-between;
438
+
439
+ padding: 80px 220px 80px 220px;
440
+
441
+ text-align: center;
442
+
443
+ margin: 0 auto;
444
+
445
+ @include overTab{
446
+
447
+ display: block;
448
+
449
+ padding: 0 4vw;
450
+
451
+ margin: 50px 27px 80px;
452
+
453
+ }
454
+
455
+
456
+
457
+ .works-item{
458
+
459
+ background:#fff;
460
+
461
+ width: 32%;
462
+
463
+
464
+
465
+ display: flex;
466
+
467
+ flex-direction: column-reverse;
468
+
469
+ justify-content: space-between;
470
+
471
+ border: 1px solid;
472
+
473
+ //overflow: hidden;
474
+
475
+ + .work-item{
476
+
477
+ margin-left: 20px;
478
+
479
+ border: 1px solid;
480
+
481
+
482
+
483
+ }
484
+
485
+ @include overTab{
486
+
487
+ width: 320px;
488
+
489
+ width: 100%;
490
+
491
+ margin: 0 auto 30px;
492
+
493
+
494
+
495
+
496
+
497
+ }
498
+
499
+
500
+
501
+ .works-text{
502
+
503
+
504
+
505
+ padding: 25px 20px;
506
+
507
+ text-align: center;
508
+
509
+ .works-text:nth-child(even){
510
+
511
+ padding: 15px 20px 53px 20px;
512
+
513
+ }
514
+
515
+
516
+
517
+
518
+
519
+ }
520
+
521
+
522
+
523
+ .works-image{
524
+
525
+
526
+
527
+
528
+
529
+ }
530
+
531
+ }
532
+
533
+
534
+
535
+ .works-link{
536
+
537
+ padding: 80px 602px 247px 602px;
538
+
539
+ >a{
540
+
541
+
542
+
543
+ }
544
+
545
+ }
546
+
547
+ }
396
548
 
397
549
  ```
398
550
 
551
+
552
+
399
- ```work.scss
553
+ ```service.scss
400
-
554
+
401
- .works{
555
+ .service{
556
+
402
-
557
+ margin: 0 auto;
558
+
559
+
560
+
561
+ }
562
+
563
+
564
+
565
+ .service-list{
566
+
567
+ display: flex;
568
+
569
+ @include overTab {
570
+
571
+ display: block;
572
+
403
- max-width: 1440px;
573
+ margin-bottom: 40px;
574
+
404
-
575
+ padding: 0 4vw;
576
+
577
+
578
+
579
+ }
580
+
581
+ .service-item{
582
+
583
+ width: 33.3%;
584
+
585
+ text-align: center;
586
+
587
+ @include overTab{
588
+
405
- //max-height: 986px;
589
+ //display: block;
406
-
407
-
408
-
409
- background-image: url(../../image/works-bgi@2x.jpg);
590
+
410
-
411
- background-size: cover;
591
+ margin: 0 auto ;
412
-
592
+
413
- background-position: center;
593
+ width: 100%;
414
-
594
+
595
+
596
+
415
- background-repeat: no-repeat;
597
+ background-repeat: no-repeat;
598
+
599
+ + .service-item{
600
+
601
+ padding-top: 30px;
602
+
603
+ }
604
+
605
+ }
606
+
607
+
608
+
609
+
610
+
611
+ >a {
612
+
613
+ width: 100%;
614
+
615
+ text-align: center;
616
+
617
+ color: #fff;
618
+
619
+ line-height: 320px;
620
+
621
+ font-size: 4rem;
622
+
623
+ font-weight: bold;
624
+
625
+ font-style: italic;
626
+
627
+ @include overTab{
628
+
629
+ line-height: 250px;
630
+
631
+ text-align: center;
632
+
633
+ }
634
+
635
+
636
+
637
+ }
638
+
639
+
640
+
641
+ >a:hover{
642
+
643
+ background-color: rgba(40,47,53,.7);
644
+
645
+ transition: .3s;
646
+
647
+
648
+
649
+ }
650
+
651
+
652
+
653
+ }
416
654
 
417
655
 
418
656
 
657
+ .service1{
658
+
659
+ background-image: url(../../image/service-img01@2x.jpg);
660
+
661
+
662
+
663
+ }
664
+
665
+ .service2{
666
+
667
+ background-image: url(../../image/service-img02@2x.jpg);
668
+
669
+
670
+
671
+ }
672
+
673
+ .service3{
674
+
675
+ background-image: url(../../image/sevice-img03@2x.jpg);
676
+
677
+
678
+
679
+ }
680
+
681
+
682
+
419
683
  }
420
684
 
421
-
422
-
423
- .works-title{
424
-
425
- //padding-top: 105px;
426
-
427
- }
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
- .works-list{
438
-
439
- display: flex ;
440
-
441
- justify-content: space-between;
442
-
443
- padding: 80px 220px 80px 220px;
444
-
445
- text-align: center;
446
-
447
- margin: 0 auto;
448
-
449
- @include overTab{
450
-
451
- display: block;
452
-
453
- padding: 0 4vw;
454
-
455
- margin: 50px 27px 80px;
456
-
457
- }
458
-
459
-
460
-
461
- .works-item{
462
-
463
- background:#fff;
464
-
465
- width: 32%;
466
-
467
-
468
-
469
- display: flex;
470
-
471
- flex-direction: column-reverse;
472
-
473
- justify-content: space-between;
474
-
475
- border: 1px solid;
476
-
477
- //overflow: hidden;
478
-
479
- + .work-item{
480
-
481
- margin-left: 20px;
482
-
483
- border: 1px solid;
484
-
485
-
486
-
487
- }
488
-
489
- @include overTab{
490
-
491
- width: 320px;
492
-
493
- width: 100%;
494
-
495
- margin: 0 auto 30px;
496
-
497
-
498
-
499
-
500
-
501
- }
502
-
503
-
504
-
505
-
506
-
507
-
508
-
509
-
510
-
511
- .works-text{
512
-
513
-
514
-
515
- padding: 25px 20px;
516
-
517
- text-align: center;
518
-
519
- .works-text:nth-child(even){
520
-
521
- padding: 15px 20px 53px 20px;
522
-
523
- }
524
-
525
-
526
-
527
-
528
-
529
- }
530
-
531
-
532
-
533
- .works-image{
534
-
535
-
536
-
537
-
538
-
539
- }
540
-
541
- }
542
-
543
-
544
-
545
- .works-link{
546
-
547
- padding: 80px 602px 247px 602px;
548
-
549
- >a{
550
-
551
-
552
-
553
- }
554
-
555
- }
556
-
557
- }
558
-
559
685
  ```
560
-
561
-
562
-
563
- ```service.scss
564
-
565
- .service{
566
-
567
- margin: 0 auto;
568
-
569
-
570
-
571
- }
572
-
573
-
574
-
575
- .service-list{
576
-
577
- display: flex;
578
-
579
- @include overTab {
580
-
581
- display: block;
582
-
583
- margin-bottom: 40px;
584
-
585
- padding: 0 4vw;
586
-
587
-
588
-
589
- }
590
-
591
- .service-item{
592
-
593
- width: 33.3%;
594
-
595
- text-align: center;
596
-
597
- @include overTab{
598
-
599
- //display: block;
600
-
601
- margin: 0 auto ;
602
-
603
- width: 100%;
604
-
605
-
606
-
607
- background-repeat: no-repeat;
608
-
609
- + .service-item{
610
-
611
- padding-top: 30px;
612
-
613
- }
614
-
615
- }
616
-
617
-
618
-
619
-
620
-
621
- >a {
622
-
623
- width: 100%;
624
-
625
- text-align: center;
626
-
627
- color: #fff;
628
-
629
- line-height: 320px;
630
-
631
- font-size: 4rem;
632
-
633
- font-weight: bold;
634
-
635
- font-style: italic;
636
-
637
- @include overTab{
638
-
639
- line-height: 250px;
640
-
641
- text-align: center;
642
-
643
- }
644
-
645
-
646
-
647
- }
648
-
649
-
650
-
651
- >a:hover{
652
-
653
- background-color: rgba(40,47,53,.7);
654
-
655
- transition: .3s;
656
-
657
-
658
-
659
- }
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
- }
670
-
671
-
672
-
673
- .service1{
674
-
675
- background-image: url(../../image/service-img01@2x.jpg);
676
-
677
-
678
-
679
- }
680
-
681
- .service2{
682
-
683
- background-image: url(../../image/service-img02@2x.jpg);
684
-
685
-
686
-
687
- }
688
-
689
- .service3{
690
-
691
- background-image: url(../../image/sevice-img03@2x.jpg);
692
-
693
-
694
-
695
- }
696
-
697
-
698
-
699
- }
700
-
701
- ```

5

修正しました。

2021/06/12 17:32

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,15 @@
2
2
 
3
3
  追記で質問です。
4
4
 
5
- SCss(serviceのhover)が文字のみがhover対象になっており、画像全体をhoverしたときに色が薄くなるようにしたいです。どのようにしたらよろしいですか?
5
+ Q.SCss(serviceのhover)が文字のみがhover対象になっており、画像全体をhoverしたときに色が薄くなるようにしたいです。どのようにしたらよろしいですか?
6
+
7
+
8
+
9
+ Q.header部分に余白があります。
10
+
11
+ こちらはなぜ起こるのでしょうか?
12
+
13
+
6
14
 
7
15
 
8
16
 
@@ -36,8 +44,6 @@
36
44
 
37
45
 
38
46
 
39
- [コードzipファイル](https://15.gigafile.nu/0619-d275cb6ef5a9e40f86c9e830f969ac2f2)
40
-
41
47
 
42
48
 
43
49
  ```HTML
@@ -60,6 +66,8 @@
60
66
 
61
67
  <link rel="stylesheet" href="css/style.css">
62
68
 
69
+ <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
70
+
63
71
  </head>
64
72
 
65
73
  <body>
@@ -86,13 +94,13 @@
86
94
 
87
95
 
88
96
 
89
- <li class="list-item"><a href="#">Concept</li></a>
97
+ <li class="list-item"><a href="#">Concept</a></li>
90
-
98
+
91
- <li class="list-item"><a href="#">Service</li></a>
99
+ <li class="list-item"><a href="#">Service</a></li>
92
-
100
+
93
- <li class="list-item"><a href="#"> Works</li></a>
101
+ <li class="list-item"><a href="#"> Works</a></li>
94
-
102
+
95
- <li class="list-item"><a href="./concept">Contact</li></a>
103
+ <li class="list-item"><a href="./concept">Contact</a></li>
96
104
 
97
105
  </ul>
98
106
 
@@ -118,9 +126,17 @@
118
126
 
119
127
  <div class="image-inner">
120
128
 
121
- <div class="main-image">
129
+ <div class="fv">
130
+
122
-
131
+ <ul class="slider">
132
+
123
- <!--<img src="./image/fv-bgi_01@2x.jpg" alt="">-->
133
+ <li><img src="./image/fv-bgi_01@2x.jpg" alt=""></li>
134
+
135
+ <li><img src="./image/fv-bgi_02@2x.jpg" alt=""></li>
136
+
137
+ <li><img src="./image/fv-bgi_03@2x.jpg" alt=""></li>
138
+
139
+ </ul>
124
140
 
125
141
  </div>
126
142
 
@@ -352,6 +368,8 @@
352
368
 
353
369
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
354
370
 
371
+ <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
372
+
355
373
  </body>
356
374
 
357
375
  </html>
@@ -360,9 +378,7 @@
360
378
 
361
379
 
362
380
 
363
-
364
-
365
- ```scss(base.scss)
381
+ ```base.scss
366
382
 
367
383
  @mixin overTab {
368
384
 
@@ -380,9 +396,7 @@
380
396
 
381
397
  ```
382
398
 
383
-
384
-
385
- ```SCSS(work.scss
399
+ ```work.scss
386
400
 
387
401
  .works{
388
402
 
@@ -546,7 +560,7 @@
546
560
 
547
561
 
548
562
 
549
- ```Service.scss
563
+ ```service.scss
550
564
 
551
565
  .service{
552
566
 
@@ -644,10 +658,18 @@
644
658
 
645
659
  }
646
660
 
647
- }
661
+
662
+
663
+
648
664
 
649
665
 
650
666
 
667
+
668
+
669
+ }
670
+
671
+
672
+
651
673
  .service1{
652
674
 
653
675
  background-image: url(../../image/service-img01@2x.jpg);

4

修正しました

2021/06/12 16:16

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,10 @@
20
20
 
21
21
  何が原因なのか分からず質問しました。恐れ入りますがよろしくお願いいたします。
22
22
 
23
+ [900pxリンク](https://www.6666666.jp/html/20200213/)
24
+
25
+
26
+
23
27
 
24
28
 
25
29
  ※Sassで記入しています。

3

修正しました

2021/06/12 10:04

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -358,6 +358,26 @@
358
358
 
359
359
 
360
360
 
361
+ ```scss(base.scss)
362
+
363
+ @mixin overTab {
364
+
365
+ @media print,screen and (min-width: 768px) and (max-width: 960px) {
366
+
367
+ @content;
368
+
369
+ }
370
+
371
+
372
+
373
+ }
374
+
375
+
376
+
377
+ ```
378
+
379
+
380
+
361
381
  ```SCSS(work.scss)
362
382
 
363
383
  .works{

2

修正しました

2021/06/12 08:55

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -1,10 +1,16 @@
1
- 表題の通り、「レスポンシブ対応」で7width:769; 未満になるとデザインが崩れてしまうため、質問しました。
1
+ Q表題の通り、「レスポンシブ対応」でwidth:769; 未満になるとデザインが崩れてしまうため、質問しました。
2
+
2
-
3
+ 追記で質問です。
4
+
3
-
5
+ SCss(serviceのhover)が文字のみがhover対象になっており、画像全体をhoverしたときに色が薄くなるようにしたいです。どのようにしたらよろしいですか?
4
-
6
+
7
+
8
+
9
+
10
+
5
- やったこと
11
+ やったこと
6
-
12
+
7
- 原因がimgタグのwidth: 100%;なのか気になり「general.scss」のimg,bodyに@include OverTab{}を付けましたが
13
+ 原因がimgタグのwidth: 100%;なのか気になり「general.scss」のimg,bodyに@include OverTab{}を付けましたが
8
14
 
9
15
  反応しない
10
16
 
@@ -12,10 +18,6 @@
12
18
 
13
19
  ・調べて900px以上に設定することがベストと書いていたため気になり調べ、行ったが反応しませんでした
14
20
 
15
-
16
-
17
-
18
-
19
21
  何が原因なのか分からず質問しました。恐れ入りますがよろしくお願いいたします。
20
22
 
21
23
 
@@ -31,3 +33,623 @@
31
33
 
32
34
 
33
35
  [コードzipファイル](https://15.gigafile.nu/0619-d275cb6ef5a9e40f86c9e830f969ac2f2)
36
+
37
+
38
+
39
+ ```HTML
40
+
41
+ <!DOCTYPE html>
42
+
43
+ <html lang="en">
44
+
45
+ <head>
46
+
47
+ <meta charset="UTF-8">
48
+
49
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
50
+
51
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
52
+
53
+ <title>Cresta Design</title>
54
+
55
+ <link rel="stylesheet" href="css/destyle.css">
56
+
57
+ <link rel="stylesheet" href="css/style.css">
58
+
59
+ </head>
60
+
61
+ <body>
62
+
63
+ <!--ヘッダー-->
64
+
65
+ <header class="header">
66
+
67
+ <div class="header-inner">
68
+
69
+
70
+
71
+ <div id="logo">
72
+
73
+ <p> Cresta Design</p>
74
+
75
+ </div>
76
+
77
+ <div class="header-wrapper">
78
+
79
+ <nav class="nav">
80
+
81
+ <ul class="header-list">
82
+
83
+
84
+
85
+ <li class="list-item"><a href="#">Concept</li></a>
86
+
87
+ <li class="list-item"><a href="#">Service</li></a>
88
+
89
+ <li class="list-item"><a href="#"> Works</li></a>
90
+
91
+ <li class="list-item"><a href="./concept">Contact</li></a>
92
+
93
+ </ul>
94
+
95
+ </nav>
96
+
97
+ </div>
98
+
99
+
100
+
101
+ <button class="burger-btn">
102
+
103
+ <span class="bar-bar_top"></span>
104
+
105
+ <span class="bar-bar_mid"></span>
106
+
107
+ <span class="bar-bar_bottom"></span>
108
+
109
+ </button>
110
+
111
+
112
+
113
+
114
+
115
+ <div class="image-inner">
116
+
117
+ <div class="main-image">
118
+
119
+ <!--<img src="./image/fv-bgi_01@2x.jpg" alt="">-->
120
+
121
+ </div>
122
+
123
+ <div class="image-message">
124
+
125
+ <p>Design for Smile. <br class="sp-br">快適なオフィスを デザインする</p>
126
+
127
+ </div>
128
+
129
+ </div>
130
+
131
+ </div>
132
+
133
+
134
+
135
+ </header>
136
+
137
+
138
+
139
+
140
+
141
+ <!---->
142
+
143
+
144
+
145
+ <!--メイン-->
146
+
147
+ <main class="main">
148
+
149
+ <!--コンセプト-->
150
+
151
+ <section class="concept">
152
+
153
+ <h2 class="sub-title ">CONCEPT</h2>
154
+
155
+ <div class="section-inner">
156
+
157
+ <p class="message">
158
+
159
+ “働きたくなる空間”をデザインすることで <br class="pc-br">
160
+
161
+ 人々を幸せにする。"
162
+
163
+ </p>
164
+
165
+ <div class="explain">
166
+
167
+ <p class="text">私たちは、オフィスに特化した空間デザイン専門としております。その理由は、「働きたくなる空間で仕事ができれば多くの人を
168
+
169
+ 幸せにできるのではないか」と考えるためです。そんな想いの株式会社Cresta Designだからこそできる空間デザインを提供させて
170
+
171
+ いただきます。
172
+
173
+ </p>
174
+
175
+ <div class="concept-image">
176
+
177
+ <img src="image/concept-image@2x.jpg" alt="コンセプトイメージ">
178
+
179
+ </div>
180
+
181
+
182
+
183
+ </div>
184
+
185
+ <div class="section-bottom concept-bottom text-right">Our concept </div>
186
+
187
+ </div>
188
+
189
+
190
+
191
+
192
+
193
+ </section>
194
+
195
+ <!---->
196
+
197
+ <!--Works-->
198
+
199
+ <section class="works">
200
+
201
+ <h2 class="sub-title text-right text-white works-title">works</h2>
202
+
203
+ <ul class="works-list">
204
+
205
+ <li class="works-item">
206
+
207
+ <a href="#">
208
+
209
+ <p class="works-text">
210
+
211
+ 新規サイトを公開しました。今回のサイトは <br>
212
+
213
+ 白と黒を基調にしたミニマルなデザインに <br>
214
+
215
+ なっています。
216
+
217
+ </p>
218
+
219
+ </a>
220
+
221
+ <div class="works-image"><img src="image/card-img01@2x.jpg" alt="" ></div>
222
+
223
+ </li>
224
+
225
+ <li class="works-item">
226
+
227
+ <a href="#">
228
+
229
+ <p class="works-text">
230
+
231
+ 新規サイトを公開しました。今回のサイトは <br>
232
+
233
+ 白と黒を基調にした
234
+
235
+ </p>
236
+
237
+ </a>
238
+
239
+ <div class="works-image"><img src="image/card-img02@2x.jpg" alt="" ></div>
240
+
241
+ </li>
242
+
243
+ <li class="works-item">
244
+
245
+ <a href="#">
246
+
247
+ <p class="works-text">
248
+
249
+ 新規サイトを公開しました。今回のサイトは <br>
250
+
251
+ 白と黒を基調にしたミニマルなデザインに <br>
252
+
253
+ なっています。
254
+
255
+ </p>
256
+
257
+ </a>
258
+
259
+ <div class="works-image"><img src="image/card-img03@2x.jpg" alt="" ></div>
260
+
261
+ </li>
262
+
263
+ </ul>
264
+
265
+ <div class="works-link cmn-link">
266
+
267
+ <a href="#">
268
+
269
+ <p>View more</p>
270
+
271
+ </a>
272
+
273
+ </div>
274
+
275
+
276
+
277
+ <div class="section-bottom text-white">Our works </div>
278
+
279
+ </section>
280
+
281
+ <!---->
282
+
283
+
284
+
285
+ <!--Service-->
286
+
287
+ <section class="service">
288
+
289
+ <h2 class="sub-title">Service</h2>
290
+
291
+ <ul class="service-list">
292
+
293
+ <li class="service-item service1"><a href="#">Hearing</a></li>
294
+
295
+ <li class="service-item service2"><a href="#">Planning</a></li>
296
+
297
+ <li class="service-item service3"><a href="#">Direction</a></li>
298
+
299
+ </ul>
300
+
301
+
302
+
303
+ <div class="section-bottom text-right">Our service </div>
304
+
305
+ </section>
306
+
307
+ <!---->
308
+
309
+ <!--Contact-->
310
+
311
+ <section class="contact bg-contact">
312
+
313
+ <h2 class="sub-title text-right text-white contact-title">Contact</h2>
314
+
315
+ <div class="contact-inner">
316
+
317
+
318
+
319
+ <p class="contact-text">お気軽にご相談ください。</p>
320
+
321
+ <a href="./contact" class="cmn-link contact-link">Contact</a>
322
+
323
+ <div class="section-bottom text-white">Contact us </div>
324
+
325
+ </div>
326
+
327
+
328
+
329
+ </section>
330
+
331
+ <!---->
332
+
333
+
334
+
335
+ </main>
336
+
337
+ <!--メイン-->
338
+
339
+
340
+
341
+
342
+
343
+ <footer class="footer">
344
+
345
+ <p>&copy; cresta.design all rights reserved</p>
346
+
347
+ </footer>
348
+
349
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
350
+
351
+ </body>
352
+
353
+ </html>
354
+
355
+ ```
356
+
357
+
358
+
359
+
360
+
361
+ ```SCSS(work.scss)
362
+
363
+ .works{
364
+
365
+ max-width: 1440px;
366
+
367
+ //max-height: 986px;
368
+
369
+
370
+
371
+ background-image: url(../../image/works-bgi@2x.jpg);
372
+
373
+ background-size: cover;
374
+
375
+ background-position: center;
376
+
377
+ background-repeat: no-repeat;
378
+
379
+
380
+
381
+ }
382
+
383
+
384
+
385
+ .works-title{
386
+
387
+ //padding-top: 105px;
388
+
389
+ }
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+ .works-list{
400
+
401
+ display: flex ;
402
+
403
+ justify-content: space-between;
404
+
405
+ padding: 80px 220px 80px 220px;
406
+
407
+ text-align: center;
408
+
409
+ margin: 0 auto;
410
+
411
+ @include overTab{
412
+
413
+ display: block;
414
+
415
+ padding: 0 4vw;
416
+
417
+ margin: 50px 27px 80px;
418
+
419
+ }
420
+
421
+
422
+
423
+ .works-item{
424
+
425
+ background:#fff;
426
+
427
+ width: 32%;
428
+
429
+
430
+
431
+ display: flex;
432
+
433
+ flex-direction: column-reverse;
434
+
435
+ justify-content: space-between;
436
+
437
+ border: 1px solid;
438
+
439
+ //overflow: hidden;
440
+
441
+ + .work-item{
442
+
443
+ margin-left: 20px;
444
+
445
+ border: 1px solid;
446
+
447
+
448
+
449
+ }
450
+
451
+ @include overTab{
452
+
453
+ width: 320px;
454
+
455
+ width: 100%;
456
+
457
+ margin: 0 auto 30px;
458
+
459
+
460
+
461
+
462
+
463
+ }
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+ .works-text{
474
+
475
+
476
+
477
+ padding: 25px 20px;
478
+
479
+ text-align: center;
480
+
481
+ .works-text:nth-child(even){
482
+
483
+ padding: 15px 20px 53px 20px;
484
+
485
+ }
486
+
487
+
488
+
489
+
490
+
491
+ }
492
+
493
+
494
+
495
+ .works-image{
496
+
497
+
498
+
499
+
500
+
501
+ }
502
+
503
+ }
504
+
505
+
506
+
507
+ .works-link{
508
+
509
+ padding: 80px 602px 247px 602px;
510
+
511
+ >a{
512
+
513
+
514
+
515
+ }
516
+
517
+ }
518
+
519
+ }
520
+
521
+ ```
522
+
523
+
524
+
525
+ ```Service.scss
526
+
527
+ .service{
528
+
529
+ margin: 0 auto;
530
+
531
+
532
+
533
+ }
534
+
535
+
536
+
537
+ .service-list{
538
+
539
+ display: flex;
540
+
541
+ @include overTab {
542
+
543
+ display: block;
544
+
545
+ margin-bottom: 40px;
546
+
547
+ padding: 0 4vw;
548
+
549
+
550
+
551
+ }
552
+
553
+ .service-item{
554
+
555
+ width: 33.3%;
556
+
557
+ text-align: center;
558
+
559
+ @include overTab{
560
+
561
+ //display: block;
562
+
563
+ margin: 0 auto ;
564
+
565
+ width: 100%;
566
+
567
+
568
+
569
+ background-repeat: no-repeat;
570
+
571
+ + .service-item{
572
+
573
+ padding-top: 30px;
574
+
575
+ }
576
+
577
+ }
578
+
579
+
580
+
581
+
582
+
583
+ >a {
584
+
585
+ width: 100%;
586
+
587
+ text-align: center;
588
+
589
+ color: #fff;
590
+
591
+ line-height: 320px;
592
+
593
+ font-size: 4rem;
594
+
595
+ font-weight: bold;
596
+
597
+ font-style: italic;
598
+
599
+ @include overTab{
600
+
601
+ line-height: 250px;
602
+
603
+ text-align: center;
604
+
605
+ }
606
+
607
+
608
+
609
+ }
610
+
611
+
612
+
613
+ >a:hover{
614
+
615
+ background-color: rgba(40,47,53,.7);
616
+
617
+ transition: .3s;
618
+
619
+
620
+
621
+ }
622
+
623
+ }
624
+
625
+
626
+
627
+ .service1{
628
+
629
+ background-image: url(../../image/service-img01@2x.jpg);
630
+
631
+
632
+
633
+ }
634
+
635
+ .service2{
636
+
637
+ background-image: url(../../image/service-img02@2x.jpg);
638
+
639
+
640
+
641
+ }
642
+
643
+ .service3{
644
+
645
+ background-image: url(../../image/sevice-img03@2x.jpg);
646
+
647
+
648
+
649
+ }
650
+
651
+
652
+
653
+ }
654
+
655
+ ```

1

修正しました

2021/06/12 08:47

投稿

free_teku
free_teku

スコア103

test CHANGED
File without changes
test CHANGED
@@ -30,4 +30,4 @@
30
30
 
31
31
 
32
32
 
33
- https://15.gigafile.nu/0619-d275cb6ef5a9e40f86c9e830f969ac2f2
33
+ [コードzipファイル](https://15.gigafile.nu/0619-d275cb6ef5a9e40f86c9e830f969ac2f2)