MENU
お役立ち資料
アーカイブ

コピペでできるLP制作

index.html

<!DOCTYPE html>
<html lang="ja">

<head prefix=”og: http://ogp.me/ns#”>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ここにタイトルを入れてください</title>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/style.css">

    <!-- OGP設定(SNSなどでシェアされた時の表示) -->
    <meta property="og:url" content=" LPのURL" />
    <meta property="og:type" content=" LPの種類" />
    <meta property="og:title" content=" LPのタイトル" />
    <meta property="og:description" content=" LPの説明文" />
    <meta property="og:site_name" content="サイト名" />
    <meta property="og:image" content=" サムネイル画像のURL" />
    <meta property=”fb:app_id” content=”App-ID(15文字の半角数字)”>

    <!-- ここにタグを挿入↓↓ -->


</head>

<body>

    <!-- =============================================
    ========ここに1つ目の要素を貼り付けてください↓↓=========
    ============================================== -->

   



    

    <!-- =============================================
    ========ここに2つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに3つ目の要素を貼り付けてください↓↓=========
    ============================================== -->





    <!-- =============================================
    ========ここに4つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに5つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに6つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに7つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに8つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに9つ目の要素を貼り付けてください↓↓=========
    ============================================== -->






    <!-- =============================================
    ========ここに10つ目の要素を貼り付けてください↓↓=========
    ============================================== -->


</body>

</html>

style.css

/* =============================================
=====================ボタン======================
============================================== */
.btn {
    width: 340px;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 3px #aaa;
    transition: all .3s;
    margin: 0 auto;
}

.btn a {
    display: inline-block;
    padding: 1em;
    font-weight: bold;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    box-shadow: none;
    opacity: .8;
}


/* 角が丸いボタン */
.round {
    border-radius: 30px;
}

/* ボタンのカラー */
.green {
    background-color: rgb(3, 147, 3);
}

.orange {
    background-color: rgb(255, 162, 0);
}

.red {
    background-color: rgb(255, 11, 11);
}

.blue {
    background-color: rgb(19, 96, 249);
}




/* =============================================
=====================横並び======================
============================================== */
.flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}



/* =============================================
==================画像の上に要素==================
============================================== */
.pos_r {
    position: relative;
}


.pos_a_1 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    /* __pxに数値を入力して上下の位置を調整(50%で上下中央) */
    left: 50%;
    /* __pxに数値を入力して左右の位置を調整(50%で左右中央)*/
}


.pos_a_2 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    /* __pxに数値を入力して上下の位置を調整(50%で上下中央) */
    left: 50%;
    /* __pxに数値を入力して左右の位置を調整(50%で左右中央)*/
}


.pos_a_3 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    /* __pxに数値を入力して上下の位置を調整(50%で上下中央) */
    left: 50%;
    /* __pxに数値を入力して左右の位置を調整(50%で左右中央)*/
}


.pos_a_4 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    /* __pxに数値を入力して上下の位置を調整(50%で上下中央) */
    left: 50%;
    /* __pxに数値を入力して左右の位置を調整(50%で左右中央)*/
}


.pos_a_5 {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    /* __pxに数値を入力して上下の位置を調整(50%で上下中央) */
    left: 50%;
    /* __pxに数値を入力して左右の位置を調整(50%で左右中央)*/
}



/* =============================================
================画像の下に固定ボタン================
============================================== */
.pos_bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}




/* =============================================
==================フォントサイズ===================
============================================== */
.fz18 {
    font-size: 18px;
}

.fz24 {
    font-size: 24px;
}

.fz32 {
    font-size: 32px;
}

.fz36 {
    font-size: 36px;
}

.fz44 {
    font-size: 44px;
}

.fz48 {
    font-size: 48px;
}

.fz56 {
    font-size: 56px;
}

.fz64 {
    font-size: 64px;
}


/* =============================================
===================フォント太さ====================
============================================== */
.fw-100 {
    font-weight: 100;
}

.fw-200 {
    font-weight: 200;
}

.fw-300 {
    font-weight: 300;
}

.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}





/* =============================================
==================フォントカラー===================
============================================== */
.f-red {
    color: red;
}

.f-blue {
    color: blue;
}

.f-orange {
    color: orange;
}

.f-green {
    color: green;
}

.f-pink {
    color: pink;
}

.f-white {
    color: white;
}





/* =============================================
====================上下余白=====================
============================================== */
.m8 {
    margin: 8px auto;
}

.m16 {
    margin: 16px auto;
}

.m24 {
    margin: 24px auto;
}

.m32 {
    margin: 32px auto;
}

.m40 {
    margin: 40px auto;
}

.m48 {
    margin: 48px auto;
}

.m64 {
    margin: 64px auto;
}

.m80 {
    margin: 80px auto;
}

.m88 {
    margin: 88px auto;
}

.m124 {
    margin: 124px auto;
}

reset.css

/*** CSS Reset ***/

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

textarea {
  white-space: revert;
}


html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}


article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


.image img {
  width: 100%;
}

README

<!-- =============================================
====================画像ブロック====================
============================================== -->

使い方)
src=" "の " "の中に画像の名前を入力
alt=" "の " "の中に画像の説明を入力

<div class="image">
    <img src="" alt="">
</div>




<!-- =============================================
================リンク付き画像ブロック================
============================================== -->

使い方)
src=" "の " "の中に画像の名前を入力
alt=" "の " "の中に画像の説明を入力
href=" "の " "の中に遷移先のURLを入力

<div class="image">
    <a href="">
        <img src="" alt="">
    </a>
</div>



<!-- =============================================
================リンク付き画像ブロック================
============================================== -->
<p class="">ここにテキストが入ります</p>





<!-- =============================================
================画像の上にボタン配置=================
============================================== -->
<div class="pos_r">
    <div class="image">
        <img src="" alt="">
    </div>
    <div class="btn pos_a">
      <a href="">ここにテキストを入力</a>
    </div>
</div>



<!-- =============================================
================画像の上にテキスト配置================
============================================== -->
<p class="pos_a">ここにテキストが入ります</p>



<!-- =============================================
============画像の上にリンク付きテキスト配置============
============================================== -->
<div class="btn pos_a">
    <a href="">ここにテキストが入ります<a>
</div>




<!-- =============================================
==================ボタンブロック====================
============================================== -->

使い方)
href=" "の " "の中に遷移先のURLを入力
「ここにテキストを入力」にボタン上に表示させたいテキストを入力

<div class="btn">
    <a href="">ここにテキストを入力</a>
</div>




<!-- =============================================
================要素横並びブロック===================
============================================== -->

<div class="flex">
    <!-- この下に1つ目の要素を入れてください↓↓ -->


    <!-- この下に2つ目の要素を入れてください↓↓ -->


</div>



<!-- =============================================
=================画面下に固定ボタン==================
============================================== -->
<div class="btn pos_bottom">
    <a href="">ここにテキストが入ります<a>
</div>