fixing projects ui
This commit is contained in:
parent
044675dd93
commit
ad6b29be01
@ -31,7 +31,7 @@ main {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: .4s;
|
transition: .4s;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
width: 80%;
|
width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
main:hover{
|
main:hover{
|
||||||
@ -54,7 +54,7 @@ h2{
|
|||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1121px) {
|
@media only screen and (max-width: 1416px) {
|
||||||
main{
|
main{
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ div{
|
|||||||
gap: 30px;
|
gap: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 1121px) {
|
@media only screen and (max-width: 1416px) {
|
||||||
div {
|
div {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
@ -53,28 +53,30 @@ export default {
|
|||||||
list: []
|
list: []
|
||||||
}
|
}
|
||||||
for(let i = 0; i<all.length; i++){
|
for(let i = 0; i<all.length; i++){
|
||||||
if(project["list"].length!==3)
|
if(project["list"].length===3){
|
||||||
project["list"].push({
|
projects.push(project)
|
||||||
name: all[i]["name"],
|
pcounter += 1
|
||||||
desc: all[i]["desc"],
|
project = {
|
||||||
click: all[i]["click"],
|
id: pcounter,
|
||||||
url: `/l/${all[i]["name"].toLowerCase().replaceAll(" ", "")}`
|
list: []
|
||||||
})
|
|
||||||
else{
|
|
||||||
projects.push(project)
|
|
||||||
pcounter += 1
|
|
||||||
project = {
|
|
||||||
id: pcounter,
|
|
||||||
list: []
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(i===all.length-1){
|
project["list"].push({
|
||||||
projects.push(project)
|
name: all[i]["name"],
|
||||||
}
|
desc: all[i]["desc"],
|
||||||
|
click: all[i]["click"],
|
||||||
|
url: `/l/${all[i]["name"]
|
||||||
|
.toLowerCase()
|
||||||
|
.replaceAll(" ", "")}`
|
||||||
|
})
|
||||||
|
|
||||||
|
if(i===all.length-1){
|
||||||
|
projects.push(project)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.projects = projects
|
this.projects = projects
|
||||||
console.log(this.projects)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user