feat: add mobile design

This commit is contained in:
log101 2024-08-26 19:32:37 +03:00
parent 2ef164ee8c
commit f3ace0f1a4

View File

@ -5,6 +5,16 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/style/style.css" /> <link rel="stylesheet" href="/style/style.css" />
<style> <style>
a {
text-decoration: none;
color: black;
}
a:hover {
color: black;
text-decoration: underline;
}
p { p {
margin: 0; margin: 0;
} }
@ -89,7 +99,27 @@
opacity: 0.3; opacity: 0.3;
} }
.app-disabled {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid white;
gap: 24px;
height: 290px;
transition-property: opacity;
transition-duration: 500ms;
opacity: 0.3;
}
.app:hover { .app:hover {
body {
margin-top: 48px;
display: flex;
flex-direction: column;
align-items: center;
}
transition-property: opacity; transition-property: opacity;
transition-duration: 500ms; transition-duration: 500ms;
opacity: 0.8; opacity: 0.8;
@ -110,6 +140,103 @@
padding: 20px 0; padding: 20px 0;
} }
@media (max-width: 1300px) {
.app-name {
font-family: "Source Sans Pro", sans-serif;
font-size: 20px;
}
body {
margin-top: 24px;
margin-bottom: 48px;
}
#logo {
padding: 12px 24px;
gap: 12px;
}
#pan-container {
padding: 0px;
}
.brand-name {
font-family: "Source Code Pro", monospace;
font-size: 24px;
}
#logo-image {
height: 240px;
width: 240px;
}
.container {
width: 290px;
display: grid;
grid-template-columns: 141px 141px;
grid-template-rows: 340px 160px 160px;
gap: 8px 8px;
grid-auto-flow: row;
grid-template-areas:
"main main"
"app1 app2"
"app3 .";
justify-content: space-between;
}
.app-image {
width: 64px;
height: 64px;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid white;
gap: 12px;
height: 160px;
transition-property: opacity;
transition-duration: 500ms;
opacity: 0.3;
}
.app-disabled {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid white;
gap: 24px;
height: 160px;
transition-property: opacity;
transition-duration: 500ms;
opacity: 0.3;
}
.app:hover {
transition-property: opacity;
transition-duration: 500ms;
opacity: 0.8;
}
.app1 {
grid-area: app1;
padding: 20px 0;
}
.app2 {
grid-area: app2;
padding: 20px 0;
}
.app3 {
grid-area: app3;
padding: 20px 0;
}
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
#logo { #logo {
border: 1px solid black; border: 1px solid black;
@ -118,6 +245,10 @@
.app { .app {
border: 1px solid black; border: 1px solid black;
} }
.app-disabled {
border: 1px solid black;
}
} }
</style> </style>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@ -126,21 +257,34 @@
<body> <body>
<div class="container"> <div class="container">
<div class="app1"> <div class="app1">
<a href="https://blog.log101.dev">
<div class="app"> <div class="app">
<img src="/ikon.png" height="128px" width="128px" /> <img
src="/ikon.png"
height="128px"
width="128px"
class="app-image"
/>
<p class="app-name">Blog</p> <p class="app-name">Blog</p>
</div> </div>
</a>
</div> </div>
<div class="app2"> <div class="app2">
<a href="https://konulukonum.log101.dev">
<div class="app"> <div class="app">
<img src="/konulu-konum-logo.jpg" height="128px" width="128px" /> <img
src="/konulu-konum-logo.jpg"
height="128px"
width="128px"
class="app-image"
/>
<p class="app-name">Konulu<br />Konum</p> <p class="app-name">Konulu<br />Konum</p>
</div> </div>
</a>
</div> </div>
<div class="app3"> <div class="app3">
<div class="app"> <div class="app-disabled">
<img src="/degisim-kotudur.png" height="128px" width="128px" /> <p class="app-name">Yakında...</p>
<p class="app-name">Değişim<br />Kötüdür</p>
</div> </div>
</div> </div>
<div id="logo-container"> <div id="logo-container">
@ -154,7 +298,12 @@
<p>İ</p> <p>İ</p>
<p>P</p> <p>P</p>
</div> </div>
<img width="624" height="624" src="/acayip-logo.png" /> <img
width="624"
height="624"
src="/acayip-logo.png"
id="logo-image"
/>
<div id="brand" class="brand-name"> <div id="brand" class="brand-name">
<p>A</p> <p>A</p>
<p>C</p> <p>C</p>