-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft of responsive club website design
- Loading branch information
0 parents
commit e8a2acd
Showing
10 changed files
with
631 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## TODO | ||
|
||
- improve how it looks at very narrow aspect ratios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ | ||
v2.0 | 20110126 | ||
License: none (public domain) | ||
*/ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
margin-block-start: 0; | ||
margin-block-end: 0; | ||
margin-inline-start: 0; | ||
margin-inline-end: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
* { | ||
box-sizing: border-box; | ||
scroll-behavior: smooth; | ||
--vem: calc( 1vh + 1vw ); | ||
} | ||
|
||
body { | ||
font-family: 'Inter', sans-serif; | ||
font-size:16px; | ||
} | ||
|
||
header { | ||
display: flex; | ||
position: fixed; | ||
flex-wrap: wrap; | ||
top: 0px; | ||
left: 0px; | ||
justify-content: space-between; | ||
padding: 0.625rem; | ||
width: 100vw; | ||
background-color: #000; | ||
color: white; | ||
z-index:1; | ||
} | ||
|
||
header a{ | ||
text-decoration: none; | ||
color:white; | ||
} | ||
|
||
#title { | ||
display:inline-flex; | ||
height:2.5rem; | ||
} | ||
|
||
#title img { | ||
height:100%; | ||
} | ||
|
||
h1 { | ||
font-size: 2.6875rem; | ||
margin-left: 0.625rem; | ||
vertical-align: middle; | ||
white-space: nowrap; | ||
font-weight:700; | ||
} | ||
|
||
h2 { | ||
color: white; | ||
text-align: center; | ||
font-size: 3rem; | ||
padding: 1rem; | ||
border-bottom: 0.25rem solid black; | ||
} | ||
|
||
h3 { | ||
font-size: 2rem; | ||
text-align: center; | ||
padding: 0.75rem 0; | ||
} | ||
|
||
p { | ||
font-size: 1.5rem; | ||
text-align:center; | ||
padding: 0.75rem 1rem; | ||
font-weight: 600; | ||
} | ||
|
||
@media only screen and (min-width: 1024px) { | ||
header { | ||
padding: calc(0.625 * var(--vem)) ; | ||
} | ||
|
||
#title { | ||
height: calc(2.5 * var(--vem)); | ||
} | ||
|
||
h1 { | ||
font-size: calc(2.6875 * var(--vem)); | ||
margin-left: calc(0.625 * var(--vem)); | ||
} | ||
|
||
h2 { | ||
font-size: calc(3 * var(--vem)); | ||
padding: calc(1 * var(--vem)); | ||
border-bottom: calc(0.25 * var(--vem)) solid black; | ||
} | ||
|
||
h3 { | ||
font-size: calc(2 * var(--vem)); | ||
padding: calc(0.75 * var(--vem)) 0; | ||
} | ||
|
||
p { | ||
font-size: calc(1.5 * var(--vem)); | ||
padding: calc(0.75 * var(--vem)) calc(1 * var(--vem)); | ||
} | ||
} | ||
|
||
#menu { | ||
height: 2.5rem; | ||
} | ||
|
||
#menu ul { | ||
display: flex; | ||
height: 100%; | ||
align-items: center; | ||
} | ||
|
||
#menu li { | ||
margin-left: 1rem; | ||
vertical-align:middle; | ||
font-weight:500; | ||
font-size: 1.25rem; | ||
} | ||
|
||
#menu-icon { | ||
display: none; | ||
} | ||
|
||
@media only screen and (max-width: 700px) { | ||
#menu-icon { | ||
display:block; | ||
height: 2.5rem; | ||
} | ||
|
||
#menu-icon img { | ||
height: 100%; | ||
filter: invert(100%); | ||
} | ||
|
||
#menu { | ||
display:none; | ||
margin-top:0.625rem; | ||
padding-top:0.625rem; | ||
border-top: 0.0625rem solid black; | ||
height: auto; | ||
} | ||
|
||
#menu ul { | ||
display: flex; | ||
flex-direction: column; | ||
width: calc(100vw - 1.25rem); | ||
} | ||
|
||
#menu li { | ||
margin-left: 0; | ||
} | ||
|
||
#menu.show-on-mobile { | ||
display: block; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 1024px) { | ||
#menu { | ||
height: calc(2.5 * var(--vem)); | ||
} | ||
|
||
#menu li { | ||
margin-left: calc(1 * var(--vem)); | ||
font-size: calc(1 * var(--vem)); | ||
} | ||
} | ||
|
||
main { | ||
height: 100vh; | ||
overflow-x: hidden; | ||
overflow-y: scroll; | ||
background: #E71619; | ||
} | ||
|
||
main section { | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
align-items: center; | ||
height: 100vh; | ||
padding: calc(3.8125rem + 5vh) 0; | ||
color: black; | ||
} | ||
|
||
main a, main a:visited, main a:hover { | ||
color: white; | ||
text-decoration: none; | ||
} | ||
|
||
main a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
|
||
#home { | ||
background: center/cover url("../images/curtains.jpg"); | ||
} | ||
|
||
#home-text { | ||
background: black; | ||
color: white; | ||
font-size: calc(2 * var(--vem)); | ||
padding: calc(1 * var(--vem)) 0; | ||
text-align: center; | ||
align-self: stretch; | ||
} | ||
|
||
#events { | ||
background: center/cover url("../images/cinema-entrance.jpg"); | ||
} | ||
|
||
#events h2 { | ||
color: black; | ||
background:linear-gradient(white,white) padding-box, linear-gradient(#E71619,#E71619) border-box ; | ||
margin-bottom: 2rem; | ||
border: 1rem dotted #FFF0C4; | ||
box-shadow: 0 0 0.5rem 0.5rem black inset, 0 0 0 0.5rem #E71619, 0 0 2rem 2rem black ; | ||
} | ||
|
||
#event-carousel-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-content: stretch; | ||
width: 100vw; | ||
height: 50vh; | ||
overflow-x:scroll; | ||
background-image:linear-gradient(black 0%, black 10%, transparent 10%, transparent 90%, black 90%, black 100%); | ||
} | ||
|
||
#event-carousel { | ||
display: flex; | ||
width: min-content; | ||
flex:1; | ||
flex-direction: row; | ||
border-block: 5vh solid; | ||
border-inline: 0px solid; | ||
border-image: url("../images/film-reel-border.svg") round; | ||
border-color: black; | ||
border-image-slice: 30%; | ||
padding-left:35vw; | ||
padding-right:35vw; | ||
background: url("../images/film-reel-cell.svg") repeat-x 5vw / 30vw 100%; | ||
} | ||
|
||
#event-carousel article { | ||
display:flex; | ||
flex-direction:column; | ||
justify-content: center; | ||
padding: 5vh 2.5vw; | ||
background: white; | ||
background-clip:content-box; | ||
width: 30vw; | ||
} | ||
|
||
@media only screen and (max-width: 1024px) { | ||
#event-carousel { | ||
padding-left:25vw; | ||
padding-right:25vw; | ||
background: url("../images/film-reel-cell.svg") repeat-x 25vw / 50vw 100%; | ||
} | ||
|
||
#event-carousel article { | ||
width: 50vw; | ||
padding: 5vh 5vw; | ||
} | ||
} | ||
|
||
/* Hide scrollbar for Chrome, Safari and Opera */ | ||
*::-webkit-scrollbar { | ||
display: none; | ||
} | ||
|
||
/* Hide scrollbar for IE, Edge and Firefox */ | ||
* { | ||
-ms-overflow-style: none; /* IE and Edge */ | ||
scrollbar-width: none; /* Firefox */ | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.