Skip to content

Commit d38f956

Browse files
style: add basic css to header section
1 parent 8346939 commit d38f956

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

src/App.vue

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<template>
22
<div id="app">
3-
3+
<header>
4+
<h1>My Music Player</h1>
5+
</header>
6+
<main>
7+
<section class="player">
8+
<h2 class="song-title"></h2>
9+
</section>
10+
</main>
411
</div>
512
</template>
613

@@ -13,5 +20,20 @@ export default {
1320
</script>
1421

1522
<style>
16-
23+
*{
24+
margin:0;
25+
padding:0;
26+
box-sizing:border-box;
27+
}
28+
body{
29+
font-family: sans-serif;
30+
}
31+
header{
32+
display:flex;
33+
justify-content:center;
34+
align-item:center;
35+
padding: 15px;
36+
background-color: #212121;
37+
color:#fff;
38+
}
1739
</style>

0 commit comments

Comments
 (0)