Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
kebabcase class names
--tek index.html & style.css---

\*font ekleme

0. reset css css yazmaya başlarken hep yazdıgımız şeyler neden var?
1. header tasarlanacak
2. header refactor edilecek
farklı browser destekleri
3. diğer componentlere geçiş

---scss geçiş---

---css folder structure----

---responsive----
Empty file modified assets/icons/home.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified assets/logo.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/pana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
99 changes: 56 additions & 43 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,48 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="styles/main.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body>
<div class="page-content">
<div class="header">
<div class="logo-container">
<a href="/index.html">
<img src="assets/logo.svg" alt="logo" />
</a>
</div>
<div class="navigation-menu">
<ul>
<li class="nav-item"><a href="">Home</a></li>
<li class="nav-item"><a href="">Home</a></li>
<li class="nav-item dropdown">
<a href="">Home</a>
<ul>
<li><a href=""> Sub1</a></li>
<li><a href=""> Sub1</a></li>
<li><a href=""> Sub1</a></li>
</ul>
</li>
<li class="nav-item dropdown"><a href="">Home</a></li>
<li class="nav-item"><a href=""></a>Home</li>
</ul>
</div>
<div class="social-links">
<a href=""><img src="/assets/icons/home.svg" alt="home-icon" /></a>
<a href=""><img src="/assets/icons/mail.svg" alt="mail-icon" /></a>
<a href=""
><img src="/assets/icons/shuffle.svg" alt="shuffle-icon"
/></a>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>

<body>
<div class="page-content">
<div class="header">
<div class="logo-container">
<a href="/index.html">
<img src="assets/logo.svg" alt="logo" />
</a>
</div>
<div class="navigation-menu">
<ul>
<li class="nav-item"><a href="">Home</a></li>
<li class="nav-item"><a href="">Home</a></li>
<li class="nav-item dropdown">
<a href="">Home</a>
<ul>
<li><a href=""> Sub1</a></li>
<li><a href=""> Sub1</a></li>
<li><a href=""> Sub1</a></li>
</ul>
</li>
<li class="nav-item dropdown"><a href="">Home</a></li>
<li class="nav-item"><a href="">Home</a></li>
</ul>
</div>
<div class="social-links">
<a href=""><img src="/assets/icons/home.svg" alt="home-icon" /></a>
<a href=""><img src="/assets/icons/mail.svg" alt="mail-icon" /></a>
<a href=""><img src="/assets/icons/shuffle.svg" alt="shuffle-icon" /></a>
</div>
</div>

<!-- banner-start -->
<div class="banner">
<div class="banner-text">
<h1>Making the most of the </br> ever-growing </h1>
<h2>Information Technology</h2>
<p>Managed by a team of professional experts with extensive</br> experience and impressive track records</p>
<div class="banner-btn">
<button>Read More</button>
</div>
</div>
<div class="banner-img"><img src="./assets/pana.png" alt="Pana"></div>
</div>
</body>
</html>
<!-- banner-end -->
</div>
</body>

</html>
168 changes: 168 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
*,
*::after,
*::before {
margin: 0;
padding: 0;
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
:root {
font-size: 16px;
}
body {
box-sizing: border-box;
background: #fff;
font-family: "Roboto", sans-serif;
}

.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 32px;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
}

.header .logo-container a {
display: flex;
}

.header .logo-container a img {
max-width: 120px;
}

.header .social-links {
display: flex;
}

.header .social-links a:not(:last-child) {
padding-right: 24px;
}

.header .social-links a img {
max-width: 20px;
height: auto;
}
/*navigation-start*/
.navigation-menu a {
color: #1f2e35;
text-decoration: none;
}
.navigation-menu ul {
display: flex;
list-style: none;
}
.navigation-menu > ul {
display: flex;
list-style: none;
}
.navigation-menu > ul > li {
padding: 0 25px;
display: flex;
align-items: center;
}
.navigation-menu > ul > li.dropdown:after {
display: flex;
content: "";
margin-left: 8px;
width: 13px;
height: 9px;
background-image: url(./assets/icons/chevron_down.svg);
background-repeat: no-repeat;
background-size: contain;
}
.navigation-menu > ul > li > a {
font-size: 18px;
transition: 0.2s all;
}
.navigation-menu > ul > li {
position: relative;
}
.navigation-menu > ul > li > a:hover {
color: rgba(31, 46, 53, 0.8);
}

.navigation-menu > ul > li.nav-item > ul {
display: none;
opacity: 0;
visibility: hidden;
transition: 0.3s all ease;
}
.navigation-menu > ul > li:hover > ul {
display: flex;
position: absolute;
opacity: 100%;
visibility: visible;
}
.navigation-menu > ul > li.nav-item > ul > li > a {
font-size: 16px;
}

/*navigation-end*/

/*banner-start*/

.banner {
display: flex;
justify-content: center;
margin-top: 31px;
}

.banner-text {
margin-right: 17px;
margin-top: 75px;
margin-bottom: 74px;
}
.banner-text h1 {
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 48px;
line-height: 133.69%;
color: #1f2e35;
}
.banner-text h2 {
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 48px;
line-height: 133.69%;
color: #ee4248;
}

.banner-text p {
font-family: Roboto;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 29px;
color: #30444e;
margin-top: 24px;
margin-bottom: 24px;
}
.banner-img {
margin-top: 59px;
margin-bottom: 59px;
}
.banner-btn {
display: inline-block;
}
.banner-btn button {
padding: 12px 32px;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 20px;
line-height: 29px;

color: #ffffff;
background: #ee4248;
box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
border-radius: 4px;
border: none;
outline: none;
width: 161px;
height: 53px;
}

/*banner-end*/
2 changes: 0 additions & 2 deletions styles/abstracts/_functions.scss

This file was deleted.

Empty file removed styles/abstracts/_global.scss
Empty file.
Empty file removed styles/abstracts/_mixins.scss
Empty file.
Empty file removed styles/abstracts/_variables.scss
Empty file.
14 changes: 0 additions & 14 deletions styles/base/_base.scss

This file was deleted.

3 changes: 0 additions & 3 deletions styles/base/_typography.scss

This file was deleted.

29 changes: 0 additions & 29 deletions styles/layout/_header.scss

This file was deleted.

13 changes: 0 additions & 13 deletions styles/layout/_navigation.scss

This file was deleted.

Loading