Skip to content

Commit

Permalink
Merge pull request #1 from konstantin-it-lysenko/init-config
Browse files Browse the repository at this point in the history
init
  • Loading branch information
konstantin-it-lysenko authored Oct 18, 2023
2 parents e6f5aa2 + 5884ad2 commit ff497b8
Show file tree
Hide file tree
Showing 48 changed files with 105 additions and 57 deletions.
Empty file added src/css/categories.css
Empty file.
15 changes: 15 additions & 0 deletions src/css/common.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color: #242424;
background-color: rgba(255, 255, 255, 0.87);

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
Empty file added src/css/favourites.css
Empty file.
Empty file added src/css/loader.css
Empty file.
Empty file added src/css/modal-exercise.css
Empty file.
Empty file added src/css/modal-form.css
Empty file.
Empty file added src/css/modal-team.css
Empty file.
Empty file added src/css/quote.css
Empty file.
51 changes: 36 additions & 15 deletions src/css/reset.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Reset styles */
h1,
h2,
h3,
Expand All @@ -8,28 +7,50 @@ h6,
p {
margin: 0;
}

p:last-child {
margin-bottom: 0;
a {
text-decoration: none;
}

ul {
margin: 0;
padding: 0;
ul,
ol {
list-style: none;
padding-left: 0;
margin: 0;
}

a {
color: currentColor;
text-decoration: none;
img {
display: block;
max-width: 100%;
height: auto;
}

button {
cursor: pointer;
border: none;
padding: 0;
}

img {
display: block;
max-width: 100%;
height: auto;
input {
font-family: inherit;
}
fieldset {
padding: 0;
margin: 0;
border: none;
}

/*-------------Не обнуляючі але треба задати ці властивості(приклад того що потрібно вказати)---------------------*/
body {
font-family: 'Helvetica Neue', 'Roboto', 'Verdana', sans-serif;
color: #2a2a2a;
background-color: #fafafa;
line-height: 1.5;
}
/*-------------Якщо шрифти різні-------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Tahoma';
}
Empty file added src/css/scroll-up.css
Empty file.
22 changes: 0 additions & 22 deletions src/css/styles.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,4 @@
/**
|============================
| include css partials with
| default @import url()
|============================
*/
@import url('./reset.css');
@import url('./header.css');
@import url('./hero.css');
@import url('./footer.css');

:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;

color: #242424;
background-color: rgba(255, 255, 255, 0.87);

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
22 changes: 22 additions & 0 deletions src/favourites.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page 2</title>
</head>
<body>
<load ="partials/header.html" />
<!-- <header class="header">
<nav class="nav">
<ul class="nav-list">
<li class="nav-item">
<a href="../index.html" class="nav-link">Home</a>
<a href="#" class="nav-link">Fav</a>
</li>
</ul>
</nav>
</header> -->
</body>
</html>
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

<load ="partials/hero.html" />

<load ="partials/categories.html" />

<load ="partials/footer.html" />
<script type="module" src="/main.js"></script>
</body>
Expand Down
Empty file added src/js/additional.js
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added src/js/api-service/quote-api.js
Empty file.
14 changes: 14 additions & 0 deletions src/js/api/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const API_PROPS = Object.freeze({
BASE_URL: 'https://your-energy.b.goit.study/api',
EXERCISE_ENDPOINT: '/exercises',
RATING_ENDPOINT: '/rating',
FILTERS_ENDPOINT: '/filters',
QUOTE_ENDPOINT: '/quote',
SUBSCR_EDPOINT: '/subscription'
});

/*
import { API_PROPS } from './api/api';
const { BASE_URL, QUOTE_ENDPOINT } = API_PROPS;
*/
Empty file added src/js/burger-menu.js
Empty file.
Empty file added src/js/categories.js
Empty file.
Empty file added src/js/exercises-filter.js
Empty file.
Empty file added src/js/favourites.js
Empty file.
Empty file added src/js/footer.js
Empty file.
Empty file added src/js/header.js
Empty file.
Empty file added src/js/loader.js
Empty file.
Empty file added src/js/modal-exercise.js
Empty file.
Empty file added src/js/modal-form.js
Empty file.
Empty file added src/js/modal-team.js
Empty file.
5 changes: 5 additions & 0 deletions src/js/quote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { API_PROPS } from './api/api';

const { BASE_URL, QUOTE_ENDPOINT } = API_PROPS;

console.log(BASE_URL, 'HELLLO', QUOTE_ENDPOINT);
Empty file added src/js/scroll-up.js
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
console.log('test');
import './js/quote';
import './js/additional';
import './js/burger-menu';
import './js/burger-menu';
15 changes: 0 additions & 15 deletions src/page-2.html

This file was deleted.

1 change: 1 addition & 0 deletions src/partials/catalog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions src/partials/categories.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section class="exercises">
<load ="./quote.html" />
<load ="./catalog.html" />
</section>
6 changes: 2 additions & 4 deletions src/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
<nav class="nav">
<ul class="nav-list">
<li class="nav-item">
<a href="#" class="nav-link">1</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">2</a>
<a href="../index.html" class="nav-link">Home</a>
<a href="../favourites.html" class="nav-link">Fav</a>
</li>
</ul>
</nav>
Expand Down
Empty file added src/partials/loader.html
Empty file.
Empty file.
Empty file added src/partials/modal-form.html
Empty file.
Empty file added src/partials/modal-team.html
Empty file.
Empty file added src/partials/quote.html
Empty file.
Empty file added src/partials/scroll-up.html
Empty file.

0 comments on commit ff497b8

Please sign in to comment.