Skip to content

Commit

Permalink
Merge pull request #119 from enpitut2020/develop
Browse files Browse the repository at this point in the history
mainにマージしたいです
  • Loading branch information
Kattsuuya authored Jan 21, 2021
2 parents f5478ca + a84dc9e commit 8097b26
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 25 deletions.
24 changes: 19 additions & 5 deletions components/GraphSvg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,32 +140,37 @@
</g>
</svg>
</div>
<div class="card legend">
<p class="is-size-5">グラフの見方</p>
<button class="button is-primary help_button" v-if="isHiddenHelp" @mouseover="isHiddenHelp=false">
<span class="icon is-small">
<font-awesome-icon icon="question" />
</span>
</button>
<div class="card legend" v-else @mouseleave="isHiddenHelp=true">
<p class="is-size-5">このページのみかた</p>
<div class="content">
<div class="level block-list">
<div class="level-item has-text-left">
<p>
<svg class="color-sample" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="50" class="target-tag" />
</svg>
今見ているタグ
いま見てる趣味
</p>
</div>
<div class="level-item has-text-left">
<p>
<svg class="color-sample" viewBox="0 0 100 100">
<circle class="relative-tags" cx="50" cy="50" r="50" />
</svg>
関連があるタグ
好きかもしれない趣味
</p>
</div>
<div class="level-item has-text-left">
<p>
<svg class="color-sample" viewBox="0 0 100 100">
<circle class="random-tags" cx="50" cy="50" r="50" />
</svg>
関連がないタグ
知らなそうな趣味
</p>
</div>
</div>
Expand Down Expand Up @@ -200,6 +205,7 @@ export default {
viewBoxWidth: 1500,
viewBoxHeight: 1500,
scatteredNodes: null,
isHiddenHelp: true,
};
},
computed: {
Expand Down Expand Up @@ -363,13 +369,21 @@ circle {
fill: #f38181;
}
.help_button {
padding: 1em;
position: fixed;
bottom: 2em;
left: 2em;
}
.legend {
padding: 1em;
position: fixed;
bottom: 2em;
left: 2em;
}
.color-sample {
vertical-align: middle;
width: 1em;
Expand Down
6 changes: 3 additions & 3 deletions components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<nav class="navbar is-primary">
<nav class="navbar is-primary is-fixed-top">
<div class="navbar-brand">
<a class="navbar-item" href="#">
<!-- <img src="logo.png" alt="" /> -->
<a class="navbar-item" href="/">
<img src="/logo.png" alt="" />
</a>
<div
class="navbar-burger burger"
Expand Down
2 changes: 1 addition & 1 deletion consts/graphParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
// ノードの半径
RADIUS: 100,
// ノードと1つ外側のノードの間の距離
DISTANCE: 350,
DISTANCE: 420,
// ターゲットノードに表示する2行の文字列の中心からのずらし幅
TEXT_SHIFT_HEIGHT: 15,
// ノード間をつなぐ線の幅
Expand Down
25 changes: 13 additions & 12 deletions pages/_nodeId/_articleId.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<section class="section">
<section class="section mt-5">
<div class="container is-max-desktop">
<nuxt-link :to="'/' + currentTagId + '/list'">記事一覧へ戻る</nuxt-link>
<h1 class="title mt-3 mb-0">{{ title }}</h1>
Expand Down Expand Up @@ -70,17 +70,18 @@
<div class="column">
<input v-model="inputComment" class="input" placeholder="コメント" />
</div>
<div class="level"></div>
<div class="column has-text-right">
<button
:disabled="isNoComment"
type="button"
class="button"
:class="{ 'is-primary': !isNoComment }"
@click="submit"
>
コメントする
</button>
<div class="level">
<div class="column has-text-right">
<button
:disabled="isNoComment"
type="button"
class="button"
:class="{ 'is-primary': !isNoComment }"
@click="submit"
>
コメントする
</button>
</div>
</div>
</div>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion pages/_nodeId/list.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<section class="section">
<section class="section mt-5">
<div class="container is-max-desktop">
<nuxt-link :to="`/${targetTag.id}/graph`">趣味探しに戻る</nuxt-link>
<h1 class="title mt-3">
Expand Down
6 changes: 3 additions & 3 deletions pages/drafts/new.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div>
<section class="section">
<section class="section mt-5">
<div class="container is-max-desktop">
<h1 class="title"><font-awesome-icon icon="pen-nib" /> 趣味を書く</h1>
<h2 class="subtitle">沼る記事を書こう!的な文</h2>
<h2 class="subtitle">自分の好きな趣味をみんなに広めるのだぁ</h2>
<div class="field">
<label class="label"
>タイトル<span style="color: #f38181"> *</span></label
Expand Down Expand Up @@ -74,7 +74,7 @@
v-model="content"
:toolbars="markdownOption"
language="ja"
placeholder="記事を書いてね"
placeholder="記事を書くのだぁ!マークダウン形式が使えるのだぁ"
class="mavon-editor"
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions plugins/fontawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const solid = [
"faPlus",
"faFileAlt",
"faProjectDiagram",
"faQuestion",
];

// ここに追記するだけ
Expand Down
Binary file added static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8097b26

Please sign in to comment.