Difference between revisions of "Widget:Homepage"

From LINKS Community Center
Jump to: navigation, search
(Replaced content with "#hp-main { width: 75%; margin: auto; }")
Tag: Replaced
Line 1: Line 1:
<noinclude>Development verstion of the DCT Homepage.<br><span style="color: red; font-weight: bold;">Not ready for production!</span></noinclude>
+
#hp-main { width: 75%; margin: auto; }
<includeonly><style>
 
        #hp-wrapper { font-family: 'Open Sans'; }
 
        #hp-heading {
 
            padding: 1em;
 
            margin-bottom: 8em;
 
            background:
 
                linear-gradient(125deg, #FFFFFF 0%, #000000 100%),
 
                linear-gradient(200deg, #D0F2F2 0%, #D0F2F2 50%, #34B8B8 calc(50% + 1px), #34B8B8 60%, #166EA9 calc(60% + 1px), #166EA9 75%, #125887 calc(75% + 1px), #125887 100%),
 
                linear-gradient(113deg, #D0F2F2 0%, #D0F2F2 40%, #34B8B8 calc(40% + 1px), #34B8B8 50%, #166EA9 calc(50% + 1px), #166EA9 70%, #125887 calc(70% + 1px), #125887 100%);
 
            background-blend-mode: overlay, overlay, normal;
 
            clip-path: inset(0 100% 100% 0);
 
            transition: all 500ms ease-in-out;
 
        }
 
        .loaded #hp-heading { clip-path: inset(0); }
 
        #hp-heading h1 { font-family: 'Raleway'; font-size: 3.7em; margin-bottom: .5em; }
 
        #hp-heading h1 span {
 
            display: block;
 
            white-space: nowrap;
 
            opacity: 0;
 
            transform: translateX(-1em);
 
            transition: all 500ms ease-in-out;
 
        }
 
        .loaded #hp-heading h1 span { opacity: .95; transform: translateX(0);}
 
        #hp-heading h1 span:nth-child(1) { font-weight: 800; letter-spacing: .06em; transition-delay: 300ms; }
 
        #hp-heading h1 span:nth-child(2) { font-weight: 500; transition-delay: 400ms; }
 
        #hp-heading h1 span:nth-child(3) { font-weight: 100; transition-delay: 500ms; }
 
        #hp-heading .hp-lead { font-size: 1.4em; font-weight: 300; margin-bottom: 2em; opacity: 0; transition: all 500ms ease-in-out 1000ms; }
 
        .loaded #hp-heading .hp-lead { opacity: .95; }
 
        .hp-button-wrapper { text-align: center; }
 
        .hp-large-button {
 
            display: inline-block;
 
            font-weight: 600;
 
            font-size: 1.3em;
 
            padding: .5em;
 
            border: 1px solid rgba(0, 0, 0, .9);
 
            user-select: none;
 
            opacity: 0;
 
            transition: all 500ms ease-in-out 1300ms;
 
        }
 
        .loaded .hp-large-button { opacity: 1; }
 
        #hp-main { width: 75%; margin: auto; }
 
        .hp-search { margin-bottom: 8em; }
 
        .hp-areas { margin-bottom: 8em; }
 
        .hp-area { display: flex; align-items: center; margin-bottom: 2em; text-decoration: none; cursor: pointer; }
 
        .hp-area:hover { text-decoration: none; }
 
        .hp-area-icon { flex: 1 0; margin-right: 1em; user-select: none; }
 
        .hp-area-icon svg { width: 130px; height: 130px; }
 
        .hp-area-text { flex: 1 1 75%; }
 
        .hp-area-text h2, #hp-recent h3 { font-family: 'Raleway'; font-weight: 300; letter-spacing: .06em; }
 
        .hp-area-text p { font-size: 1.2em; margin: 0 0 0 .1em; }
 
        .hp-area-arrow { flex: 1 0; font-size: 3em; margin-left: 1em; user-select: none; }
 
        .hp-compass { border-top: 1px solid rgba(0, 0, 0, .9); border-bottom: 1px solid rgba(0, 0, 0, .9); padding: 5em; display: flex; justify-content: center; }
 
        #forum-topics { padding: 4em 1em 4em 0; border-right: 1px solid rgba(0, 0, 0, .9); }
 
        #hp-recent h3 { margin-bottom: 1em; }
 
        #hp-changes { padding: 4em 0 4em 1em; }
 
        .blue * {
 
            color: var(--links-blue);
 
            border-color: var(--links-blue);
 
            fill: var(--links-blue);
 
        }
 
        .orange * {
 
            color: var(--links-orange);
 
            border-color: var(--links-orange);
 
            fill: var(--links-orange);
 
        }
 
        .grey * {
 
            color: var(--links-grey);
 
            border-color: var(--links-grey);
 
            fill: var(--links-grey);
 
        }
 
 
 
        @media screen and (min-width: 992px) {
 
            #hp-heading { padding: 3em; }
 
            #hp-heading h1 { font-size: 5em; }
 
            #hp-heading .hp-lead { max-width: 50%; font-size: 2em; }
 
            .hp-button-wrapper { text-align: left; }
 
            .hp-large-button { font-size: 1.6em; }
 
        }
 
    </style>
 
    <div id="hp-wrapper">
 
        <div id="hp-heading">
 
            <h1>
 
                <span>LINKS</span>
 
                <span>Community</span>
 
                <span>Center</span>
 
            </h1>
 
            <p class="hp-lead">Strengthening links between technologies and&nbsp;society for&nbsp;European disaster resilience.</p>
 
            <div class="hp-button-wrapper">
 
                <div class="hp-large-button">Get Started</div>
 
            </div>
 
        </div>
 
 
 
        <div id="hp-main">
 
            <div class="hp-search">
 
                <input class="form-control form-control-lg" type="text" placeholder="Search">
 
            </div>
 
 
 
            <div class="hp-areas">
 
                <a class="hp-area blue">
 
                    <div class="hp-area-icon">
 
                        <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" viewBox="0 0 96 96"><defs><clipPath id="a"><path d="M65 334h96v96H65z"/></clipPath></defs><g clip-path="url(#a)" transform="translate(-65 -334)"><path d="m142 395.981.004-35.993H84.001v36.01Zm-55.999-33.993h54.003L140 393.981l-53.999.017Z"/><path d="M81.001 358.987a2.002 2.002 0 0 1 2-2h60.003a2.002 2.002 0 0 1 2 2V400h2v-41.013a4.003 4.003 0 0 0-4-4H83.001a4.003 4.003 0 0 0-4 4V400h2ZM118.003 402.981v2h-10.001v-2H67v1.999a5.006 5.006 0 0 0 5 5.001h82.004a5.006 5.006 0 0 0 5.001-5.001v-1.999Zm36.001 5H72a3.004 3.004 0 0 1-3-3h37.002a1.934 1.934 0 0 0 2 2h10.001a1.934 1.934 0 0 0 2-2h37.002a3.005 3.005 0 0 1-3.001 3Z"/><path d="M113 365c-7.18 0-13 5.82-13 13s5.82 13 13 13 13-5.82 13-13c-.008-7.176-5.824-12.992-13-13Zm10.949 12h-3.518a14.167 14.167 0 0 0-4.176-9.508 11.023 11.023 0 0 1 7.694 9.508ZM112 368.226V377h-4.426c.254-3.771 1.929-7.06 4.426-8.774ZM112 379v8.775c-2.494-1.717-4.17-5.017-4.425-8.775Zm2 8.774V379h4.425c-.255 3.754-1.932 7.056-4.425 8.774ZM114 377v-8.773c2.492 1.718 4.17 5.019 4.425 8.773Zm-4.273-9.502a14.124 14.124 0 0 0-4.158 9.502h-3.518a11.02 11.02 0 0 1 7.676-9.502ZM102.051 379h3.518a14.157 14.157 0 0 0 4.173 9.507 11.022 11.022 0 0 1-7.691-9.507Zm14.205 9.508a14.168 14.168 0 0 0 4.175-9.508h3.518a11.023 11.023 0 0 1-7.693 9.508Z"/></g></svg>
 
                    </div>
 
                    <div class="hp-area-text">
 
                        <h2>SMCS Technologies Library</h2>
 
                        <p>
 
                            Software for&nbsp;interaction with, within or&nbsp;among communities in&nbsp;case of a&nbsp;disaster and for&nbsp;analysis of&nbsp;these interactions.​
 
                        </p>
 
                    </div>
 
                    <div class="hp-area-arrow">&rarr;</div>
 
                </a>
 
 
 
                <a class="hp-area orange">
 
                    <div class="hp-area-icon">
 
                        <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" viewBox="0 0 96 96"><defs><clipPath id="b"><path d="M65 455h96v96H65z"/></clipPath></defs><g clip-path="url(#b)" transform="translate(-65 -455)"><path d="M138 463H84v79.961h54a5.014 5.014 0 0 0 5.019-5V468a5.014 5.014 0 0 0-5.019-5Zm-52 2h6.261v75.961H86Zm55.019 72.963a3.012 3.012 0 0 1-3.019 3H94.261V465H138a3.013 3.013 0 0 1 3.019 3Z"/><path d="M104 489h28v2h-28ZM110 500h16v2h-16Z"/></g></svg>
 
                    </div>
 
                    <div class="hp-area-text">
 
                        <h2>Guidelines</h2>
 
                        <p>
 
                            Expert guidelines for&nbsp;usage of&nbsp;social media in&nbsp;disasters.​
 
                        </p>
 
                    </div>
 
                    <div class="hp-area-arrow">&rarr;</div>
 
                </a>
 
            </div>
 
        </div>
 
 
 
        <div class="hp-compass grey">
 
            <div class="d-flex align-items-center">
 
                <div class="hp-area-icon">
 
                    <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" viewBox="0 0 96 96"><defs><clipPath id="c"><path d="M199 603h96v96h-96z"/></clipPath></defs><g clip-path="url(#c)" transform="translate(-199 -603)"><path d="m277.516 645.583 2.136.654c-2.126-14.416-13.438-25.741-27.852-27.884l.691 2.143a31.072 31.072 0 0 1 25.025 25.087ZM214.36 646.146l2.14-.646a31.07 31.07 0 0 1 25.02-25l.655-2.139c-14.368 2.147-25.652 13.42-27.815 27.785ZM241.386 681.481a31.073 31.073 0 0 1-24.87-24.881l-2.151-.7a33.075 33.075 0 0 0 27.679 27.727ZM279.654 655.746l-2.141.691a31.072 31.072 0 0 1-25.032 25.068l-.691 2.143c14.424-2.14 25.744-13.475 27.864-27.902Z"/><path d="m274.8 647.888-15.134-4.924 4.837-9.38-9.431 4.806-4.872-15.208-2-6.2-1.2-3.9-1.3 4-1.9 6.2-4.784 15.134-9.416-4.832 4.82 9.429-15.12 4.776-6.3 1.9-4 1.3 4 1.3 6.1 2 15.248 4.8-4.848 9.405 9.386-4.947L243.7 678.8l1.9 6.2 1.3 4 1.3-4 2-6.2 4.9-15.3 9.4 4.9-4.828-9.351 15.028-4.859 6.2-2 4-1.3-3.9-1.1Zm-.714 4.4-15.341 4.954-2.01-3.893a9.925 9.925 0 0 1-.951 2.519l4.045 7.832-7.723-4.027a9.93 9.93 0 0 1-2.361 1.027l3.555 1.854-5 15.629-1.382 4.283-1.308-4.271-4.925-15.595 3.594-1.894a9.95 9.95 0 0 1-2.36-1.017l-7.73 4.074 4.051-7.863a9.91 9.91 0 0 1-.959-2.505l-2 3.885-15.557-4.89-4.194-1.375 4.37-1.315 15.441-4.877 1.967 3.847a9.938 9.938 0 0 1 .981-2.475l-4.088-8 8.016 4.113a9.958 9.958 0 0 1 2.523-.953l-3.92-2.013 4.894-15.474 1.27-4.148 1.316 4.072 4.966 15.518-4.011 2.044a9.922 9.922 0 0 1 2.53.955l8.1-4.125-4.147 8.043c.433.78.76 1.614.971 2.481l2.033-3.943 15.475 5.035 3.883 1.192Z"/><path d="M247 644.088a7 7 0 1 0 7 7 7.009 7.009 0 0 0-7-7Zm0 12a5 5 0 1 1 5-5 5.007 5.007 0 0 1-5 5.003Z"/></g></svg>
 
                </div>
 
                <div class="hp-area-text">
 
                    <h2>Want to explore?</h2>
 
                    <p>
 
                        Try the compass!
 
                    </p>
 
                </div>
 
            </div>
 
        </div>
 
 
 
        <div id="hp-recent" class="container-fluid">
 
            <div class="row">
 
                <div id="forum-topics" class="col-6">
 
                    <h3 class="text-center">Current Forum Topics</h3>
 
                    <script src="https://forum.links.communitycenter.eu/javascripts/embed-topics.js"></script>
 
                    <d-topics-list discourse-url="https://forum.links.communitycenter.eu" per-page="5" order="latest" sort-ascending="false" template="complete"></d-topics-list>
 
                </div>
 
                <div id="hp-changes" class="col-6">
 
                    <h3 class="text-center">News and Activities</h3>
 
                    <div class="h-100 d-flex">
 
                        <div id="recent-changes"></div>
 
                    </div>
 
                </div>
 
            </div>
 
        </div></div></includeonly>
 

Revision as of 15:01, 24 May 2022

  1. hp-main { width: 75%; margin: auto; }