Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update instagram href #422

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const footerIcons: Array<FooterIcon> = [
{ name: { it: 'Canale Discord', en: 'Discord Channel' }, link: 'https://discord.gg/SwPzAkv4A4', iconName: 'FaDiscord' },
{ name: { it: 'Organizzazione GitHub', en: 'GitHub Organization' }, link: 'https://github.com/StudentiUnimi', iconName: 'FaGithub' },
{ name: { it: 'Pagina Facebook', en: 'Facebook Page' }, link: 'https://www.facebook.com/networkstudentiunimi', iconName: 'FaFacebook' },
{ name: { it: 'Pagina Instagram', en: 'Instagram Page' }, link: 'https://www.instagram.com/studentiunimi.it/', iconName: 'FaInstagram' },
{ name: { it: 'Pagina Instagram', en: 'Instagram Page' }, link: 'https://www.instagram.com/networkstudentiunimi/', iconName: 'FaInstagram' },
];

const Footer = () => {
Expand Down Expand Up @@ -125,7 +125,13 @@ const Footer = () => {
<Link href="http://www.quickunimi.it/">QuickUnimi</Link>
</li>
<li style={listElement}>
<Link href="https://codeshare.tech">Codeshare.tech</Link>
<Link href="https://t.me/graduatorieUniMi">{locale?.footer[3].graduations}</Link>
</li>
<li style={listElement}>
<Link href="https://www.google.com/maps/d/viewer?mid=1601q0wxFe22mtgotqZ7AJzrrWEOYfhs&ll=45.57712672502888%2C9.425802988620111&z=10">{locale?.footer[3].maps}</Link>
</li>
<li style={listElement}>
<Link href="https://wiki.studentiunimi.it/guida:scaricare_videolezioni_ariel">{locale?.footer[3].video}</Link>
</li>
</ul>
</Text>
Expand Down
6 changes: 3 additions & 3 deletions components/Header/HeaderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,21 @@ const HeaderMenu = () => {
)}
</div>

<div className="mb-3">
<div className="mb-2">
<div style={{ ...cardStyle, backgroundColor: theme.palette.yellow }} onClick={() => { router.push("/courses"); dismissPanel(); } }>
<Text variant="medium" styles={semibold} style={{ color: "#0f0f0f" }}>{locale?.sidebar.searchGroup} <Icon iconName="ChevronRightMed" style={{ fontSize: 10 }} /></Text>
</div>
</div>

<div className="mb-3">
<div className="mb-2">
<div style={cardStyle}>
<Link href={preventVisibleHref(isPolicyAccepted, "https://t.me/unimichat")} onClick={(e: any) => preventDefault(e, isPolicyAccepted) && togglePolicyDialog()} className="text-decoration-none">
<Text variant="medium" style={{ color: "#fcfcfc" }}>{locale?.sidebar.mainGroup} <Icon iconName="ChevronRightMed" style={{ fontSize: 10 }} /></Text>
</Link>
</div>
</div>

<div className="mb-3">
<div className="mb-2">
<div style={cardStyle}>
<Link href="https://t.me/studenti_unimi" className="text-decoration-none">
<Text variant="medium" style={{ color: "#fcfcfc" }}>{locale?.sidebar.channel} <Icon iconName="ChevronRightMed" style={{ fontSize: 10 }} /></Text>
Expand Down
5 changes: 3 additions & 2 deletions locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import ILocalizationStrings from "models/ILocalizationStrings";

const helmetEn: Helmet = {
homepage: { title: "Network StudentiUniMi - Groups, services and much more", description: "Official website of StudentiUniMi Network: WhatsApp groups replaced by Telegram ones, services and much more. The largest network of the University of Milan, managed by students for students." },
courses: { title: "Degree groups and resources | Network StudentiUniMi", description: "All Telegram groups and resources for all degree courses (three-year, master, single-cycle degrees) of the University of Milan. Join, ask for information and meet new people thanks to the StudentiUniMi Network." },
courses: { title: "Degree groups, resources and representatives | Network StudentiUniMi", description: "All Telegram groups, resources and representatives for all degree courses (three-year, master, single-cycle degrees) of the University of Milan. Join, ask for information and meet new people thanks to the StudentiUniMi Network." },
groups: { title: "Groups | Network StudentiUniMi", description: "University groups, for announcements and student associations of the University of Milan." },
services: { title: "Services | Network StudentiUniMi", description: "All services and rapid links to the University of Milan's resources: exams, grades, webmail and much more. A very fast alternative UNIMIA replacement." },
rules: { title: "Groups rules | Network StudentiUniMi", description: "The official rules of the StudentiUniMi Network, the largest student network of the University of Milan." },
university: { title: "University informations, rankings, maps and representatives | Network StudentiUniMi", description: "Stay up-to-date with all the informations and representatives of the University of Milan, offered by the StudentiUniMi Network." },
university: { title: "University informations, rankings and maps | Network StudentiUniMi", description: "Stay up-to-date with all the informations of the University of Milan, offered by the StudentiUniMi Network." },
organization: { title: "Organization | Network StudentiUniMi", description: "Who are we? Discover the organization behind the StudentiUniMi Network, the largest network of the University of Milan." },
degreeLoaded: { title1: 'Groups and resources of ', title2: ' | Network StudentiUniMi', description1: 'All the resources and links of the Telegram groups of ', description2: ' of the University of Milan, offered by StudentiUniMi Network.' },
notFound: { title: "The page you were looking for does not exist | Network StudentiUniMi", description: "Uh oh, we can't seem to find the page you're looking for. Maybe you can try going to the homepage and look again from there." },
Expand Down Expand Up @@ -416,6 +416,7 @@ const localeEn: ILocalizationStrings = {
{ text: 'The network and the associated website are not affiliated to the University of Milan.', buttonText: 'Join our main group' },
{ header: 'Useful links' },
{ header: 'Contacts', text: "For any question or suggestion you can join the main network group <Link href='https://t.me/unimichat'>@unimichat</Link>." },
{ video: 'Download videolectures', graduations: 'Rankings', maps: 'University locations' }
]
};

Expand Down
5 changes: 3 additions & 2 deletions locale/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import ILocalizationStrings from "models/ILocalizationStrings";

const helmetIt: Helmet = {
homepage: { title: "Network StudentiUniMi - Gruppi, servizi e molto altro", description: "Sito web ufficiale del Network StudentiUniMi: gruppi WhatsApp rimpiazziati da Telegram, servizi e molto altro. Il network più grande dell'Università degli Studi di Milano, gestito da studenti per gli studenti." },
courses: { title: "Gruppi e risorse dei corsi di laurea | Network StudentiUniMi", description: "Gruppi Telegram e risorse per tutti i corsi di laurea (triennali, magistrali, lauree a ciclo unico) dell'Università degli Studi di Milano. Entra, chiedi informazioni e conosci nuove persone grazie al Network StudentiUniMi." },
courses: { title: "Gruppi, risorse e rappresentanti dei corsi di laurea | Network StudentiUniMi", description: "Gruppi Telegram, risorse e rappresentanti per tutti i corsi di laurea (triennali, magistrali, lauree a ciclo unico) dell'Università degli Studi di Milano. Entra, chiedi informazioni e conosci nuove persone grazie al Network StudentiUniMi." },
groups: { title: "Tutti i gruppi | Network StudentiUniMi", description: "Gruppi universitari, per gli annunci e associazioni studentesche dell'Università degli Studi di Milano." },
services: { title: "Servizi e link rapidi | Network StudentiUniMi", description: "Tutti i servizi e i link rapidi alle risorse dell'Università degli Studi di Milano: iscrizioni esami, verbalizzazioni voti, webmail, e molto altro. Un'alternativa veloce a UNIMIA." },
rules: { title: "Regolamento dei gruppi | Network StudentiUniMi", description: "Il regolamento ufficiale dei gruppi Telegram del Network StudentiUniMi, il più grande network studentesco dell'Università degli Studi di Milano." },
university: { title: "Informazioni dall'Ateneo, graduatorie, mappe universitarie e rappresentanti | Network StudentiUniMi", description: "Rimani aggiornato con tutte le informazioni, graduatorie, mappe universitarie e i rappresentanti dell'Università degli Studi di Milano, offerto dal Network StudentiUniMi." },
university: { title: "Informazioni dall'Ateneo, graduatorie e mappe universitarie | Network StudentiUniMi", description: "Rimani aggiornato con tutte le informazioni, graduatorie e mappe universitarie dell'Università degli Studi di Milano, offerto dal Network StudentiUniMi." },
organization: { title: "Chi siamo | Network StudentiUniMi", description: "Chi siamo? Scopri l'organizzazione dietro il Network StudentiUniMi, il più grande network studentesco dell'Università degli Studi di Milano." },
degreeLoaded: { title1: 'Gruppi e risorse di ', title2: ' | Network StudentiUniMi', description1: 'Tutte le risorse e i link dei gruppi Telegram di ', description2: " dell'Università degli Studi di Milano, offerti dal Network StudentiUniMi." },
notFound: { title: "La pagina che stai cercando non esiste | Network StudentiUniMi", description: "Uh oh, non riusciamo a trovare la pagina che stai cercando. Forse puoi provare a tornare alla homepage e cercare da lì." },
Expand Down Expand Up @@ -416,6 +416,7 @@ const localeIt: ILocalizationStrings = {
{ text: 'Il network e il relativo sito web non sono affiliati all\'Università degli Studi di Milano.', buttonText: 'Entra nel nostro gruppo' },
{ header: 'Link utili' },
{ header: 'Contatti', text: "Per qualsiasi dubbio o proposta è possibile scrivere sul gruppo principale del network <Link href='https://t.me/unimichat'>@unimichat</Link>." },
{ video: 'Scaricare videolezioni', graduations: 'Graduatorie', maps: 'Mappe spazi universitari' }
],
};

Expand Down
1 change: 1 addition & 0 deletions models/ILocalizationStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ interface ILocalizationStrings {
{ text: string, buttonText: string },
{ header: string },
{ header: string, text: string },
{ video: string, graduations: string, maps: string }
]
};

Expand Down
1 change: 1 addition & 0 deletions pages/courses/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const Course = (props: Props) => {

const buildStructuredDescription = (course: CourseDegree) => {
if (course.year === -1) return `Gruppo telegram principale del corso di laurea in "${course.course.name}": dedicato a matricole e studenti di anni successivi al primo, offerto e gestito dal Network StudentiUniMi.`;
if (course.year === -2) return `Gruppo telegram del corso didattico complementare "${course.course.name}" del corso di laurea in "${loadedDegree?.name}", ${course.semester}° semestre, ${course.course.cfu} CFU, offerto e gestito dal Network StudentiUniMi.`
return `Gruppo telegram del corso didattico "${course.course.name}" del corso di laurea in "${loadedDegree?.name}", ${course.course.cfu} CFU, ${course.year}° anno, ${course.semester}° semestre, offerto e gestito dal Network StudentiUniMi.`;
};

Expand Down
21 changes: 16 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"target": "esnext",
"module": "esnext",
"jsx": "preserve",
"lib": ["dom", "es2017"],
"lib": [
"dom",
"es2017"
],
"baseUrl": ".",
"moduleResolution": "node",
"strict": true,
Expand All @@ -19,8 +22,16 @@
"removeComments": false,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true
"sourceMap": true,
"incremental": true
},
"exclude": ["node_modules", "node_modules/**/*.js"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"]
}
"exclude": [
"node_modules",
"node_modules/**/*.js"
],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
]
}
Loading