Skip to content

Commit 11ace96

Browse files
committed
Initial commit
0 parents  commit 11ace96

File tree

194 files changed

+15892
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+15892
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.{md,yml}]
11+
trim_trailing_whitespace = false
12+
13+
[*.{py,html,css,scss}]
14+
indent_size = 4
15+
16+
[*.{js,jsx,ts,tsx}]
17+
indent_size = 2

.gitignore

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
develop-eggs/
12+
downloads/
13+
eggs/
14+
.eggs/
15+
parts/
16+
sdist/
17+
wheels/
18+
*.egg-info/
19+
.installed.cfg
20+
*.egg
21+
MANIFEST
22+
23+
# Installer logs
24+
pip-log.txt
25+
pip-delete-this-directory.txt
26+
27+
# Unit test / coverage reports
28+
htmlcov/
29+
.tox/
30+
.nox/
31+
.coverage
32+
.coverage.*
33+
.cache
34+
nosetests.xml
35+
coverage.xml
36+
*.cover
37+
.hypothesis/
38+
.pytest_cache/
39+
40+
# Translations
41+
*.mo
42+
*.pot
43+
44+
# Django stuff:
45+
*.log
46+
local_settings.py
47+
db.sqlite3
48+
49+
# pyenv
50+
.python-version
51+
52+
# Environments
53+
.env
54+
.venv
55+
env/
56+
venv/
57+
ENV/
58+
env.bak/
59+
venv.bak/
60+
61+
# mkdocs documentation
62+
/site
63+
64+
# Visual Studio Code
65+
.vscode/
66+
67+
# Yarn Integrity file
68+
.yarn-integrity
69+
70+
# User-generated files
71+
media/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 TEDx NTUA
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# TEDxNTUA Base-v2
2+
Django project that serves as a base for [TEDxNTUA](https://tedxntua.com)'s websites.
3+
4+
## Usage
5+
Copy this repository into a new one, e.g. `tedxntua2019`.
6+
7+
The project contains some `<VAR:NAME>` occurrences for information that changes for each event, such as the year of the event, the repository URL etc. Search for `<VAR:` in the project directory to find all of them and edit them accordingly.
8+
##### FIND & REPLACE (in the project folder):
9+
* `<VAR:DJANGO_VERSION>` (ex. 2.2.17)
10+
* `<VAR:YEAR>` (ex.2021)
11+
* `<VAR:REPO_URL>` (ex. https://github.com/TEDxNTUA/tedxntua2021)
12+
13+
## Contributors
14+
Listed alphabetically:
15+
1. Elina Syrri ([ElinaSyr](https://github.com/ElinaSyr))
16+
1. George Papadoulis ([G-Papad](https://github.com/G-Papad))
17+
1. Lydia Balafouti ([LydiaBal](https://github.com/LydiaBal))
18+
1. Nick Bellos ([nickbel7](https://github.com/nickbel7))
19+
20+
## Documentation
21+
* [Contributing](docs/contributing.md)
22+
* [Installation](docs/installation.md)
23+
* [Project structure](docs/structure.md)
24+
* [Usage](docs/usage.md)
25+
* Subsystems:
26+
* [Webpack](docs/webpack/index.md)
27+
28+
## Code license
29+
The code in this repository is licensed under the [MIT license](LICENSE).
30+
31+
## Content license
32+
The content of the website is licensed under Creative Commons v4.0 BY, unless when other terms are mentioned explicitly. You can find more about this license [here](https://creativecommons.org/licenses/by/4.0/).
33+
34+
#### You are free to
35+
1. Share — copy and redistribute the material in any medium or format.
36+
1. Adapt — remix, transform, and build upon the material for any purpose, even commercially.
37+
38+
The licensor cannot revoke these freedoms as long as you follow the license terms.
39+
40+
Under the following terms:
41+
42+
1. **Attribution** — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
43+
1. **No additional restrictions** — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'''Calendar versioning (https://calver.org/) is used, since it is more suitable for websites than semver.'''
2+
3+
__version__ = '2020.10-prealpha'

assets/css/_buttons.scss

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
$btn-box-shadow-size: .25rem;
2+
$btn-active-box-shadow-size: .05rem;
3+
$btn-box-shadow: $btn-box-shadow-size $btn-box-shadow-size 0 0 black;
4+
$btn-active-box-shadow: $btn-active-box-shadow-size $btn-active-box-shadow-size 0 0 black;
5+
$btn-active-transform: translate($btn-box-shadow-size - $btn-active-box-shadow-size, $btn-box-shadow-size - $btn-active-box-shadow-size);
6+
7+
@mixin button-variant($background, $border, $hover-background: $background, $hover-border: $border, $active-background: darken($background, 10%), $active-border: darken($border, 12.5%)) {
8+
color: color-yiq($background);
9+
@include gradient-bg($background);
10+
border-color: $border;
11+
@include box-shadow($btn-box-shadow);
12+
transition: $transition-base;
13+
margin-right: $btn-box-shadow-size;
14+
margin-bottom: $btn-box-shadow-size;
15+
font-family: $font-family-serif;
16+
17+
@include hover {
18+
color: color-yiq($hover-background);
19+
@include gradient-bg($hover-background);
20+
border-color: $hover-border;
21+
box-shadow: $btn-active-box-shadow;
22+
transform: $btn-active-transform;
23+
}
24+
25+
&:focus,
26+
&.focus {
27+
box-shadow: $btn-active-box-shadow;
28+
transform: $btn-active-transform;
29+
}
30+
31+
// Disabled comes first so active can properly restyle
32+
&.disabled,
33+
&:disabled {
34+
color: color-yiq($background);
35+
background-color: $background;
36+
border-color: $border;
37+
// Remove CSS gradients if they're enabled
38+
@if $enable-gradients {
39+
background-image: none;
40+
}
41+
}
42+
43+
&:not(:disabled):not(.disabled):active,
44+
&:not(:disabled):not(.disabled).active,
45+
.show > &.dropdown-toggle {
46+
color: color-yiq($active-background);
47+
background-color: $active-background;
48+
@if $enable-gradients {
49+
background-image: none; // Remove the gradient for the pressed/active state
50+
}
51+
border-color: $active-border;
52+
53+
&:focus {
54+
box-shadow: $btn-active-box-shadow;
55+
transform: $btn-active-transform;
56+
}
57+
}
58+
}
59+
60+
@each $color, $value in $theme-colors {
61+
.btn-#{$color} {
62+
@include button-variant($value, $value);
63+
}
64+
}
65+
66+
.btn-primary {
67+
font-weight: bold;
68+
}
69+
70+
.btn-white {
71+
@include button-variant(white, black);
72+
border-width: 1px;
73+
}
74+
75+
.btn.dropdown-toggle + .dropdown-menu {
76+
font-family: $font-family-serif;
77+
}

assets/css/_footer.scss

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
$social-icon-size: 3em;
2+
3+
#footer {
4+
padding: 2em $page-padding-y $page-padding-y;
5+
section {
6+
display: flex;
7+
flex-direction: column;
8+
}
9+
h4 {
10+
display: inline-block;
11+
box-shadow: 0 5px $secondary;
12+
margin-bottom: calc(1em + 5px);
13+
}
14+
#find-us {
15+
flex-shrink: 0;
16+
}
17+
.contact {
18+
display: flex;
19+
list-style: none;
20+
padding: 0;
21+
margin-bottom: .5em;
22+
svg {
23+
width: $social-icon-size;
24+
height: $social-icon-size;
25+
}
26+
a:hover svg {
27+
transform: scale(1.05);
28+
}
29+
}
30+
a.email {
31+
font-family: $font-family-serif;
32+
font-size: 1.15em;
33+
font-style: italic;
34+
font-weight: bold;
35+
}
36+
#more-stuff {
37+
margin-top: 1.5em;
38+
}
39+
ul.scrollable-cards {
40+
display: flex;
41+
justify-content: flex-start;
42+
flex-wrap: nowrap;
43+
overflow-x: auto;
44+
scroll-snap-type: x mandatory;
45+
list-style: none;
46+
padding: 0;
47+
li {
48+
flex-shrink: 0;
49+
scroll-snap-align: center;
50+
max-width: 100%;
51+
margin: 0 1em 0 0;
52+
&:last-child {
53+
margin: 0;
54+
}
55+
}
56+
a {
57+
position: relative;
58+
display: flex;
59+
align-items: center;
60+
justify-content: center;
61+
background-color: $body-color;
62+
}
63+
img {
64+
width: 16em;
65+
max-width: 100%;
66+
height: auto;
67+
&[data-loaded="false"] {
68+
height: 16em / 21 * 9;
69+
}
70+
}
71+
.overlay {
72+
position: absolute;
73+
top: 0;
74+
left: 0;
75+
right: 0;
76+
bottom: 0;
77+
display: flex;
78+
justify-content: center;
79+
align-items: center;
80+
background-color: rgba(0, 0, 0, .6);
81+
}
82+
h5 {
83+
margin-bottom: 0;
84+
color: white;
85+
font-size: 2em;
86+
text-shadow: 0 0 10px rgba(0, 0, 0, .75);
87+
}
88+
}
89+
.footer-brand, .language-switch {
90+
display: none;
91+
}
92+
.footer-brand {
93+
height: 2.5rem;
94+
img {
95+
height: 100%;
96+
width: auto;
97+
}
98+
}
99+
.language-switch {
100+
margin-left: 1em;
101+
}
102+
.legal {
103+
margin-top: .5em;
104+
.links {
105+
> a, > span {
106+
font-size: 1.15em;
107+
}
108+
}
109+
}
110+
.license {
111+
margin-top: .25em;
112+
font-size: .9em;
113+
color: lighten($body-color, 20%);
114+
}
115+
}
116+
117+
@include media-breakpoint-up(md) {
118+
#footer {
119+
section {
120+
flex-direction: row;
121+
}
122+
#more-stuff {
123+
margin-top: 0;
124+
margin-left: auto;
125+
padding-left: 4em;
126+
}
127+
#footer-bottom {
128+
align-items: center;
129+
}
130+
.footer-brand, .language-switch {
131+
display: block;
132+
}
133+
.legal {
134+
margin-left: auto;
135+
text-align: right;
136+
}
137+
.license {
138+
margin-top: 0;
139+
}
140+
}
141+
}
142+
143+
@include media-breakpoint-up(lg) {
144+
#footer {
145+
padding: 4em $page-padding-x-lg $page-padding-y-lg;
146+
ul.scrollable-cards {
147+
img {
148+
width: 20em;
149+
&[data-loaded="false"] {
150+
height: 20em / 21 * 9;
151+
}
152+
}
153+
}
154+
}
155+
}

0 commit comments

Comments
 (0)