Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global styles #53

Merged
merged 1 commit into from
Jan 18, 2021
Merged
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
19 changes: 11 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,21 @@
<link rel="stylesheet" href="styles/glide.core.css" />
<link rel="stylesheet" href="styles/glide.theme.css" />
<link rel="stylesheet" href="styles/calendar.css" />

</head>

<body>
<header class="page-header">
<nav class="nav-bar">
<a href="index.html" class="nav-link" id="homepage">Homepage</a>
<a href="#sport" class="nav-link" id="sport">Sport</a>
<a href="#food" class="nav-link" id="food">Food</a>
<a href="#weather" class="nav-link" id="weather">Weather</a>
<a href="#news" class="nav-link" id="news">News</a>
<a href="#cryptocurrency" class="nav-link" id="cryptocurrency">Cryptocurrency</a>
<nav class="header">
<a href="index.html" id="homepage" class="homepage"
><div class="logo">News <span class="logo-det">JS</span></div></a
>
<a href="#sport" class="header-link" id="sport">Sport</a>
<a href="#food" class="header-link" id="food">Food</a>
<a href="#weather" class="header-link" id="weather">Weather</a>
<a href="#news" class="header-link" id="news">News</a>
<a href="#cryptocurrency" class="header-link" id="cryptocurrency"
>Cryptocurrency</a
>
</nav>
</header>

Expand Down
230 changes: 0 additions & 230 deletions src/subpages/sportSubpage/SportSubpage.css
Original file line number Diff line number Diff line change
@@ -1,233 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap");
:root {
--delay: 0s;
}

* {
outline: none;
box-sizing: border-box;
--yellow: #fdd92a;
--navy-blue: #333439;
--dark-gray: #393834;
--background-gray: #efefed;
}

.hidden {
display: none !important;
}

html {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
background: #ffffff;
}

img {
max-width: 100%;
}

body {
font-family: "Inter", sans-serif;
background-color: var(--background-gray);
color: var(--dark-gray);
max-width: 1600px;
height: 100%;
margin-left: auto;
margin-right: auto;
}

.wrapper {
max-width: 1600px;
background-color: var(--background-gray);
display: flex;
margin: 0 auto;
background-image: url(./images/background.svg);
background-size: contain;
background-repeat: no-repeat;
}

.left-side {
width: 6rem;
display: flex;
flex-direction: column;
flex-shrink: 0;
align-items: center;
padding: 117px 0 40px;
background: var(--background-gray);
position: sticky;
top: 0;
left: 0;
max-height: 100vh;
-webkit-animation: left 1s var(--delay) both;
animation: left 1s var(--delay) both;
}

.left-side .fa {
width: 32px;
text-align: center;
cursor: pointer;
}
.left-side .fa + .fa {
margin-top: 34px;
}
.left-side .fa:last-child {
margin-top: auto;
}
.left-side .fa.active,
.left-side .fa:hover {
color: var(--yellow);
}

@-webkit-keyframes left {
0% {
transform: translateX(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}

@keyframes left {
0% {
transform: translateX(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
@-webkit-keyframes top {
0% {
transform: translateY(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
@keyframes top {
0% {
transform: translateY(-30px);
opacity: 0;
}
100% {
opacity: 1;
transform: none;
}
}
.main-container {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 25px;
padding-left: 0;
}

.header {
background: var(--yellow);
width: calc(100% + 25px);
padding: 0 30px;
-webkit-animation: top 1s both;
animation: top 1s both;
display: flex;
align-items: center;
font-size: 15px;
white-space: nowrap;
position: -webkit-sticky;
position: sticky;
top: -2px;
left: 0;
z-index: 10;
border-radius: 0 0 12px 0;
}
.header:before {
content: "";
width: 100%;
height: 25px;
position: absolute;
top: -25px;
left: 0;
}
.header-link {
color: var(--dark-gray);
text-decoration: none;
display: flex;
align-items: center;
padding: 20px;
transition: 0.3s;
border-bottom: 3px solid transparent;
transition: 0.3s;
opacity: 0.4;
}
.header-link svg {
width: 20px;
margin-right: 14px;
}

.header-link .fa {
width: 20px;
margin-right: 14px;
}

.header-link.active,
.header-link:hover {
border-bottom: 3px solid var(--navy-blue);
opacity: 1;
}

.logo {
padding: 20px 50px 20px 0;
font-size: 16px;
color: var(--dark-grey);
}
.logo-det {
background: lightgray;
padding: 8px;
margin-left: -2px;
border-radius: 50%;
font-size: 15px;
}

.user-info {
margin-left: auto;
display: flex;
align-items: center;
}
.user-info svg {
width: 20px;
}
.user-info .fa {
width: 20px;
margin-left: 12px;
}
.user-info .profile {
margin: 0 20px 0 12px;
width: 18px;
}

.button {
display: flex;
align-items: center;
color: #9b9ca7;
border: none;
padding: 2px 12px;
border-radius: 4px;
margin-right: 20px;
}
.button svg {
margin-left: 10px;
width: 16px;
}

.button .fa {
margin-left: 10px;
width: 16px;
}

.user-box {
margin: 25px 0 0 25px;
display: flex;
Expand Down
35 changes: 0 additions & 35 deletions src/subpages/sportSubpage/sport.html
Original file line number Diff line number Diff line change
@@ -1,40 +1,5 @@
<div class="wrapper">
<div class="left-side">
<i class="fa fa-2x fa-align-left"></i>
<i class="fa fa-2x fa-columns"></i>
<i class="fa fa-2x fa-bookmark"></i>
<i class="fa fa-2x fa-user-plus"></i>
<i class="fa fa-2x fa-backward"></i>
</div>
<div class="main-container">
<div class="header">
<div class="logo">Sport <span class="logo-det">JS</span></div>
<a class="header-link active" href="#"
><i class="fa fa-calendar-check-o"></i>
Bookings
</a>
<a class="header-link" href="#"
><i class="fa fa-bandcamp"></i>
Controller
</a>
<a class="header-link" href="#"
><i class="fa fa-map"></i>
Map
</a>
<a class="header-link" href="#"
><i class="fa fa-automobile"></i>
Reports
</a>
<div class="user-info">
<button class="button">
All
<i class="fa fa-chevron-down"></i>
</button>
<div class="user-name">Kuba Szajna</div>
<i class="fa fa-user"></i>
<div class="hour">08.20 pm</div>
</div>
</div>
<div class="user-box first-box">
<div class="activity card padding-right-20" style="--delay: 0.2s">
<div class="title-container">
Expand Down
Loading