add icon buttons, misc styling on venue pages

This commit is contained in:
elisejakob
2024-06-20 20:35:52 +02:00
parent 7e5f82ce76
commit 9b3eb3c4a6
12 changed files with 110 additions and 41 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,11 @@
.icon {
width: var(--size-icon);
height: var(--size-icon);
display: inline-block;
vertical-align: middle;
svg {
display: block;
width: 100%;
}
}

View File

@ -4,13 +4,13 @@
.static, .static,
.animate { .animate {
position: absolute;
top: 0;
left: 0;
width: 100%; width: 100%;
} }
.animate { .animate {
position: absolute;
top: 0;
left: 0;
animation: glow 1s infinite alternate; animation: glow 1s infinite alternate;
} }
} }

View File

@ -3,6 +3,7 @@ import styles from "./footer.module.scss";
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig"; import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
import { ToTop } from "./ToTop"; import { ToTop } from "./ToTop";
import { LogoNeuf } from "../general/Logo"; import { LogoNeuf } from "../general/Logo";
import Icon from "../general/Icon";
export const Footer = () => { export const Footer = () => {
return ( return (
@ -11,23 +12,27 @@ export const Footer = () => {
<h2 className="suphead">Følg oss</h2> <h2 className="suphead">Følg oss</h2>
<ul> <ul>
<li> <li>
<a href="#" target="_blank"> <a href="#" target="_blank" className="button tertiary">
Instagram <span>Instagram</span>
<Icon />
</a> </a>
</li> </li>
<li> <li>
<a href="#" target="_blank"> <a href="#" target="_blank" className="button tertiary">
Facebook <span>Facebook</span>
<Icon />
</a> </a>
</li> </li>
<li> <li>
<a href="#" target="_blank"> <a href="#" target="_blank" className="button tertiary">
Twitter <span>Twitter</span>
<Icon />
</a> </a>
</li> </li>
<li> <li>
<a href="#" target="_blank"> <a href="#" target="_blank" className="button tertiary">
Flickr <span>Flickr</span>
<Icon />
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -94,12 +94,11 @@
position: relative; position: relative;
top: 0; top: 0;
right: 0; right: 0;
transform: translate(1vw, 40%);
z-index: 800; z-index: 800;
} }
.toTop { .toTop {
position: absolute; position: absolute;
right: 0; right: var(--spacing-sitepadding);
bottom: 0; bottom: var(--spacing-sitepadding);
} }

View File

@ -2,6 +2,7 @@ import { VenueFragment } from "@/gql/graphql";
import styles from "./venueInfo.module.scss"; import styles from "./venueInfo.module.scss";
import Link from "next/link"; import Link from "next/link";
import Image from "../general/Image"; import Image from "../general/Image";
import Icon from "../general/Icon";
export const VenueInfo = ({ venue }: { venue: VenueFragment }) => { export const VenueInfo = ({ venue }: { venue: VenueFragment }) => {
return ( return (
@ -46,6 +47,10 @@ export const VenueInfo = ({ venue }: { venue: VenueFragment }) => {
</tr> </tr>
</tbody> </tbody>
</table> </table>
<a href="#" target="_blank" className="button secondary">
<span>Tekniske spesifikasjoner</span>
<Icon type="doc" />
</a>
</div> </div>
); );
}; };

View File

@ -3,7 +3,7 @@
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
gap: var(--spacing-sitepadding); gap: var(--spacing-sitepadding);
width: 100%; width: 100%;
max-width: 1000px; max-width: 1200px;
margin: var(--spacing-xl) auto; margin: var(--spacing-xl) auto;
} }

View File

@ -5,6 +5,7 @@
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
margin-bottom: 1rem;
} }
tr { tr {
@ -14,6 +15,7 @@
th { th {
text-align: left; text-align: left;
width: 11rem; width: 11rem;
font-weight: 600;
} }
th, th,

View File

@ -126,31 +126,6 @@ img {
max-width: 100%; max-width: 100%;
} }
button,
.button {
display: inline-block;
border-radius: 10rem;
background: var(--color-cta-background);
color: var(--color-cta-text);
border: none;
padding: .5rem 1rem;
margin: 0 0 .5rem;
font-family: var(--font-main);
font-size: var(--font-size-body);
font-weight: 500;
text-decoration: none;
transition: opacity var(--transition-easing);
cursor: pointer;
&:hover {
opacity: .8;
}
a {
text-decoration: none;
}
}
blockquote { blockquote {
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: 2.8rem; font-size: 2.8rem;

38
web/src/css/button.scss Normal file
View File

@ -0,0 +1,38 @@
button,
.button {
display: inline-flex;
align-items: center;
gap: 1rem;
border-radius: 10rem;
background: var(--color-cta-background);
color: var(--color-cta-text);
border: none;
padding: .5rem 1rem;
margin: 0 0 .5rem;
font-family: var(--font-main);
font-size: var(--font-size-body);
font-weight: 500;
text-decoration: none;
transition: opacity var(--transition-easing);
cursor: pointer;
&:hover {
opacity: .8;
}
a {
text-decoration: none;
}
&.secondary {
color: var(--color-deepBrick);
background: var(--color-goldenBeige);
}
&.tertiary {
color: currentColor;
background: transparent;
border: 2px solid currentColor;
padding: .25rem .75rem;
}
}

View File

@ -1,4 +1,6 @@
@import 'fonts.scss'; @import 'fonts.scss';
@import 'variables.scss'; @import 'variables.scss';
@import 'animations.scss'; @import 'animations.scss';
@import 'base.scss'; @import 'base.scss';
@import 'button.scss';

View File

@ -53,6 +53,7 @@
// sizes // sizes
--size-width-p: 36rem; --size-width-p: 36rem;
--size-icon: 1em;
// animations // animations
--transition-easing: .3s ease; --transition-easing: .3s ease;