Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
archivarius
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andrey Kuvshinov
archivarius
Commits
10d6816c
Commit
10d6816c
authored
Oct 06, 2024
by
AK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add files
parents
Pipeline
#124
failed with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
207 additions
and
0 deletions
+207
-0
.gitignore
.gitignore
+38
-0
design.css
design.css
+104
-0
main.php
main.php
+52
-0
style.ini
style.ini
+6
-0
tpl_functions.php
tpl_functions.php
+7
-0
No files found.
.gitignore
0 → 100644
View file @
10d6816c
# Cache files
data/cache/*
!data/cache/.gitkeep
# Temporary files
data/tmp/*
!data/tmp/.gitkeep
# User uploaded files
data/media/*
!data/media/.gitkeep
# Configuration files
conf/local.php
conf/local.protected.php
# Log files
data/logs/*
# Vendor files (if you're using a vendor folder for external libraries)
vendor/*
# Node modules (if you're using npm or yarn for frontend dependencies)
node_modules/*
# IDE and editor files
*.iml
*.ipynb
*.swp
*.vscode
*.idea
# Other files that shouldn't be tracked
*.bak
*.old
*.orig
*.tmp
\ No newline at end of file
design.css
0 → 100644
View file @
10d6816c
/* Общие стили для всего сайта */
body
{
font-family
:
Arial
,
sans-serif
;
background-color
:
var
(
--background
,
#f5f5f5
);
color
:
var
(
--text
,
#333333
);
margin
:
0
;
padding
:
0
;
line-height
:
1.6
;
}
header
{
background-color
:
#007bff
;
color
:
white
;
padding
:
10px
20px
;
}
header
h1
{
margin
:
0
;
font-size
:
1.8em
;
}
header
nav
{
float
:
right
;
}
header
a
{
color
:
white
;
text-decoration
:
none
;
}
header
a
:hover
{
text-decoration
:
underline
;
}
/* Основной контент */
main
{
display
:
flex
;
margin
:
20px
;
}
aside
{
width
:
250px
;
padding-right
:
20px
;
}
.content
{
flex-grow
:
1
;
}
/* Стили для ссылок */
a
{
color
:
var
(
--link
,
#007bff
);
text-decoration
:
none
;
}
a
:hover
{
color
:
var
(
--link_hover
,
#003f7f
);
}
/* Футер */
footer
{
background-color
:
#333
;
color
:
white
;
text-align
:
center
;
padding
:
10px
;
margin-top
:
20px
;
}
footer
p
{
margin
:
0
;
}
/* Стили для кнопок */
.button
{
display
:
inline-block
;
background-color
:
#007bff
;
/* Цвет фона */
color
:
white
;
/* Цвет текста */
padding
:
10px
15px
;
/* Отступы */
text-decoration
:
none
;
/* Убираем подчеркивание */
border-radius
:
5px
;
/* Скругленные углы */
transition
:
background-color
0.3s
;
/* Плавный переход */
}
.button
:hover
{
background-color
:
#0056b3
;
/* Цвет фона при наведении */
}
/* Адаптивный дизайн для мобильных устройств */
@media
(
max-width
:
768px
)
{
main
{
flex-direction
:
column
;
}
aside
{
width
:
100%
;
padding-right
:
0
;
margin-bottom
:
20px
;
}
header
nav
{
float
:
none
;
}
}
main.php
0 → 100644
View file @
10d6816c
<?php
if
(
!
defined
(
'DOKU_INC'
))
die
();
// Прямая доступность запрещена
// Включаем стандартные DokuWiki функции
include_once
(
'tpl_functions.php'
);
?><!DOCTYPE html>
<html
lang=
"
<?php
echo
$conf
[
'lang'
];
?>
"
>
<head>
<meta
charset=
"utf-8"
>
<title>
<?php
tpl_pagetitle
();
?>
[
<?php
echo
strip_tags
(
$conf
[
'title'
]);
?>
]
</title>
<?php
tpl_metaheaders
();
?>
<link
rel=
"stylesheet"
href=
"
<?php
echo
tpl_basedir
();
?>
design.css"
type=
"text/css"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
/>
</head>
<body>
<header>
<div
class=
"header-inner"
>
<h1><a
href=
"
<?php
echo
wl
();
?>
"
>
<?php
echo
$conf
[
'title'
];
?>
</a></h1>
<nav>
<?php
tpl_searchform
();
// Форма поиска ?>
<?
php
if
(
isset
(
$_SERVER
[
'REMOTE_USER'
]))
:
?>
<a
class=
"button"
href=
"
<?php
echo
wl
(
'doku.php?id=start&do=admin'
);
?>
"
>
Админка
</a>
<a
class=
"button"
href=
"
<?php
echo
wl
(
'doku.php?id=start&do=logout'
);
?>
"
>
Выйти
</a>
<?php
else
:
?>
<a
class=
"button"
href=
"
<?php
echo
wl
(
'doku.php?id=start&do=login'
);
?>
"
>
Войти
</a>
<?php
endif
;
?>
</nav>
</div>
</header>
<main>
<aside>
<h2>
Боковая панель
</h2>
<ul>
<li><a
href=
"
<?php
echo
wl
(
'start'
);
?>
"
>
Главная
</a></li>
<li><a
href=
"
<?php
echo
wl
(
'page1'
);
?>
"
>
Страница 1
</a></li>
<li><a
href=
"
<?php
echo
wl
(
'page2'
);
?>
"
>
Страница 2
</a></li>
<!-- Добавьте другие ссылки по мере необходимости -->
</ul>
</aside>
<section
class=
"content"
>
<?php
tpl_content
();
// Основной контент ?>
</
section
>
</
main
>
<
footer
>
<
p
>&
copy
;
<?
php
echo
date
(
'Y'
);
?>
. Сайт работает на DokuWiki.
</p>
</footer>
</body>
</html>
style.ini
0 → 100644
View file @
10d6816c
[colors]
__background__
=
"#f5f5f5"
__text__
=
"#333333"
__link__
=
"#007bff"
__link_visited__
=
"#0056b3"
__link_hover__
=
"#003f7f"
tpl_functions.php
0 → 100644
View file @
10d6816c
<?php
// Fallback script for compatibility with Bootstrap Wrapper and Icons plugins
dbg_deprecated
(
'Upgrade Bootstrap Wrapper and Icons plugins'
);
include_once
'tpl/functions.php'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment