Skip to content

Commit 76c7be6

Browse files
committed
增加:響應式設計
1 parent df62226 commit 76c7be6

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

src/view/home.vue

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<div>
66
<div class="hero-text">
77
<h2>開源Mineraft啟動器</h2>
8+
<hr>
89
<p>新時代Minecraft啟動器,現代介面、跨平台應用</p>
910
</div>
1011
<div class="hero-btn">
@@ -30,13 +31,17 @@
3031
3132
.hero-text{
3233
justify-items: center;
34+
margin: 0px 35px;
3335
margin-top: 100px;
3436
3537
h2{
3638
font-size: 48px;
3739
display: flex;
3840
color: #FFFFFF;
3941
}
42+
hr{
43+
display: none;
44+
}
4045
p{
4146
font-size: 28px;
4247
display: flex;
@@ -79,14 +84,28 @@
7984
8085
}
8186
}
82-
/*
83-
&:nth-child(2n+1){
84-
background-color: #17232E;
85-
}
86-
&:nth-child(2n){
87-
background-color: #131B23;
87+
}
88+
@media (max-width:660px) {
89+
.main{
90+
section{
91+
&:nth-child(1){
92+
.hero-text{
93+
h2{
94+
font-size: 32px;
95+
}
96+
hr{
97+
width: 100%;
98+
display: block;
99+
margin: 3px 0px 10px 0px;
100+
101+
}
102+
p{
103+
font-size: 24px;
104+
}
105+
}
106+
}
88107
}
89-
} */
108+
}
90109
}
91110
92111

0 commit comments

Comments
 (0)