feat: add grid layout

This commit is contained in:
log101 2024-08-25 18:12:43 +03:00
parent f37eee66c8
commit cc9ee3f7ae
4 changed files with 96 additions and 19 deletions

View File

@ -9,8 +9,16 @@
margin: 0; margin: 0;
} }
.app-name {
font-family: "Source Sans Pro", sans-serif;
font-size: 36px;
}
body { body {
margin-top: 48px; margin-top: 48px;
display: flex;
flex-direction: column;
align-items: center;
} }
#logo { #logo {
@ -30,6 +38,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
grid-area: main;
}
#pan-container {
padding: 20px;
} }
.brand-name { .brand-name {
@ -45,6 +58,45 @@
transform: scaleX(-1); transform: scaleX(-1);
} }
.container {
width: 1280px;
display: grid;
grid-template-columns: 256px 1fr 256px;
grid-template-rows: 290px 290px 290px;
gap: 24px 0px;
grid-auto-flow: row;
grid-template-areas:
"app1 main app2"
". main app3"
". main .";
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 1px solid black;
gap: 24px;
height: 290px;
opacity: 0.3;
}
.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;
@ -55,25 +107,45 @@
<title>Vite + TS</title> <title>Vite + TS</title>
</head> </head>
<body> <body>
<div id="logo-container"> <div class="container">
<div id="pan-container" style="padding: 20px"> <div class="app1">
<div id="logo"> <div class="app">
<div id="brand-reversed" class="brand-name reverse"> <img src="/ikon.png" height="128px" width="128px" />
<p>A</p> <p class="app-name">Blog</p>
<p>C</p> </div>
<p>A</p> </div>
<p>Y</p> <div class="app2">
<p>İ</p> <div class="app">
<p>P</p> <img src="/ikon.png" height="128px" width="128px" />
</div> <p class="app-name">Blog</p>
<img width="624" height="624" src="/acayip-logo.png" /> </div>
<div id="brand" class="brand-name"> </div>
<p>A</p> <div class="app3">
<p>C</p> <div class="app">
<p>A</p> <img src="/ikon.png" height="128px" width="128px" />
<p>Y</p> <p class="app-name">Blog</p>
<p>İ</p> </div>
<p>P</p> </div>
<div id="logo-container">
<div id="pan-container">
<div id="logo">
<div id="brand-reversed" class="brand-name reverse">
<p>A</p>
<p>C</p>
<p>A</p>
<p>Y</p>
<p>İ</p>
<p>P</p>
</div>
<img width="624" height="624" src="/acayip-logo.png" />
<div id="brand" class="brand-name">
<p>A</p>
<p>C</p>
<p>A</p>
<p>Y</p>
<p>İ</p>
<p>P</p>
</div>
</div> </div>
</div> </div>
</div> </div>

Binary file not shown.

BIN
public/ikon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -16,6 +16,11 @@
src: url(/fonts/SourceCodePro-Black.otf.woff2) format("woff2"); src: url(/fonts/SourceCodePro-Black.otf.woff2) format("woff2");
} }
@font-face {
font-family: "Source Sans Pro";
src: url(/fonts/SourceSansPro-Semibold.otf.woff) format("woff");
}
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
color: #213547; color: #213547;