Skip to content

Commit b14c844

Browse files
committed
improved look and feel
1 parent 7e39302 commit b14c844

File tree

3 files changed

+44
-7
lines changed

3 files changed

+44
-7
lines changed

client/client-graphql.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,24 @@
99
[v-cloak] {
1010
display: none;
1111
}
12+
.todoapp h2 {
13+
position: absolute;
14+
top: -40px;
15+
left: 80px;
16+
width: 100%;
17+
font-size: 20px;
18+
font-weight: bold;
19+
text-align: center;
20+
color: rgba(175, 47, 47, 0.15)
21+
}
1222
</style>
1323
</head>
1424

1525
<body>
1626
<section class="todoapp">
1727
<header class="header">
18-
<h1>GraphQL todos</h1>
28+
<h1>todos</h1>
29+
<h2>GraphQL style</h2>
1930
<input class="new-todo" autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo"
2031
@keyup.enter="addTodo" />
2132
</header>

client/client-rest.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,24 @@
99
[v-cloak] {
1010
display: none;
1111
}
12+
.todoapp h2 {
13+
position: absolute;
14+
top: -40px;
15+
left: 80px;
16+
width: 100%;
17+
font-size: 20px;
18+
font-weight: bold;
19+
text-align: center;
20+
color: rgba(175, 47, 47, 0.15)
21+
}
1222
</style>
1323
</head>
1424

1525
<body>
1626
<section class="todoapp">
1727
<header class="header">
18-
<h1>REST todos</h1>
28+
<h1>todos</h1>
29+
<h2>REST style</h2>
1930
<input class="new-todo" autofocus autocomplete="off" placeholder="What needs to be done?" v-model="newTodo"
2031
@keyup.enter="addTodo" />
2132
</header>

client/index.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,33 @@
44
<head>
55
<title>TodoMVC</title>
66
<script src="https://unpkg.com/vue"></script>
7-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/todomvc-app-css@2.2.0/index.css" />
7+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/todomvc-app-css@2.2.0/index.css" />
8+
<style>
9+
li.todo {
10+
text-align: center
11+
}
12+
li.todo label {
13+
padding-left:15px
14+
}
15+
li.todo label a {
16+
text-decoration: none;
17+
color: inherit;
18+
}
19+
li.todo label a:hover {
20+
text-decoration: underline;
21+
}
22+
</style>
823
</head>
924

1025
<body>
1126
<section class="todoapp">
1227
<header class="header">
13-
<h1>todos</h1>
28+
<h1>TodoMVC</h1>
1429
</header>
1530
<section class="main">
16-
<ul>
17-
<li><a href="client-rest.html">Go to the REST Sample</a></li>
18-
<li><a href="client-graphql.html">Go to the GraphQL Sample</a></li>
31+
<ul class="todo-list">
32+
<li class="todo"><label><a href="client-rest.html">Go to the REST Sample</a></label></li>
33+
<li class="todo"><label><a href="client-graphql.html">Go to the GraphQL Sample</a></label></li>
1934
</ul>
2035
</section>
2136
</section>

0 commit comments

Comments
 (0)